@porulle/plugin-wishlist
v0.10.4
Published
Per-customer saved items for later purchase, with admin listing across users.
Readme
@porulle/plugin-wishlist
Per-customer saved items for later purchase, with admin listing across users.
Install
bun add @porulle/plugin-wishlistAdd to commerce.config.ts:
import { wishlistPlugin } from "@porulle/plugin-wishlist";
export default defineConfig({
plugins: [wishlistPlugin()],
});Add to drizzle.config.ts:
schema: [
"./node_modules/@porulle/plugin-wishlist/src/schema.ts",
// ...
],What it does
Stores wishlist rows keyed to customers and catalog entities; authenticated shoppers manage their list while admins can query aggregate views.
Routes exposed
/wishlist — GET /, POST /, DELETE /{id} (authenticated customer); GET /admin (wishlist:admin)
Hooks
Emitted: none.
Consumed: none.
MCP tools
None.
Configuration options
None (wishlistPlugin() takes no options).
License
MIT
