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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@outscope/cli

v0.1.2

Published

CLI tool for scaffolding @outscope/orpc-hono projects

Readme

@outscope/cli

CLI tool for scaffolding and managing @outscope/orpc-hono projects.

Features

  • 🚀 Quick project scaffolding with interactive prompts
  • 📦 Template-based project creation
  • 🔧 Code generators for features, controllers, services, and repositories
  • Automatic dependency installation (optional)
  • 🗃️ Prisma support (optional)
  • 📝 Smart file transformations - minimal string hardcoding

Installation

# Install globally
pnpm add -g @outscope/cli

# Or use with npx (recommended)
npx @outscope/cli create my-app

Usage

Create a New Project

# Interactive mode (recommended)
outscope create
# Or use the short alias
osp create

# With project name
outscope create my-app

# With template flag (for future use)
outscope create my-app --template beta

Interactive prompts:

  1. Project name
  2. Template selection (currently: beta)
  3. Include Prisma? (yes/no)
  4. Install dependencies? (yes/no)
  5. Initialize database? (yes/no, if Prisma selected)

Generate Code

Generate features, controllers, services, or repositories:

# Interactive mode
outscope generate
# Or use the short alias
osp generate

# Or use the generate alias
outscope g
osp g

# Generate a complete feature (controller + service + repository + contracts + schema)
outscope generate feature user
osp g feature product

# Generate individual files
outscope generate controller order
osp generate service payment
osp generate repository inventory

For individual file generation, you'll be prompted to select which feature/module to place the file in.

Command Reference

outscope create [project-name]      # Create new project
osp create [project-name]           # Short alias for create

outscope generate [type] [name]     # Generate code
osp generate [type] [name]          # Short alias for generate
osp g [type] [name]                 # Alias for generate

outscope --help                     # Show help
osp --help                          # Show help
outscope --version                  # Show version
osp --version                       # Show version

Templates

Currently available templates:

  • beta - Full-featured template with:
    • Hono + oRPC setup
    • Prisma ORM integration
    • Example Planet CRUD feature
    • OpenAPI documentation
    • Pino logger
    • Auto-controller loading

Code Generators

Feature Generator

Generates a complete feature module:

outscope g feature user
# Or using short alias
osp g feature user

Creates:

src/features/users/
  ├── user.controller.ts
  ├── user.service.ts
  ├── user.repository.ts
  └── index.ts
src/contracts/user.ts
src/schemas/user.ts

Individual Generators

Generate specific files within existing features:

# Generate controller
outscope g controller payment
osp g controller payment

# Generate service
outscope g service email
osp g service email

# Generate repository
outscope g repository cache
osp g repository cache

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Development mode (watch)
pnpm dev

# Type checking
pnpm check-types

Template Structure

Templates are located in src/templates/ and use symlinks to reference actual project templates in apps/.

Current structure:

src/templates/
  └── beta -> ../../../../apps/example-beta

Architecture

  • commander - CLI framework
  • inquirer - Interactive prompts
  • ora - Loading spinners
  • picocolors - Terminal colors
  • execa - Process execution
  • tsup - TypeScript bundler

Files are copied from templates using Node.js fs/promises API with selective transformations for package.json and README.md only.

License

MIT