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

mern-template-jpz

v2.0.3

Published

Scaffold a MERN TypeScript authentication app with Vite, React, Tailwind CSS, Express, MongoDB, and JWT refresh-token rotation.

Downloads

840

Readme

MERN Template CLI tool

mern-template-jpz is a CLI tool that creates a ready-to-use MERN authentication starter.

The generated app includes a TypeScript/Express + MongoDB backend with secure access/refresh token authentication, plus a React/Vite frontend wired to the API.

What It Creates

  • backend - Express, MongoDB, Mongoose, TypeScript, JWT auth, httpOnly refresh cookies, session tracking, rate limiting, and security middleware
  • frontend - React, Vite, TypeScript, Tailwind CSS, React Router, Zustand, Axios, and auth pages

The scaffold includes registration, login, logout, token refresh, protected routing, and startup refresh handling.

Quick Start

Create a new project folder:

npx mern-template-jpz my-app

You can also run the CLI without a project name:

npx mern-template-jpz

When you do not add a project name, the template files are created in the current folder.

If you created a new project folder, open it:

cd my-app

Install and start the backend:

cd backend
npm install
cp .env.example .env
npm run dev

Open another terminal, then install and start the frontend:

cd my-app/frontend
npm install
cp .env.example .env
npm run dev

The frontend runs at http://localhost:5173 by default. The backend API runs at the port configured in backend/.env.

Using Global Install

npm install -g mern-template-jpz
mern-template-jpz my-app

Command Format

npx mern-template-jpz [project-name]

Options:

  • -f, --force - allow scaffolding into a non-empty directory
  • -h, --help - show help

Generated Folder Structure

backend/
  src/
    controllers/
    db/
    middlewares/
    models/
    routes/
    services/
    types/
    utils/
    index.ts

frontend/
  src/
    api/
    assets/
    axios/
    components/
    layouts/
    loaders/
    pages/
    routes/
    stores/
    types/
    utils/
    App.tsx
    index.css
    main.tsx

License

This CLI tool is licensed under the MIT License. See LICENSE.