Copy-paste starters with @genclass/runtime already installed the
recommended way: the one line. Each is a fresh app from the framework's own generator, trimmed to one page with a
search box and a mock API that answers out of order, so you can see GenClass work within a minute.
| template | the one line goes in | run |
|---|---|---|
| react-vite | src/main.tsx |
npm install && npm run dev |
| nextjs (App Router) | instrumentation-client.ts |
npm install && npm run dev |
| vue-vite | src/main.ts |
npm install && npm run dev |
| sveltekit | src/hooks.client.ts |
npm install && npm run dev |
| astro (Node adapter) | astro.config.mjs: the @genclass/astro integration |
npm install && npm run dev |
| nuxt | nuxt.config.ts: the @genclass/nuxt module |
npm install && npm run dev |
| react-router (framework mode, SSR) | app/entry.client.tsx |
npm install && npm run dev |
| angular (SSR) | src/main.ts |
npm install && npm run dev |
Copy one without the rest of the repository:
npx degit genclass-dev/GenClass/templates/react-vite my-app
cd my-app && npm install && npm run devEvery template:
- starts in observe mode: GenClass reports what it finds (one browser console line per finding) and changes
nothing. Switch the import to
@genclass/runtime/auto/guard(in astro and nuxt:mode: "guard"in the integration's or module's options) to let it act when its model is confident; - draws nothing on the page: the devtools overlay is opt-in (each README shows how to turn it on);
- can be turned off per page load with
?genclass=offin the URL; - sends anonymous, redacted diagnostics by default; each README shows the one-line opt-out.
They need @genclass/runtime 0.2.0 or later (automatic state discovery); astro and nuxt also need
@genclass/astro and @genclass/nuxt 0.1.0 on npm. Each one builds, boots and passes the checks in
compat/templates-check.mjs (production build and dev server, Chromium) against the runtime, the integration and the
module packed from this repository; the frameworks behind them are covered by the
compatibility matrix.