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

tools-template-cli

v0.1.2

Published

CLI for cloning starter templates from this repository into fresh project directories

Downloads

35

Readme

tmp-cli

tmp-cli is a small CLI for cloning starter templates from this repository into a new project directory.

Install globally with your preferred package manager:

npm install -g tools-template-cli
pnpm add -g tools-template-cli
bun add -g tools-template-cli

Then run:

tmp-cli list

Fastest way to create a project:

tmp-cli create yuyi

That will show a template list, let you choose one, and then generate the project in ./yuyi.

What it does

  • Lists the templates bundled with the package
  • Copies a template into a new target directory
  • Skips .git, node_modules, .DS_Store, and common build output directories
  • Renames basic config values for JavaScript templates
  • Optionally runs your package manager install step
  • Optionally initializes a fresh git repository

Available templates

Current templates:

  • supabase-expo-app
  • supabase-user-management
  • supabase-swiftui-app
  • supabase_flutter_app

Check the latest packaged list at any time:

tmp-cli list

Usage

Pass the target directory first and choose the template with a flag:

tmp-cli create ./apps/mobile --template supabase-expo-app
tmp-cli create ./apps/admin --template supabase-user-management

Or pass only the target directory and choose from the interactive template list:

tmp-cli create yuyi
tmp-cli create ./apps/admin

Initialize git in the generated project:

tmp-cli create admin-app --template supabase-user-management --git

Install dependencies immediately after generation:

tmp-cli create my-mobile-app --template supabase-expo-app --install
tmp-cli create admin-app --template supabase-user-management --install

Override the display name for supported templates:

tmp-cli create my-mobile-app --template supabase-expo-app --name "My Mobile App"

Overwrite an existing non-empty target directory:

tmp-cli create my-mobile-app --template supabase-expo-app --force

Commands

tmp-cli list

Prints all packaged templates.

tmp-cli list

tmp-cli create

Create a project from one of the packaged templates.

tmp-cli create yuyi
tmp-cli create <target-directory> --template <template> [options]

Options:

  • -t, --template <name>: template name to copy
  • -n, --name <display-name>: display name for supported templates
  • -p, --package-manager <tool>: npm, pnpm, yarn, or bun
  • -f, --force: overwrite a non-empty target directory
  • -i, --install: run install after copy
  • -g, --git: run git init in the generated directory
  • -h, --help: show help
  • -v, --version: show the CLI version

Examples

Expo app:

tmp-cli create my-mobile-app --template supabase-expo-app --name "My Mobile App"
cd my-mobile-app
npm install

Next.js app:

tmp-cli create admin-app --template supabase-user-management --git
cd admin-app
npm install

Nested target directory:

tmp-cli create ./apps/admin --template supabase-user-management --install

Template behavior

These templates get automatic config renaming:

  • supabase-expo-app
  • supabase-user-management

That includes updates in files such as:

  • package.json
  • package-lock.json
  • app.json
  • README.md

The SwiftUI and Flutter templates are copied as-is apart from the target directory name and README reference.

Local development

Use the local source directly while working on the CLI:

npm install
npm run build
npm link
tmp-cli list

Or run the compiled output directly:

npm run build
node dist/index.js help

Install notes

  • npm global install: npm install -g tools-template-cli
  • pnpm global install: pnpm add -g tools-template-cli
  • bun global install: bun add -g tools-template-cli

After installation, the command is always:

tmp-cli

Package

  • npm package: tools-template-cli
  • global command: tmp-cli