Open-Source Wikis

/

tldraw

/

Packages

/

create-tldraw

tldraw/tldraw

create-tldraw

Purpose

create-tldraw is the scaffolding CLI behind npx create-tldraw@latest. It clones one of the templates from templates/ into a target directory, swaps in the user-chosen package manager, and patches dependency versions.

Directory layout

packages/create-tldraw/
├── package.json
├── src/                # CLI entry point and the cloning logic
└── ...

How it works

graph LR
    User[npx create-tldraw@latest] --> CLI
    CLI -->|prompt| User
    CLI -->|copy| Templates[templates/<chosen-template>/]
    CLI -->|patch| TargetDir[target directory]

The list of available templates is derived from the templates/ folder. Each template has its own package.json and README.md. When the user picks one, the CLI copies it, replaces placeholders, and writes a fresh package.json with the latest published versions of the SDK packages.

Integration points

  • Pulls templates from templates/ at scaffold time (the package itself ships a manifest of templates and their versions).
  • Used externally only — not imported by any other workspace.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

create-tldraw – tldraw wiki | Factory