-
Notifications
You must be signed in to change notification settings - Fork 508
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
docs: add oak & deno sever template with unkey rate limiting #2308
Conversation
|
Caution Review failedThe pull request is closed. 📝 Walkthrough📝 WalkthroughWalkthroughThe pull request updates the documentation to include a new entry for a side quest focused on creating a template using the Unkey framework for API development. It instructs participants to document their setup experiences and provide feedback, with specific requirements for the template, including being open source and MIT licensed. Recent contributions to the template repository are highlighted, including a new entry for the "Deno Unkey Ratelimit Starter" by Devansh Baghel. Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Devansh-Baghel is attempting to deploy a commit to the Unkey Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions for pull request titles! 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awarding Devansh-Baghel: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/Devansh-Baghel |
…unkey (unkeyed#2308) Co-authored-by: Andreas Thomas <[email protected]>
…unkey (unkeyed#2308) Co-authored-by: Andreas Thomas <[email protected]>
* fix:breadcrum-cache-issue * chore:rename-revalidateMytag * refactor: move-revalidateTag * refactor: extract tags into reusable utility * feat: add template * Update 3_follow_the_unkey_x_account.md (#2323) * fix: capture uniqueness error and return it correctly (#2337) * docs: getVerifications instead of get (#2329) * Update 3_follow_the_unkey_x_account.md (#2324) Followed unkey on Twitter Co-authored-by: Andreas Thomas <[email protected]> * fix: transaction ...: in use: for query (#2278) * fix: transaction ...: in use: for query - Fixes #2197 - The error is caused by the cache revalidation happening in the background, so we have a racecondition with the other queries we are running in the insertGenericAuditLogs function * docs: explain for future self * fix: another racecondition also bulk insert auditLogs and auditLogTargets * [autofix.ci] apply automated fixes --------- Co-authored-by: chronark <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: handle undefined ratelimits * Update 3_follow_the_unkey_x_account.md (#2338) * fix: handle case when blogs array is empty * [oss.gg] side quest : added another framework; hono on cloudflare workers. (#2345) * fix: weird spacing in changelog by removing the extra gap (#2340) * fix: weird spacing in changelog * feat: formatted * oss.gg: create a template for ratelimiting a oak server in deno with unkey (#2308) Co-authored-by: Andreas Thomas <[email protected]> * follow unkey on X #2252 (#2315) Co-authored-by: Your Name <[email protected]> * Follow the Unkey X account: @unkeydev Complete! (#2332) * Update 3_follow_the_unkey_x_account.md * Update 3_follow_the_unkey_x_account.md --------- Co-authored-by: Andreas Thomas <[email protected]> * fix(www): analytics bento code snippet is not readable (#2311) - add hover effect to analytics bento removing gradient background - make copy code button sticky to top-right corner - impl independent vertical scrolls for language switcher and code editor * Update 7_create_a_template.md * Update 7_create_a_template.md * chore(deps-dev): bump @content-collections/core from 0.6.2 to 0.7.2 (#2255) Bumps @content-collections/core from 0.6.2 to 0.7.2. --- updated-dependencies: - dependency-name: "@content-collections/core" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: order audit logs by time, show latest on top (#2295) * feat: add template * feat: Unkey FastAPI boilerplate (#2307) * feat: add template * feat: follow unkey on X (#2357) * Update 6_record_onboarding.md (#2301) * fix: reset input fields in API delete dialog after reopening (#2316) * fix: reset input fields in API delete dialog after reopening * refactor: remove unnecessary useEffect and utilize existing onOpenChange function for dialog * refactor: removed unused imports * Update 3_follow_the_unkey_x_account.md (#2364) Added name to the followed list. Co-authored-by: Andreas Thomas <[email protected]> * ci: add label * feat: add hover to input fields * Added gaps and width for md (#2371) * docs: update overview.mdx (#2384) avaliable -> available * oss.gg side quest 3_follow_the_unkey_x_account.md (#2399) Followed the unkey x account * feat: Following unkey acc on twitter #2407 (#2408) * Feat: Followed Unkey on X * Feat: Followed Unkey on Twitter --------- Co-authored-by: Andreas Thomas <[email protected]> * resolve merge conflicts * resolve merge conflicts --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: chronark <[email protected]> Co-authored-by: Emily Marie Ahtúnan <[email protected]> Co-authored-by: Harsh Shrikant Bhat <[email protected]> Co-authored-by: Aritra Sadhukhan <[email protected]> Co-authored-by: Flo <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Devang Rakholiya <[email protected]> Co-authored-by: Prabin <[email protected]> Co-authored-by: ZiaCodes <[email protected]> Co-authored-by: Devansh Baghel <[email protected]> Co-authored-by: Shreenarayan jaiswal <[email protected]> Co-authored-by: Your Name <[email protected]> Co-authored-by: Chirag Arora <[email protected]> Co-authored-by: Nazar Poshtarenko <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Saketh Pavan Goti <[email protected]> Co-authored-by: Teddy ASSIH <[email protected]> Co-authored-by: Vardhaman Bhandari <[email protected]> Co-authored-by: Atharva_404 <[email protected]> Co-authored-by: Rishi <[email protected]> Co-authored-by: Ikko Eltociear Ashimine <[email protected]> Co-authored-by: Ayan Mondal <[email protected]> Co-authored-by: Kunal Arya <[email protected]>
What does this PR do?
Completed oss.gg task of creating a starter template to showcase how you can use Unkey with a particular framework.
Repository for the starter template
Note: There is already an example with deno in the examples repo, but it is outdated and doesn't work with the latest deno version 2.0, also that example doesn't implement ratelimiting which i have added in my version.
Fixes #2306
Type of change
How should this be tested?
1. Clone the repository
git clone https://github.com/Devansh-Baghel/deno-unkey-ratelimit-starter.git cd deno-unkey-ratelimit-starter
2. Set up environment variables
Copy the .env.example file to .env file in the root directory and add your Unkey root key:
3. Run your server
Then go to
http://localhost:8000/secret
and refresh the page a few times to see that the api has been ratelimited.Checklist
Required
pnpm build
pnpm fmt
console.logs
git pull origin main
Appreciated
Summary by CodeRabbit