@stedefast/module-reactions
v0.2.3
Published
Emoji reactions dynamic module for Stedefast — per-emoji KV counters, CF Worker handlers, React island, static JSON export
Downloads
354
Maintainers
Readme
@stedefast/module-reactions
Emoji reactions module for Stedefast — per-page emoji reactions stored in Cloudflare KV, React island, build-time static JSON export.
Installation
pnpm add @stedefast/module-reactionsUsage
// stedefast.config.ts
import { defineConfig } from "@stedefast/core";
import { ReactionsModule } from "@stedefast/module-reactions";
export default defineConfig({
modules: [
ReactionsModule({
reactions: ["👍", "💡", "🔥"],
}),
],
});The island renders automatically on pages where it's placed via data-island="ReactionsIsland".
Documentation
Full docs at stedefast.dev/docs/modules/reactions.
License
MIT
