@contextjs/templates
v25.1.0
Published
ContextJS - Templates
Downloads
20
Maintainers
Readme
@contextjs/templates
Official project templates for ContextJS.
Overview
This package provides all official project templates for the ContextJS ecosystem.
Templates are discovered and used automatically by the @contextjs/context CLI when installed globally.
- Not a standalone CLI.
- No direct API surface; it’s consumed by the main ContextJS CLI.
Usage
To use these templates, install both @contextjs/context and @contextjs/templates globally:
npm install -g @contextjs/context @contextjs/templatesThen run:
ctx newYou will see all available official templates, and can scaffold projects directly from them.
Example
To create a new Web API project:
ctx new webapi myapiTo see all templates:
ctx newAvailable Templates
The following templates are included (the actual list may change with each release):
- webapi – REST API starter
Each template includes:
- Standard project structure
- Preconfigured ContextJS settings
- Example source files
How It Works
When @contextjs/templates is installed globally,
the @contextjs/context CLI will automatically detect and list all included templates when you run ctx new.
- You do not invoke this package directly.
- Removing this package will remove access to official templates in the CLI.
