rack.json
rack.json is the project configuration file that defines the project's language, template, registry sources, and other information.
Example
json
{
"$schema": "https://rackjs.com/schema/rack.json",
"name": "my-project",
"language": "ts",
"template": "react-tutorial-project",
"items": [
"runtimes/node@1.0.0",
"build/vite",
"frameworks/react"
]
}Field Descriptions
$schema
- Type:
string - Required: No
- Description: Schema URL
json
{
"$schema": "https://rackjs.com/schema/rack.json"
}name
- Type:
string - Required: Yes
- Description: Project name
json
{
"name": "my-project"
}language
- Type:
string - Required: No
- Description: Project language
Common values:
"ts"- TypeScript"js"- JavaScript
json
{
"language": "ts"
}template
- Type:
string - Required: No
- Description: Template name used
json
{
"template": "react-tutorial-project"
}items
- Type:
string[] - Required: No
- Description: List of installed registries; version can be specified
Format:
- Full format:
@namespace/nameor@namespace/name@version(for non-@racknamespaces) - Shorthand format:
nameorname@version(CLI will automatically resolve to@rack/name, recommended for@rackregistries)
Version format (follows semver):
- Exact version:
runtimes/node@1.0.0or@rack/runtimes/node@1.0.0 - Without version:
runtimes/node(uses latest version)
json
{
"items": [
"runtimes/node@1.0.0",
"build/vite",
"frameworks/react"
]
}
