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

artl

v0.0.5

Published

Production-grade backend bootstrap CLI by Artl Studio

Readme

Artl

Artl Studio

Production-ready backend baseline generator by Artl Studio

npm version MIT License Node.js

Create production-ready backend baselines in seconds. Your stack, your choice.

Production-ready refers to operational defaults (logging, health checks, config validation, shutdown). Auth/authorization are intentionally opt-in.

Quick Start

# Recommended (always latest)
npx artl init my-api

# Non-interactive with defaults (Fastify + Prisma + PostgreSQL)
npx artl init my-api --yes

# Optional: install globally
npm install -g artl
artl init my-api

Features

  • Frameworks: Fastify (default) or Express
  • Languages: TypeScript (default) or JavaScript
  • Databases: PostgreSQL, MySQL, SQLite, or none
  • ORMs: Prisma 6 or Sequelize (with example User/Post models)
  • Loggers: Pino (default) or Winston - unified API
  • Templates: REST API, Background Worker, WebSocket Server
  • Production Ready: Docker, health checks, graceful shutdown, structured logging

Templates

REST API (--template api)

Full-featured API server with:

  • Routes and middleware
  • Database integration (Prisma or Sequelize)
  • Swagger/OpenAPI docs at /docs
  • Health endpoints (/healthz, /readyz)
  • CORS and Helmet security

Background Worker (--template worker)

Job processing service with:

  • Cron-based job scheduling
  • Structured logging
  • Graceful shutdown with in-flight job handling

WebSocket Server (--template ws)

Real-time server with:

  • Socket.io integration
  • Room management
  • Authentication middleware hooks

CLI Options

artl init [project-name] [options]

Options:
  -t, --template <type>     api | worker | ws (default: api)
  -f, --framework <type>    fastify | express (default: fastify)
  -l, --logger <type>       pino | winston (default: pino)
  --lang <type>             ts | js (default: ts)
  --db <type>               postgres | mysql | sqlite | none (default: postgres)
  --orm <type>              prisma | sequelize | none (default: prisma)
  --docker                  Generate Docker files (default: true)
  --no-docker               Skip Docker files
  --pm <type>               pnpm | npm | yarn (default: auto-detect)
  --git                     Initialize git repository (default: true)
  --no-git                  Skip git initialization
  --install                 Install dependencies (default: true)
  --no-install              Skip dependency installation
  -y, --yes                 Skip prompts, use defaults
  -h, --help                Display help

Examples

# Fastify + Prisma + PostgreSQL (recommended)
npx artl init my-api --yes

# Express + Winston + MySQL
npx artl init my-api -f express -l winston --db mysql

# Sequelize with example User/Post models
npx artl init my-api --orm sequelize --yes

# WebSocket server
npx artl init my-ws -t ws --yes

# Background worker with SQLite
npx artl init my-worker -t worker --db sqlite

# JavaScript project (no TypeScript)
npx artl init my-api --lang js --yes

# API without database
npx artl init my-api --db none --yes

Generated Structure

With Prisma

my-api/
├── src/
│   ├── index.ts              # Entry point
│   ├── config/
│   │   └── env.ts            # Environment validation (Zod)
│   ├── app/
│   │   ├── plugins/          # Fastify plugins / Express middleware
│   │   └── routes/           # Route handlers
│   └── lib/
│       ├── logger.ts         # Unified logger (Pino or Winston)
│       ├── db/
│       │   └── client.ts     # Prisma client
│       └── shutdown.ts       # Graceful shutdown handler
├── prisma/
│   └── schema.prisma         # Database schema
├── Dockerfile
├── docker-compose.yml
└── .env.example

With Sequelize

my-api/
├── src/
│   └── lib/
│       └── db/
│           ├── client.ts     # Sequelize instance + model loader
│           └── models/
│               ├── index.ts  # Re-exports all models
│               ├── User.ts   # Example User model
│               └── Post.ts   # Example Post with User association
├── migrations/               # Sequelize migrations
├── seeders/                  # Sequelize seeders
└── ...

After Generation

cd my-api

# Start development server
npm run dev

# Build for production
npm run build

# Database commands (Prisma)
npm run db:migrate      # Run migrations
npm run db:generate     # Generate client
npm run db:studio       # Open Prisma Studio

# Database commands (Sequelize)
npm run db:migrate      # Run migrations
npm run db:seed         # Run seeders

# Run with Docker
docker-compose up -d

Unified Logger API

Both Pino and Winston use a unified API - switch loggers without changing code:

import { logger } from './lib/logger.js';

// Message first, then optional metadata
logger.info('Server started', { port: 3000 });
logger.error('Request failed', { error: err.message, requestId });
logger.debug('Processing item', { itemId, userId });

// Child loggers for request context
const reqLogger = logger.child({ requestId: '123' });
reqLogger.info('Handling request');

Sequelize Models

When using --orm sequelize, you get example models with associations:

// User model with hasMany Posts
import { User } from './lib/db/models/User.js';

// Post model with belongsTo User
import { Post } from './lib/db/models/Post.js';

// Query with associations
const users = await User.findAll({
  include: [{ model: Post, as: 'posts' }]
});

Requirements

  • Node.js >= 18.0.0
  • pnpm, npm, or yarn
  • Docker (optional)

Links

License

MIT - see LICENSE