@nexpress/plugin-forum
v0.3.26
Published
Forum plugin for NexPress — threaded discussions on top of the community surface.
Downloads
1,604
Maintainers
Readme
@nexpress/plugin-forum
Forum plugin for NexPress — threaded discussions on top of the community surface (comments, reactions, follows, mentions).
Install
pnpm add @nexpress/plugin-forumUsage
// nexpress.config.ts
import forum, { defineDiscussionsCollection } from "@nexpress/plugin-forum";
import { defaultCollections } from "@nexpress/app/config-defaults";
export default defineConfig({
// ...
collections: [...defaultCollections, defineDiscussionsCollection()],
plugins: [forum],
});Then generate and apply the collection migration:
pnpm db:generate && pnpm db:migrateThe plugin contributes public routes for /discussions,
/discussions/new, /discussions/:slug, /discussions/:slug/edit,
and /u/:handle/discussions.
For the plugin model and extension points, see
@nexpress/plugin-sdk.
License
MIT
