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

colab-new

v0.0.10

Published

Starts a co:lab project from a template: clones it, adds .llm-rules, swaps the placeholders for the project's name, installs the lint hook and prints the hosting steps left to do.

Downloads

1,336

Readme

colab-new

Starts a co:lab project from one of the templates in one command, so "the client said yes" to "there's a staging URL" has no hand-copying in it — and no # app-name-api README or "One-line description of the app" meta description leaking into a real project.

MANDATORY SETUP

  1. Run git clone https://codeberg.org/colab47/llm-instructions.git .llm-rules FIRST.
  2. Please ensure your LLM is truly using/following the rules.
  3. Whenever you need the latest rules, run updateRules (see the llm-instructions README).

Usage

colab-new website luna-black --domain=lunablack.co.za --description="Tattoo studio in Johannesburg."
colab-new website apple-glass --production=netlify --staging=vercel
colab-new api hyde-park-agent
colab-new --help

Run it in the folder the project should be created in. The name is kebab-case; every other spelling the template needs (Luna Black, lunaBlack, lunablack for Java packages, luna_black for Flutter) is derived from it.

| Kind | Template | |-----------|---------------------------------------------------------------------------| | website | website-template | | web-app | web-app-template | | webgl | webgl-template | | cli | cli-template | | api | spring-boot-template | | flutter | flutter-template |

How it works

One run, for colab-new website luna-black:

  1. Clones the template from Codeberg (--depth 1), drops its .git, runs git init on luna-black/ so there is a repo for the pre-commit hook, and sets origin to https://codeberg.org/colab47/luna-black.git — so a push from any tool goes to the colab47 organisation, never to whatever account that tool defaults to. Refuses if the folder already exists.
  2. Clones .llm-rules from llm-instructions — from ~/.cache/llm-rules when update-llm-rules.sh has left one there, otherwise from Codeberg.
  3. Replaces the template's placeholders in every text file (binary files are left alone): app-name, App Name, appName, plus cli-name for a CLI, appname for an API (the Java package folder is renamed too) and app_name/AppName for Flutter. With --domain= and --description=, example.com and the "One-line description …" meta descriptions go too.
  4. Runs npm install where there is a package.json, which runs c3b-lint --init from the template's postinstall and installs the pre-commit hook.
  5. Appends a "Placeholders" section to TODO.md listing whatever is still the template's — the domain or description if not given, the GoatCounter site, the favicon and OG image — so nothing ships silently.
  6. Creates the Netlify sites, when production or staging is on Netlify: <name> (<name>-staging), or <name>-colab47 when that name is taken — Netlify site names are global, not per team. They're made here, before the first commit, so the deploy scripts carry the project ID of the site Netlify actually made.
  7. When production or staging isn't where the template deploys it (Heroku and Vercel), rewrites deploy and deploy:staging in package.json for the hosts chosen: Vercel's is the template's vercel --prod, Netlify's netlify deploy --prod --site <the site's project ID> (its name, when the site couldn't be made here and is left for you to create), and no staging drops the staging scripts. Staging's builds with D8E_STAGING=1 wherever it is (--build-env on Vercel), so d8e drops the GoatCounter tag there and nowhere else.
  8. Commits and pushes to the colab47 organisation the way your own git push would — over SSH or HTTPS, whatever git has for Codeberg. If Codeberg lets that push create the repo, that is the whole step. If the push is refused because the repo does not exist yet, the repo is created through Codeberg's API with git's HTTPS credential (the keychain on a Mac) and pushed again. With neither — SSH only and no push-to-create — the one command left, git push -u origin main after creating the repo, is printed.
  9. Production (Heroku unless --production=): creates the Heroku app — with the nginx and Node buildpacks for a site, with a Postgres add-on for an API — or the <name> Vercel project, linked; a Netlify site is made at 6. Going live stays a deliberate git push heroku main or npm run deploy.
  10. Staging (Vercel unless --staging=): creates <name>-staging on Vercel (linked), and deploys it or the Netlify site made at 6, so there is a staging URL to send. A web app's Netlify staging waits for API_URL on the site first. Vercel projects land in whichever Vercel scope is current (vercel switch), Netlify sites in the colab47 team. Each step runs when its CLI is installed and logged in.
  11. Prints what is left: any of 6 and 8–10 that could not run here, as the exact command; Bunny; the API's config vars; API_URL for a web app — each pointing at the section of the project's own README that explains it.

The hosting steps live in hosting.js, beside the bin.

A hosting step that fails (a Heroku name already taken, say) stops the run with the tool's own message, but the folder stays: everything before it is done, and the step can be rerun by hand from the printed command.

Flags

  • --domain=example.co.za — the real domain, in place of example.com.
  • --description="…" — the meta description, in place of the template's placeholder sentence.
  • --production=heroku|vercel|netlify — where a site goes live (default heroku).
  • --staging=vercel|netlify|none — where a site's staging goes (default vercel). Vercel can't take both, since a folder links to one Vercel project; Netlify can, each deploy naming its site. Both flags are for website, web-app and webgl: an API goes to Heroku.
  • --from=<folder> — copy a local folder instead of cloning from Codeberg (offline, or trying a template change before it is pushed). .git, node_modules and build output are not copied.
  • --no-install — skip npm install.
  • --local — scaffold only: no Codeberg repo, Heroku app, Vercel project or Netlify site, each printed as a command.
  • --dry-run — report what would be created and write nothing.
  • --help — print the usage, kinds and flags. An unknown flag or kind prints the same and exits 1.

Setup

npm install -g colab-new

Needs git set up to push to colab47 on Codeberg, as for any other repo. For the hosting steps: the Heroku CLI, the Vercel CLI and the Netlify CLI (npm install -g netlify-cli), whichever the chosen hosts need, each logged in. Any of them missing just turns that step into a printed command.

Tests and publishing

See TECH.md. npm run deploy runs the tests and publishes to npm.