Configuration
Guide to seed-design.json configuration.
Creating seed-design.json
The seed-design.json file can be created by CLI or added manually.
Basic Format
seed-design.json is parsed strictly. Adding arbitrary keys not documented can cause errors when running CLI.
Options at a Glance
| Option | Type | Default | Description |
|---|---|---|---|
path | string | None (init creates ./seed-design) | Root path where snippets are generated |
rsc | boolean | false | Keep/remove "use client" based on React Server Components usage |
tsx | boolean | true | Convert generated files to TypeScript(.ts/.tsx) or JavaScript(.js/.jsx) |
framework | "react" | "lynx" | "react" | Target framework for snippets. Auto-detected during init |
telemetry | boolean | true | Whether to collect anonymous usage data |
$schema | string | Optional | Field for JSON schema hints (does not affect CLI operation) |
path
path is the root directory where snippets are generated.
When running add/add-all, files are created under path based on registry ID and snippet internal path.
It's not a fixed folder structure, but the structure varies depending on the items you select.
rsc
Configure whether to use React Server Components.
Decide whether to keep the "use client" directive already in the snippet.
true: Keep"use client".false: Remove"use client"from the top of the file.
tsx
Configure whether to use TypeScript.
If set to false, .ts/.tsx files are converted to .js/.jsx.
framework
Configure the target framework for snippets.
When running init, if @lynx-js/react or @seed-design/lynx-react is found in the project's package.json, it's auto-detected as "lynx".
"react": Use snippets based on@seed-design/react,@seed-design/css."lynx": Use snippets based on@seed-design/lynx-react,@seed-design/lynx-css.
You can temporarily override this value with the --framework option in CLI commands.
telemetry
Configure whether to collect telemetry data.
Crispy CLI collects anonymous usage data for improvement. Project paths, file contents, and source code are not collected.
Priority
Telemetry activation is determined in the following order:
DISABLE_TELEMETRY=trueenvironment variableSEED_DISABLE_TELEMETRY=trueenvironment variabletelemetryinseed-design.json- Default value
true
Examples of collected data
- Execution events:
init,add,add-all,compat - Execution stats: execution time (
duration_ms), number of items added - Configuration info:
tsx,rsc,include_deprecated,yes_option, etc.
Data not collected
- Project path, generated file path
- Snippet file contents
- Source code
- Personally identifiable information
How to disable
1. seed-design.json configuration
2. Environment variable configuration
$schema
$schema is an optional string field.
It does not affect current CLI operation and can only be used for JSON auto-completion/validation in editors.