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-fastify-server

v1.0.2

Published

Fastify API scaffolding CLI

Readme

create-fastify-server

한국어 · English


한국어

Fastify API 프로젝트를 빠르게 생성해주는 CLI 스캐폴딩 도구입니다.

사용법

npx create-fastify-server

선택 옵션

| 항목 | 선택지 | |------|--------| | 언어 | JavaScript · TypeScript | | TS 빌더 | tsc · esbuild · tsx | | 데이터베이스 | Prisma · pg · Supabase · MongoDB · Firebase | | 캐시 | Redis (ioredis) · In-memory (node-cache) | | 인증 | JWT · bcrypt | | 플러그인 | CORS · Helmet · Rate Limit · Compress · Multipart · WebSocket · Swagger | | 개발 도구 | ESLint · Prettier · Vitest · Jest · dotenv |

생성되는 구조

my-fastify-app/
├── src/
│   ├── index.ts         # Fastify 앱 (플러그인, 라우트 자동 등록)
│   ├── db.ts            # 데이터베이스 클라이언트 (선택 시)
│   ├── cache.ts         # 캐시 클라이언트 (선택 시)
│   ├── types/           # TypeScript 타입 선언 (선택 시)
│   └── routes/
│       ├── index.ts     # GET /  GET /health  (WS /ws)
│       ├── users.ts     # GET /api/users  POST /api/users
│       └── auth.ts      # POST /api/auth/login  GET /api/auth/me (선택 시)
├── server.ts            # 엔트리 포인트
├── prisma/schema.prisma # Prisma 스키마 (선택 시)
├── .env                 # 환경변수 (선택 시 자동 생성)
├── .env.example
└── tsconfig.json

src/routes/ 에 파일을 추가하면 /api/{파일명} 경로로 자동 등록됩니다.


English

A CLI scaffolding tool for spinning up Fastify API projects.

Usage

npx create-fastify-server

Options

| Category | Choices | |----------|---------| | Language | JavaScript · TypeScript | | TS builder | tsc · esbuild · tsx | | Database | Prisma · pg · Supabase · MongoDB · Firebase | | Cache | Redis (ioredis) · In-memory (node-cache) | | Auth | JWT · bcrypt | | Plugins | CORS · Helmet · Rate Limit · Compress · Multipart · WebSocket · Swagger | | Dev tools | ESLint · Prettier · Vitest · Jest · dotenv |

Generated structure

my-fastify-app/
├── src/
│   ├── index.ts         # Fastify app (auto-registers plugins & routes)
│   ├── db.ts            # Database client (if selected)
│   ├── cache.ts         # Cache client (if selected)
│   ├── types/           # TypeScript declarations (if selected)
│   └── routes/
│       ├── index.ts     # GET /  GET /health  (WS /ws)
│       ├── users.ts     # GET /api/users  POST /api/users
│       └── auth.ts      # POST /api/auth/login  GET /api/auth/me (if selected)
├── server.ts            # Entry point
├── prisma/schema.prisma # Prisma schema (if selected)
├── .env                 # Auto-generated with relevant vars
├── .env.example
└── tsconfig.json

Any file added to src/routes/ is automatically registered as /api/{filename}.