A simple component that can be adapted for use in your SvelteKit project.
Uses SvelteKit form actions to submit reactions to a Upstash Redis database with Upstash rate limiting.
Configurable through the src/lib/config.ts
file.
Detail on how it was implemented: https://scottspence.com/posts/sveltekit-page-reaction-component-with-upstash-redis
https://sveltekit-reactions.vercel.app
Initial idea from:
- https://github.com/upstash/claps
- https://grafbase.com/guides/add-reactions-to-your-sveltekit-pages-with-graphql-and-form-actions
How to use rate limit with SvelteKit:
Jamie Barton for the reactions post on the Grafbase blog.
Geoff Rich for the rate limit guide on the Upstash blog.