This repo is the template and addon bank for create-vlang-app.
templates.json— single registry of all templates, addons, and categories. Every entry needsname,description,url;kind(template|addon),tags, and optionallycompatibleWith/incompatibleWith. Slugs are thenamefield and must be globally unique.compatibleWith— links addons to templates. A template has notype; an addon lists one or more template slugs incompatibleWith. Empty or absent means compatible with all templates. Only matching addons appear when a template is selected.incompatibleWithdeclares addons that cannot be combined due to path collisions.v.mod— lives in the template root, definesModule { name, version, description, dependencies }forv install/vpm. Some templates ship a minimalmodule main(1 line) while publishable libraries use a full module manifest.template/subdirectory — for addons, the overlay root. When present, CVA copies fromextensions/<slug>/template/instead of the addon root. KeepREADME.mdatextensions/<slug>/README.md(not insidetemplate/) so author docs are not merged into user projects..templateand.appendsemantics — Prefer new files; the engine supports.template(rendered per file) and.append(append to existing target, e.g.docs/README.md.append) and copy-only merge where later layers override earlier ones.file://addon URL — for local testing:file://$PWD?subdir=templates/web-serverandfile://$PWD?subdir=extensions/github-setup. The?subdir=segment must match the on-disktemplates/<slug>orextensions/<slug>directory.
# Scaffold from a local checkout
create-vlang-app my-app \
--template "file://$PWD?subdir=templates/web-server" \
--no-interactive --force --no-install
cd my-app && v fmt -verify . && v vet . && v test .
# Add a local addon
create-vlang-app my-app \
--template "file://$PWD?subdir=templates/web-server" \
--addons "file://$PWD?subdir=extensions/github-setup" \
--no-interactive --force --no-install
# Validate registry (L0)
python3 scripts/ci/validate-registry.pySee docs/TESTING.md for more examples and CI details.
| File | Contents |
|---|---|
| docs/ARCHITECTURE.md | System overview, template vs addon, merge model |
| docs/AUTHORING.md | Directory layout, v.mod, addons, compatibleWith |
| docs/DOMAIN_AUTHORING.md | vsl / vtl / rxv domain addons |
| docs/TESTING.md | Local testing commands and CI layers |
| docs/MAINTENANCE_RUNBOOK.md | Operating constraints, decision tree, maintenance index |
| CONTRIBUTING.md | How to add templates and addons |