Title: GenClass Docs: Install with One Command
Open Graph Title: GenClass Docs: Install with One Command
X Title: GenClass Docs: Install with One Command
Description: Run npx genclass, or add @genclass/runtime by hand with npm or a script tag. Modes, what it costs, where reports go, telemetry, self-hosting the model.
Open Graph Description: Run npx genclass, or add @genclass/runtime by hand with npm or a script tag. Modes, what it costs, where reports go, telemetry, self-hosting the model.
X Description: Run npx genclass, or add @genclass/runtime by hand with npm or a script tag. Modes, what it costs, where reports go, telemetry, self-hosting the model.
Mail addresses
mehar@genclass.dev?subject=GenClass false detection
Opengraph URL: https://genclass.dev/docs
Domain: genclass.dev
{"@context": "https://schema.org", "@graph": [{"@type": "Organization", "@id": "https://genclass.dev/#org", "name": "GenClass", "url": "https://genclass.dev/", "legalName": "Daybot Solutions Inc.", "description": "The company behind GenClass, the runtime that finds race conditions, double submits and stale responses in web apps.", "logo": {"@type": "ImageObject", "url": "https://genclass.dev/brand/mark-512.png", "width": 512, "height": 512}, "image": {"@type": "ImageObject", "url": "https://genclass.dev/brand/mark-512.png", "width": 512, "height": 512}, "sameAs": ["https://github.com/genclass-dev", "https://github.com/genclass-dev/GenClass", "https://www.npmjs.com/package/genclass", "https://www.npmjs.com/package/@genclass/runtime", "https://discord.gg/KyKbg6HR76"]}, {"@type": "WebSite", "@id": "https://genclass.dev/#site", "url": "https://genclass.dev/", "name": "GenClass", "alternateName": ["genclass.dev"], "description": "GenClass, the runtime that finds race conditions, double submits and stale responses in web apps.", "inLanguage": "en", "publisher": {"@id": "https://genclass.dev/#org"}}, {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "Home", "item": "https://genclass.dev/"}, {"@type": "ListItem", "position": 2, "name": "Docs", "item": "https://genclass.dev/docs"}]}, {"@type": "HowTo", "name": "Install GenClass in a web app", "description": "Add the GenClass runtime to any web app with one line.", "totalTime": "PT2M", "tool": [{"@type": "HowToTool", "name": "npm"}], "step": [{"@type": "HowToStep", "name": "Run the command", "text": "Run npx genclass in your app's folder: it adds the package and the one line, and sets up the rest. By hand: npm install @genclass/runtime.", "url": "https://genclass.dev/docs#install"}, {"@type": "HowToStep", "name": "Add the one line", "text": "Add import \"@genclass/runtime/auto/heal\" as the first line of your entry file (\"@genclass/runtime/auto\" alone is observe), or call GenClass.init({ mode: 'heal' }) there.", "url": "https://genclass.dev/docs#init"}, {"@type": "HowToStep", "name": "Choose the mode", "text": "Start with heal mode (import @genclass/runtime/auto/heal, or { mode: 'heal' }), so GenClass fixes what it is sure of and logs each action; observe reports only.", "url": "https://genclass.dev/docs#modes"}]}, {"@type": "TechArticle", "headline": "GenClass documentation: getting started", "author": {"@id": "https://genclass.dev/#org"}, "publisher": {"@id": "https://genclass.dev/#org"}, "dateModified": "2026-10-27", "proficiencyLevel": "Beginner", "mainEntityOfPage": "https://genclass.dev/docs", "description": "Run npx genclass, or add @genclass/runtime by hand with npm or a script tag. Modes, what it costs, where reports go, telemetry, self-hosting the model.", "image": "https://genclass.dev/og.png?v=6", "inLanguage": "en"}]}
| theme-color | #fcfcfc |
| color-scheme | dark light |
| author | GenClass |
| application-name | GenClass |
| og:type | website |
| og:site_name | GenClass |
| og:image | https://genclass.dev/og.png?v=6 |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | GenClass: Catch the bugs that never throw. Then stop them. |
| og:locale | en_US |
| twitter:card | summary_large_image |
| twitter:image | https://genclass.dev/og.png?v=6 |
Links:
Viewport: width=device-width, initial-scale=1, viewport-fit=cover
Robots: index, follow, max-image-preview:large, max-snippet:-1