Skip to content

Commit

Permalink
chore: Unkey PDF Viewer template [SIDE QUEST] (#2191)
Browse files Browse the repository at this point in the history
* chore: Unkey PDF Viewer template

* feat: add template

---------

Co-authored-by: chronark <dev@chronark.com>
  • Loading branch information
unrenamed and chronark authored Oct 4, 2024
1 parent 600839e commit bfcb46d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/www/app/templates/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ export type Template = {
};

export const templates: Record<string, Template> = {
"pdf-view": {
title: "Protecting Digital Content Access",
description:
"Leverage Unkey’s short-lived keys to grant temporary access to digital content (e.g., e-books, videos, or streams), expiring after a set duration.",
authors: ["unrenamed"],
repository: "https://github.com/unrenamed/unkey-pdf-view",
image: "/images/templates/pdf-view.png",
readmeUrl:
"https://raw.githubusercontent.com/unrenamed/unkey-pdf-view/refs/heads/main/README.md",
language: "Typescript",
framework: "Next.js",
},
"flask-rbac": {
title: "Flask middleware with RBAC",
description: "Protect your Flask API with Unkey",
Expand Down
Binary file added apps/www/public/images/templates/pdf-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions oss.gg/7_create_a_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Record yourself going through the setup of Unkey for the first time and provide feedback. Depending on how much feedback you provide, we’ll assign 150 or 300 points.
Create a minimal starter template to showcase how you can use Unkey with a particular framework. For example [Ratelimit your Next.js routes](https://www.unkey.com/templates/ratelimit-nextjs) or [Middleware for golang’s echo framework](https://www.unkey.com/templates/echo-middleware).
Requirements:

- No duplicates, please check [unkey.com/templates](https://www.unkey.com/templates) first
- Must be open source, either committed to [github.com/unkeyed/examples](https://github.com/unkeyed/examples) or to your own GitHub account.
- Must be MIT licensed
Expand All @@ -27,4 +28,7 @@ Your turn 👇
////////////////////////////

» 04-October-2024 by Harsh Bhat [Flask RBAC route protection using unkey](https://github.com/harshsbhat/unkey-flask.git)

» 04-October-2024 by Nazar Poshtarenko [Time-Sensitive API Keys for Digital Content Access](https://github.com/unrenamed/unkey-pdf-view.git)

---

0 comments on commit bfcb46d

Please sign in to comment.