btst-integration
Installation
SKILL.md
BTST Library Integration
Quick start
- Install
@btst/stack,@tanstack/react-query, and one@btst/adapter-*. - Install and register each plugin's backend and client halves.
- Create
lib/stack.ts→ export{ handler, dbSchema }. - Mount
handlerwith the framework API entry factory at/api/data/*. - Add
@import "@btst/stack/plugins/{plugin}/css"per plugin in your global CSS. - Create
lib/stack-client.tsx,lib/query-client.ts, and the/pages/*catch-all route with the framework page entry factory. - Create the pages layout file with
QueryClientProvider+StackProvider. - Run
@btst/cli generate(andmigratefor Kysely).
See REFERENCE.md for full code shapes for every file.