Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Unkey PDF Viewer template [SIDE QUEST] #2191

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

---
Loading