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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-textmode

v1.0.6

Published

Scaffold textmode.js projects with zero friction

Readme

create-textmode (✿◠‿◠)

A zero-friction scaffolder for textmode.js.

| JavaScript Vite | textmode.js docs Discord | ko-fi Github-sponsors | |:-------------|:-------------|:-------------|

create-textmode.js is a command-line tool to quickly scaffold new projects using textmode.js with sensible defaults and minimal friction.

Just run the CLI via npm create textmode@latest or your package manager's equivalent command, answer a few prompts, and you're ready to start building!

[!NOTE] The CLI is still fresh out of the oven, so please report any issues or feature requests on the GitHub repo!

Requirements

  • Node.js 18+ (per engines)
  • One of: npm, pnpm, yarn, or bun on your PATH

Quick start (interactive)

npm create textmode@latest
# or
pnpm create textmode@latest
# or
yarn create textmode
# ...

The CLI will prompt for project name, template, textmode.js version, installing dependencies, and starting the dev server.

Non-interactive examples

# TypeScript template, pin textmode.js, auto-install, do not run dev server
npm create textmode@latest my-textmode-app -- --template vanilla-ts --textmode-version 0.7.1 --install --no-run

# JavaScript template with pnpm, skip install and run
pnpm create textmode@latest demo -- --template vanilla-js --pm pnpm --no-install --no-run

Options

  • --template <name>: choose a template (prompts if omitted)
  • --name <projectName> or first positional arg: directory/package name (default suggestion if omitted)
  • --textmode-version <ver>: pin textmode.js (prompts from fetched stable versions; defaults to latest)
  • --pm <npm|pnpm|yarn|bun>: force a package manager (auto-detected otherwise)
  • --install / --no-install: install dependencies after scaffold (prompts if neither is provided)
  • --run / --no-run: start the dev server after install (prompts if neither is provided)
  • --force: allow using a non-empty directory without prompting
  • --help: show usage
  • --version: show the CLI version

Templates

All templates ship with Vite, textmode.js, Prettier, ESLint, and a .gitignore. TypeScript variants add tsconfig and a typecheck script. Below are the extras that differ by template:

| Template | Flavor | Extras | |:---------|:-------|:-------| | vanilla-js | JavaScript | Base starter sketch | | vanilla-ts | TypeScript | Base starter sketch + TS config | | vanilla-js-fxhash | JavaScript + fx(hash) | Bundled fxhash.min.js, starter sketch using $fx API and features | | vanilla-ts-fxhash | TypeScript + fx(hash) | Bundled fxhash.min.js, $fx typings, starter sketch using $fx API and features | | vanilla-js-tweakpane | JavaScript + Tweakpane | UI controls wired with Tweakpane | | vanilla-ts-tweakpane | TypeScript + Tweakpane | UI controls wired with Tweakpane + TS config |

Adding new templates? Keep the shared tooling note above and only list what’s unique in the table.

Local development

npm install
npm test          # vitest
npm run test:verbose

# Run CLI directly (no npm-create shim); no "--" needed
node bin/index.js demo --template vanilla-js --pm pnpm --no-install --no-run
# or
node bin/index.js
# ...