npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@damatjs/create-damat-app

v0.6.0

Published

Create a damat project using a single command.

Readme

@damatjs/create-damat-app

create-damat-app — scaffold a new Damat backend or module with a single command.

@damatjs/create-damat-app provides the create-damat-app binary. For a full project it clones the starter repository; for a module it scaffolds locally via the damat CLI's module init (no remote starter repo needed). It then renames and re-versions the package, writes default environment variables (projects), installs dependencies with Bun, and (for a full project) starts the dev server. It runs an interactive, animated terminal experience (spinner, tips box, prompts) built on the shared @damatjs/cli runner — and the project name is just the first argument: create-damat-app my-app.

Part of the Damat monorepo · Full guide · Internals

Install

The binary is create-damat-app. You normally run it via your runner without installing it globally.

# scaffold in one shot
bunx @damatjs/create-damat-app@latest my-app
npx  create-damat-app@latest my-app

# or install globally
bun add -g @damatjs/create-damat-app
create-damat-app my-app

Bun is required (>= major v1). The CLI checks the running Bun version up front and exits with an install link if it is too old.

Commands

One command, create (aliases init, new); the project name is the first positional argument.

| Command | Description | Example | |---|---|---| | create [name] | Scaffold a project (or module with --module) | create-damat-app my-app |

Options

| Option | Alias | Type | Default | Description | |---|---|---|---|---| | --module | | boolean | false | Create a module instead of a project | | --repo-url <url> | -r | string | starter default | Clone from a custom repository | | --version <version> | -v | string | latest | Version to pin @damatjs/* deps to | | --directory-path <path> | -d | string | process.cwd() | Directory to create the project in | | --verbose | | boolean | false | Stream all command output (debugging) |

Scaffolding source:

  • project → clones https://github.com/damatjs/damat-starter-default
  • module → scaffolds locally via @damatjs/damat-cli module init (no remote starter repo). Pass --repo-url <git> to clone a custom starter instead.

When to use

  • Starting a new Damat backend: create-damat-app my-app clones the default starter, prepares it, installs deps, and launches bun run dev.
  • Starting a new standalone module: create-damat-app my-module --module scaffolds the module locally (via damat module init) and installs deps (no dev server is started). Pass --repo-url to clone a custom module starter.
  • From a custom template: pass --repo-url to scaffold from your own fork.
  • For composing modules into an existing app, use damat module add (@damatjs/damat-cli) instead — this CLI is only for initial scaffolding.

Quick start

# full project (clones, prepares, installs, starts dev)
bunx @damatjs/create-damat-app@latest my-app

# module package (scaffolds locally + installs; no server)
bunx @damatjs/create-damat-app@latest my-module --module

# pin damat package versions and choose a directory
bunx @damatjs/create-damat-app@latest my-app -v 0.1.4 -d ./projects

# scaffold from a custom starter, with full logs
bunx @damatjs/create-damat-app@latest my-app -r https://github.com/me/my-starter --verbose

What a project run does (grounded in damatProjectCreator):

  1. Clone the starter (--depth 1), strip its .git/.github, and git init a fresh main with a bootstrap commit.
  2. Update package.json (name, packageManager: bun@<ver>, and pin @damatjs/* deps to --version).
  3. Append default env vars to .env (FRONTEND_CORS, AUTH_CORS, REDIS_URL, JWT_SECRET, COOKIE_SECRET).
  4. bun install (removing stray non-Bun lockfiles first).
  5. Start bun run dev; on terminate, print a success box.

A module run does steps 1, 2, 4 only (no .env, no version pinning, no dev server) and prints its success box immediately.

If you pass a name that already exists, contains a dot, or is omitted, the CLI prompts interactively (and slugifies the answer).

How it fits

Depends on:

  • @damatjs/cli — command runner, option parsing, banner.
  • @damatjs/deps — bundled pg client (used by the standalone database helpers).
  • @clack/prompts — interactive prompts. yocto-spinner — spinner.
  • boxen, picocolors, node-emoji, terminal-link — terminal styling.
  • slugify, configstore, winston, wait-on, open — naming, persisted config, logging, readiness waiting, browser opening.

Consumed by: developers bootstrapping a new project. The generated project then uses the damat CLI (@damatjs/damat-cli) for its lifecycle.

Documentation

  • Internals — module map and the create flow, project-vs- module differences, database setup, and package-manager handling.
  • Full guide — the Damat monorepo guide.

License

MIT