Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spences10/sveltekit-reactions

🎉 An emoji reactions component to use on your site
https://github.com/spences10/sveltekit-reactions

component example rate-limit redis svelte sveltekit upstash

Last synced: 11 days ago
JSON representation

🎉 An emoji reactions component to use on your site

Awesome Lists containing this project

README

        

# SvelteKit emoji reactions component

![emoji reaction buttons](.github/buttons.png)

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.

## Blog post

Detail on how it was implemented:
https://scottspence.com/posts/sveltekit-page-reaction-component-with-upstash-redis

## Demo

https://sveltekit-reactions.vercel.app

## Resources

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:

- https://upstash.com/blog/sveltekit-rate-limiting

## Thanks

Jamie Barton for the reactions post on the Grafbase blog.

Geoff Rich for the rate limit guide on the Upstash blog.