btst-integration

Installation
SKILL.md

BTST Library Integration

Quick start

  1. Install @btst/stack, @tanstack/react-query, and one @btst/adapter-*.
  2. Install and register each plugin's backend and client halves.
  3. Create lib/stack.ts → export { handler, dbSchema }.
  4. Mount handler with the framework API entry factory at /api/data/*.
  5. Add @import "@btst/stack/plugins/{plugin}/css" per plugin in your global CSS.
  6. Create lib/stack-client.tsx, lib/query-client.ts, and the /pages/* catch-all route with the framework page entry factory.
  7. Create the pages layout file with QueryClientProvider + StackProvider.
  8. Run @btst/cli generate (and migrate for Kysely).

See REFERENCE.md for full code shapes for every file.

Workflow

1) Install prerequisites and packages

Installs
44
GitHub Stars
77
First Seen
Apr 15, 2026