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

create-access-router-mongo-starter

v0.23.0

Published

Scaffold a new access-router + MongoDB CRUD app from the web-ts-toolkit starter template

Readme

create-access-router-mongo-starter

Scaffolds a new access-router + MongoDB CRUD app from the bundled template into an existing repository.

Usage

# npx downloads and runs the published package automatically
npx create-access-router-mongo-starter ./apps/my-app --name my-app

# npm 7+ shorthand
npm create access-router-mongo-starter ./apps/my-app --name my-app

# pnpm shorthand
pnpm create access-router-mongo-starter ./apps/my-app --name my-app

# Interactive mode
npx create-access-router-mongo-starter -i

Options

| Flag | Description | | ------------------- | ---------------------------------------------------------- | | <target-dir> | Where to scaffold the app (positional, first non-flag arg) | | --name <name> | Package/app name (default: derived from target dir) | | --title <title> | Display title (default: Title Case of name) | | --db-name <name> | MongoDB database name (default: same as name) | | --force | Overwrite the target directory if it exists | | --dry-run | Print actions without writing files | | -i, --interactive | Prompt for any missing option | | -h, --help | Show help |

What it does

  1. Copies the template/ directory (excluding node_modules, dist, build output, .env, and lockfiles).
  2. Rewrites {{APP_NAME}}, {{APP_TITLE}}, and {{DB_NAME}} placeholders in all copied files.
  3. Prints next steps for local development and Netlify deployment (via the create-access-router-mongo-starter-deploy-netlify bin after installing this package at the parent/workspace level).

For npm publishing, the package build stages the bundled template into dist/template/ so the released CLI can scaffold without needing the source workspace layout.

Layout

create-access-router-mongo-starter/
  src/
    cli.ts               # CLI entry — built to dist/cli.js by tsup
  scripts/               # repo-owned deploy + staging helpers (also built to dist/)
    stage-template.ts    # stages template/ into dist/template for publishing
    deploy-shared.ts      # provider-agnostic build prep (bin)
    deploy-netlify.ts     # Netlify deploy adapter (bin)
  tests/
    deploy-shared.test.ts # repo-only test for the deploy helpers
  template/              # the source starter template (no deploy scripts)
    api/                 # Express + access-router + Mongoose backend
    src/                 # Vite + React frontend
    tests/
    package.json         # template with {{APP_NAME}} placeholder
    ...
  dist/                  # built CLI + deploy bins + staged template for npm publishing
  tsup.config.ts
  package.json

Publish Checklist

Use this before releasing create-access-router-mongo-starter to npm:

  1. Build, typecheck, and test the package:

    pnpm --dir packages/create-access-router-mongo-starter build
    pnpm --dir packages/create-access-router-mongo-starter typecheck
    pnpm --dir packages/create-access-router-mongo-starter test
  2. Verify the published tarball contents locally:

    pnpm --dir packages/create-access-router-mongo-starter build
    npm pack --dry-run --prefix packages/create-access-router-mongo-starter
  3. Dry-run the repo publish flow for this package:

    pnpm publish-packages -- --version v0.0.0-test --filter create-access-router-mongo-starter --dry-run
  4. Release through the repo's normal tag-based workflow:

    pnpm release
    git push --follow-tags

The GitHub workflow in .github/workflows/publish.yml publishes all eligible packages/* entries on version tags, and this package is already wired into that flow.