Prerequisites
- Created your Unkey account
- Created an Unkey root key with
ratelimit.*.create_namespace
andratelimit.*.limit
permissions.
1
Create Hono Application
Run the following command to create your Hono project
2
Install
Now install the
@unkey/ratelimit
package3
Add Root Key to env
Add your root key to your
.env
file4
Update index to use our Hono SDK
Create a new route and add the following code
/src/index.ts
5
Running it
6