Skip to content

About

The official uvp template registry: standard uvp.template/1 packages, a deterministic index, and reviewable, checked submissions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

uvp templates

The official registry of uvp template packages. uvp is the client: it validates, stores, searches, and renders a package locally. This repository is the data and the review process — a standard uvp.template/1 package tree, a deterministic index, and CI that checks every submission.

The package format is owned by uvp, not by this repository. The authoritative description is uvp's docs/template-packages.md. If this repository and uvp disagree, uvp wins; that is a bug here.

Status

Bootstrap. The following is observed, not assumed:

  • uvp's template-package schema and validator landed in uvp#244 and uvp#245.
  • The latest published uvp-agents is 0.4.0 (observed 2026-10-20) and exposes the template commands: uvp template validate, import, search, get, export, and remove all run, and uvp init --template-package generates a workspace from a stored package.
  • This repository runs the structural lanes on every pull request: package shape, paths, limits, digests, licence/provenance, a bounded secret/PII scan, and index determinism.
  • The runtime lane — install the published uvp, validate/import the package, generate a workspace, build it against libuvcpp, and run it — runs when a maintainer applies the runtime-check label. It is gated by review, not by version detection, because it compiles and runs submitted C++.

A green structural run is evidence about the package's bytes and metadata. It is not evidence that the generated C++ builds or runs.

Layout

packages/<id>/<version>/
  template.json          the uvp.template/1 manifest
  README.md              what the package is and how to use it
  LICENSE                the licence named by the manifest
  preview.(png|svg|webp) optional preview
  files/                 the source tree, relative paths only
index.json               generated from packages/; never edited by hand
archives/<id>/<version>.tgz  generated tarball, digest recorded in index.json

packages/<id>/<version> is immutable. A change is a new version; replacing an existing one is not a merge this repository accepts.

Use a package

uvp is the client. It validates a package, stores it locally, and renders a workspace from it. Install uvp first — npx uvp-agents setup, or see uvp's installation page — then work against a checkout of this repository:

# There is no package server: a checkout is the source for a package.
git clone https://github.com/Antruly/uvp-templates
cd uvp-templates

# Check the package, then import it into the local store.
uvp template validate ./packages/hello-package/1.0.0
uvp template import ./packages/hello-package/1.0.0 --dry-run
uvp template import ./packages/hello-package/1.0.0

# Find it, then generate from it instead of a built-in template.
uvp template search --text hello
uvp init ./svc --name svc --template-package [email protected]

The local store is ~/.uvp/templates unless $UVP_TEMPLATE_HOME says otherwise. uvp template export <id>@<version> --target DIR writes a stored package back out in this repository's layout.

uvp template search reads the local store, not this repository's index.json. Remote search, download, and sync are the registry-client work in uvp#239; until that ships, the index is what a person or an agent reads to choose a package, and import is the hand-off.

The split is deliberate: uvp owns the package format and the client (docs/template-packages.md), and this repository owns the package data, the deterministic index, and the review that admits a version. If the two disagree about the format, uvp wins.

Submit a package

  1. Read CONTRIBUTING.md and the uvp package format.

  2. Add packages/<id>/<version>/ with the manifest, README, licence, and source tree.

  3. Run the same checks CI runs:

    node scripts/build-index.mjs --write
    node scripts/validate-packages.mjs
    node --test
  4. Open one pull request for one package version. Complete the PR template, including the AI-assistance disclosure and the human owner when applicable.

CI must pass, and a human owner must approve the final commit. A green run is evidence; it is not approval.

Index

The index is generated and deterministic:

  • raw: https://raw.githubusercontent.com/Antruly/uvp-templates/main/index.json
  • format: docs/index-format.md

No timestamps, no model calls, and no executable content are present in the index. Versions are immutable.

Rules

The short version; the normative documents are AGENTS.md, CONTRIBUTING.md, and docs/review-policy.md.

  • A package is data, not code. Nothing in a package runs at search or index time.
  • Every file is declared with a SHA-256 digest and byte count. No symlinks, no archives, no executables, no path traversal.
  • Licence and provenance are required. A package without them is rejected.
  • Credential-shaped content fails CI; PII-shaped content is reported for a human to resolve.
  • AI-assisted submissions are welcome and must name a human owner who takes responsibility. Agents never approve or merge their own work.
  • The runtime lane executes submitted C++ on an ephemeral runner with no secrets. It runs only after a maintainer applies the runtime-check label.

Licence

The registry's tooling and documents are MIT (LICENSE). Each package declares its own licence in its manifest and carries its own LICENSE file; submitting a package grants this registry the right to distribute it under that licence.

Security

Report vulnerabilities privately, as described in SECURITY.md. Do not open a public issue for a credential leak.

About

The official uvp template registry: standard uvp.template/1 packages, a deterministic index, and reviewable, checked submissions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages