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-vettly-app

v0.1.3

Published

Scaffold a content-moderated app with App Store Guideline 1.2 compliance built in.

Readme

create-vettly-app

Scaffold a new Vettly project with App Store Guideline 1.2 compliance built in. Production-ready moderation in 5 minutes.

App Store Guideline 1.2

Apple requires every iOS app with user-generated content to implement four things. Every template includes all four out of the box:

| Requirement | Guideline | Included in Template | |-------------|-----------|----------------------| | Content filtering | 1.2.1 | Moderation middleware + components | | User reporting | 1.2.2 | SDK client wired up | | User blocking | 1.2.3 | SDK client wired up | | Audit trail | — | decisionId stored with every content record |

Run npx create-vettly-app and all four requirements are wired up.

Quick Start

npx create-vettly-app

Follow the prompts to:

  1. Name your project
  2. Choose a template (Next.js, Express, or React)
  3. Select your package manager
  4. Optionally add your API key

Templates

Next.js (Recommended)

Full-stack React with App Router, API routes, and built-in moderation.

Includes:

  • @vettly/nextjs - Middleware and route helpers
  • @vettly/react - Real-time moderation components
  • API route with moderation middleware
  • Example moderated form component
npx create-vettly-app my-app --template nextjs

Express

Node.js API server with Express middleware.

Includes:

  • @vettly/express - Moderation middleware
  • @vettly/sdk - Direct client access
  • Example protected routes
  • Error handling setup
npx create-vettly-app my-api --template express

React

React SPA with Vite and real-time moderation.

Includes:

  • @vettly/react - Moderated components and hooks
  • Vite build setup
  • Example forms with live feedback
npx create-vettly-app my-frontend --template react

Usage

Interactive Mode

npx create-vettly-app

Prompts for:

  • Project name
  • Template selection
  • Package manager preference
  • API key (optional)

With Arguments

# Specify project name
npx create-vettly-app my-project

# Specify template
npx create-vettly-app my-project --template nextjs

# Specify package manager
npx create-vettly-app my-project --npm
npx create-vettly-app my-project --yarn
npx create-vettly-app my-project --pnpm
npx create-vettly-app my-project --bun

Options

| Option | Alias | Description | |--------|-------|-------------| | --template <name> | -t | Template: nextjs, express, or react | | --npm | | Use npm as package manager | | --yarn | | Use yarn as package manager | | --pnpm | | Use pnpm as package manager | | --bun | | Use bun as package manager |


What Gets Created

my-app/
├── .env                    # VETTLY_API_KEY (if provided)
├── .env.example            # Template for env vars
├── package.json            # Dependencies and scripts
├── README.md               # Getting started guide
└── [template files]        # Template-specific structure

Next.js Structure

my-app/
├── app/
│   ├── api/
│   │   └── comments/
│   │       └── route.ts    # Moderated API route
│   ├── page.tsx            # Home page with form
│   └── layout.tsx
├── components/
│   └── CommentForm.tsx     # ModeratedTextarea example
├── middleware.ts           # Route protection (optional)
└── ...

Express Structure

my-app/
├── src/
│   ├── index.ts            # Express app with middleware
│   ├── routes/
│   │   └── comments.ts     # Protected route
│   └── middleware/
│       └── moderation.ts   # Moderation setup
└── ...

React Structure

my-app/
├── src/
│   ├── App.tsx             # Main app
│   ├── components/
│   │   └── CommentForm.tsx # Moderated form
│   └── hooks/
│       └── useModeration.ts # Hook usage example
└── ...

After Creation

# Navigate to your project
cd my-app

# Start development server
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Then visit http://localhost:3000 to see your app.


Get Your API Key

If you didn't provide an API key during setup:

  1. Sign up at vettly.dev
  2. Go to Dashboard > API Keys
  3. Create and copy your key
  4. Add to .env:
VETTLY_API_KEY=sk_live_...

Next Steps

  1. Try the example - Submit content and see moderation in action
  2. Customize policies - Create policies at vettly.dev/dashboard
  3. Add more routes - Use middleware to protect additional endpoints
  4. Store decisions - Save decisionId with your data for audit trails

Links