From 623c66bd004ac6ff596d26fb5df2927bc3d19164 Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Thu, 16 Jul 2026 03:15:09 -0300 Subject: [PATCH] docs: templates.json schema parity Closes #41 Co-authored-by: Cursor --- docs/templates-json-schema.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docs/templates-json-schema.md diff --git a/docs/templates-json-schema.md b/docs/templates-json-schema.md new file mode 100644 index 0000000..fe39fb3 --- /dev/null +++ b/docs/templates-json-schema.md @@ -0,0 +1,30 @@ +# `templates.json` schema (CPA) + +Parity with [cna-templates `templates.json`](https://github.com/Create-Node-App/cna-templates). + +```json +{ + "templates": [ + { + "slug": "fastapi-starter", + "name": "FastAPI Starter", + "category": "backend", + "url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/fastapi-starter", + "description": "Minimal FastAPI app with uv" + } + ], + "addons": [ + { + "slug": "ruff-setup", + "name": "Ruff", + "category": "tooling", + "url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/ruff-setup" + } + ] +} +``` + +## Differences from Node + +- URLs point at Python templates (pyproject/uv/ruff) instead of package.json/npm +- Compatibility metadata should list Python ranges instead of Node engines