Skip to main content

cast — outline

Spin up projects in seconds. Save your own repos (local or from GitHub) as templates, scaffold new projects from them, layer on add-ons like Tailwind, Supabase, or Prisma, and land straight in your editor.

Install

pipx install cast-by-matt

Usage

Run cast with no arguments for the interactive menu:

cast

Or use it directly:

cast init myapp nextjs      # scaffold 'myapp' from the 'nextjs' template
cast add nextjs ~/code/my-starter   # save a local directory as a template
cast list                   # list saved templates
cast info nextjs            # show a template's variables, add-ons, and docs
cast remove nextjs          # delete a template
cast starter                # install the bundled starter templates

init is fully scriptable: --addons tailwind,prisma runs add-ons and --open launches your editor.

Works with AI coding agents

Every command runs headless, so agents like Claude Code can drive cast directly: discover templates with cast list --json, inspect a template's stack and add-ons with cast info <template> --json, then scaffold with cast init <name> <template> --addons .... No plugin needed — the CLI is the integration.

New here? Just run cast — on first run it offers to install two starter templates: starter, a dependency-free mini site whose README explains how templating works, and web, a minimal Vite app. Scaffold one and you've seen the whole workflow.

Templates live in ~/.project_templates. Scaffolding copies your template byte-for-byte — what you saved is exactly what you get. git init runs automatically, and dependency installs are detected and run for you using the package manager the template was built with (pnpm install, uv sync, cargo build, …), in the project root and its subfolders — fullstack templates with a frontend/ and backend/ just work.

Optional: cast.json overrides

You never need a manifest. cast reads a template's description from its own package.json/pyproject.toml/Cargo.toml, detects installs from its lockfiles, and only offers add-ons that fit its stack. Drop a cast.json at the template root only to add things a repo can't say about itself — a recommendation, a docs link, a custom setup command. Every field is optional, and the file never ships into generated projects.

{
  // shown in the template picker and `cast list`
  "description": "Next.js 15 + App Router starter",

  "addons": {
    "recommended": ["tailwind", "shadcn"], // pre-checked in the add-on picker
    "supported": ["tailwind", "shadcn", "prisma"], // limits built-ins shown; omit to show all
    "custom": {
      // ships with the template — anyone who installs it gets this add-on
      "seed-db": { "label": "Seed database", "cmd": "npm run seed" },
    },
  },

  // replaces automatic install detection (git init still always runs);
  // use [] to skip installs entirely
  "post_init": ["npm install", "cp .env.example .env"],

  // printed after scaffolding so you never hunt for docs again
  "docs": ["https://nextjs.org/docs"],
}

Sharing templates

A template is just a repo. Push it to GitHub and anyone can install it — cast add nextjs https://github.com/you/your-starter — with its description, recommended add-ons, docs links, and custom add-ons riding along in cast.json. Tag your repo with the cast-template topic so others can find it, and browse that topic to find theirs. Add-on commands always print in full before they run.

Metadata

Release files for cast-by-matt 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cast-by-matt 0.2.1
File Size Uploaded Provenance Actions
cast_by_matt-0.2.1.tar.gz 26.8 kB With provenance Details for cast_by_matt-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cast-by-matt 0.2.1
File Interpreter ABI Platform Actions
cast_by_matt-0.2.1-py3-none-any.whl Python 3 none any Details for cast_by_matt-0.2.1-py3-none-any.whl

Total release size: 54.6 kB

Release files / cast_by_matt-0.2.1.tar.gz

Download URL cast_by_matt-0.2.1.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
072598c77402355e0b25d6bf65c0d80062ed7b9d0c50770279a34c87c78983bd
BLAKE2b-256 checksum
How to use checksums
c3af546731f246a12aae49ee630fdaebd4f1ad7325afa2bdb5d8a798a435e4c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

Release files / cast_by_matt-0.2.1-py3-none-any.whl

Download URL cast_by_matt-0.2.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
382cf714fcf74a5c93b302ef382ca1b4859ece5905394af63a99df0ebaf14d64
BLAKE2b-256 checksum
How to use checksums
c409bdbfb718b4b18c4312eef2c255f6cce1b0d177de21f8e703b1cc2a6b84e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

Security for cast-by-matt 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cast_by_matt-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page