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

@hobobeach/express-base

v0.5.0

Published

TypeScript Express starter template — scaffold a new project with `npx @hobobeach/express-base <project>`.

Readme

@hobobeach/express-base

        ^^                   @@@@@@@@@
   ^^       ^^            @@@@@@@@@@@@@@@
                        @@@@@@@@@@@@@@@@@@              ^^
                       @@@@@@@@@@@@@@@@@@@@
~         ~~   ~  ~       ~~~~~~~~~~~~~~~~~~~~ ~       ~~     ~~ ~
  ~      ~~      ~~ ~~ ~~  ~~~~~~~~~~~~~ ~~~~  ~     ~~~    ~ ~~~  ~ ~~
  ~  ~~     ~         ~      ~~~~~~  ~~ ~~~       ~~ ~ ~~  ~~ ~
~  ~       ~ ~      ~           ~~ ~~~~~~  ~      ~~  ~             ~~
      ~             ~        ~      ~      ~~   ~             ~
------------------------------------------------

A TypeScript-based Express.js starter template providing a solid foundation for building secure, production-ready REST APIs and web applications.

Pre-configured with Passport + JWT auth, bcrypt password hashing, TypeORM with SQLite, Multer file uploads, and Handlebars views. Hardened with Helmet, express-rate-limit, Zod validation, and structured logging. Developer tooling: Nodemon, ts-node, Rimraf.

## Scaffold a new project

```sh
npx @hobobeach/express-base my-app           # interactive plugin prompt
npx @hobobeach/express-base my-app --plugins=seo
npx @hobobeach/express-base my-app --no-plugins
cd my-app && npm install && npm run dev
```

The CLI copies the template, sets a fresh random `JWT_SECRET` in `.env.development`, renames the project's `package.json#name` to match your directory, and applies any selected plugins.

## Plugins

Opt-in features that emit real code into your project — once applied, the code is yours to edit.

```sh
npx @hobobeach/express-base list-plugins     # see what's available
npx @hobobeach/express-base add seo          # add a plugin to an already-scaffolded project (run from inside it)
```

Available plugins:

- **`seo`** — adds `GET /sitemap.xml`, `GET /robots.txt`, and a `seo-meta` Handlebars partial wired into `<head>`. Sets `SITE_URL` in `.env.development`.
- **`blog`** — adds a markdown-driven blog at `GET /blog`, `GET /blog/:slug`, `GET /blog/feed.xml` (RSS 2.0), and `GET /blog/sitemap.xml`. Posts are `.md` files with YAML frontmatter under `content/blog/`, rendered with `marked` + `gray-matter`. Sets `BLOG_TITLE` and `BLOG_DESCRIPTION` in `.env.development`.
- **`traffic`** — logs every non-static HTTP request to a `request_logs` TypeORM table (method, path, query, status, duration, IP, user-agent, referer, content-length) and auto-prunes old rows. Sets `TRAFFIC_LOG_ENABLED`, `TRAFFIC_LOG_RETENTION_DAYS`, and `TRAFFIC_LOG_SKIP_PATHS` in `.env.development`.

Plugins are tracked in `package.json` under `hobobeachExpressBase.plugins`, and their inserted code is wrapped in `// PLUGIN <name> BEGIN` / `END` markers so the CLI never double-applies.

## What you get

```
my-app/
├── .env.development      # JWT_SECRET pre-generated
├── .gitignore
├── .npmrc                # legacy-peer-deps=true (typeorm/sqlite3 peer fix)
├── nodemon.json
├── package.json
├── tsconfig.json
├── public/
├── src/
│   ├── app.ts
│   ├── app-data-source.ts
│   ├── server.ts
│   ├── middlewares/
│   ├── routes/
│   └── shared/
└── views/
```

See `CLAUDE.md` inside the scaffolded project for architecture notes.

## Caveats

- `.npmrc` ships `legacy-peer-deps=true` to resolve a peerOptional mismatch between `[email protected]` (declares `sqlite3@^5`) and `sqlite3@^6`. Don't strip it.
- TypeORM is configured with `synchronize: true` — fine for dev, **disable before production**.
- `JWT_SECRET` is required; `src/shared/jwt.ts` throws at module load if it's unset.

## Developing this template

The shipped template lives in `template/`. To run it locally:

```sh
cd template
npm install
npm run dev
```

To publish a new version of the CLI:

```sh
npm publish --access public   # first publish only needs --access public
```