Skip to Content
Examples & use cases

Examples & use cases

Concrete, copy-pasteable setups for common scenarios.

Register a single package

The minimum to browse a library:

// .vscode/settings.json { "snapds.packages": [ { "name": "@acme/ui", "version": "1.4.0", "importPath": "@acme/ui" } ] }

Multiple packages in a monorepo

Register several packages at once — locally-built workspace packages resolve automatically (see Resolution):

{ "snapds.packages": [ { "name": "@acme/ui", "version": "2.0.0", "importPath": "@acme/ui" }, { "name": "@acme/icons", "version": "2.0.0", "importPath": "@acme/icons" }, { "name": "@acme/charts", "version": "0.9.0", "importPath": "@acme/charts", "tsconfigPath": "packages/charts/tsconfig.json" } ] }

Point tsconfigPath at a package’s own tsconfig.json when its types rely on path aliases or custom compiler options, so react-docgen parses it correctly.

Hide internal components and surface a polymorphic one that docgen misses. This belongs in a committed snapds.config.json so the whole team shares it:

// snapds.config.json { "packages": { "@acme/ui": { "ignore": ["InternalOnly", "DebugGrid"], "overrides": { "Box": { "snippet": "<Box as=\"section\">$1</Box>" }, "Button": { "props": { "variant": { "defaultValue": "primary", "description": "Visual style." }, "internalTelemetryId": { "hidden": true } } } } } } }

Ship agent-ready skills

Turn your components into skills a coding agent can load on demand:

// .vscode/settings.json { "snapds.skills": { "enabled": true, "formats": ["claude", "cursor", "copilot"], "destination": "workspace", "autoGenerate": true } }

Then run Snapds: Generate Skills. See Skills for agents for the output layout.

Use cases

Last updated on