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

@servlyadmin/cli

v0.1.2

Published

Servly component code generator - Generate typed component wrappers for your codebase

Readme

@servlyadmin/cli

Generate strongly-typed component wrappers for Servly components in your codebase.

Features

  • 🎯 Full TypeScript Support - Autocomplete, type checking, hover docs
  • 🔧 Multi-Framework - React, Vue, Svelte, Angular, Solid
  • 🤖 AI-Friendly - Generated context files for Cursor, Windsurf, MCP
  • Fast - Incremental updates, local caching
  • 📦 Zero Runtime Overhead - Types are compile-time only

Quick Start

# Install
npm install -D @servlyadmin/cli

# Initialize
npx servly init

# Generate typed components
npx servly generate

Usage

// Import generated components
import { PricingCard, ContactForm } from './.servly';

// Full TypeScript support!
<PricingCard
  title="Pro Plan"           // ✓ string
  price={2999}               // ✓ number
  features={['API Access']}  // ✓ string[]
  onSelect={(id) => {}}      // ✓ (id: string) => void
/>

Commands

servly init

Initialize .servly directory in your project.

npx servly init
npx servly init --framework react
npx servly init --output .servly

Options:

  • -f, --framework <framework> - Target framework (react, vue, svelte, angular, solid, auto)
  • -o, --output <dir> - Output directory (default: .servly)
  • -r, --registry <url> - Registry URL
  • --no-ai-context - Skip generating AI context files

servly generate

Generate typed component wrappers from registry.

npx servly generate
npx servly generate --force
npx servly generate --components pricing-card,contact-form

Options:

  • --force - Force regeneration of all components
  • -f, --framework <framework> - Target framework
  • -c, --components <ids> - Comma-separated component IDs to generate
  • -e, --exclude <ids> - Comma-separated component IDs to exclude
  • --dry-run - Show what would be generated

servly watch

Watch for registry changes and regenerate.

npx servly watch
npx servly watch --interval 60000

Options:

  • -i, --interval <ms> - Polling interval in milliseconds (default: 30000)

servly validate

Validate generated files.

npx servly validate

servly info <componentId>

Show detailed information about a component.

npx servly info pricing-card

servly list

List available components.

npx servly list
npx servly list --category cards
npx servly list --search pricing

Options:

  • -c, --category <category> - Filter by category
  • -s, --search <query> - Search components

Configuration

Create servly.config.json in your project root:

{
  "registry": {
    "url": "https://core-api.servly.app/v1/views/registry",
    "apiKey": "your-api-key"
  },
  "generate": {
    "outputDir": ".servly",
    "framework": "react",
    "typescript": true,
    "includeAIContext": true
  },
  "components": {
    "include": ["pricing-*", "contact-*"],
    "exclude": ["internal-*"]
  }
}

Generated Structure

.servly/
├── index.ts              # Main exports
├── manifest.json         # Component metadata
├── ai-context.md         # AI documentation
├── .cursorrules          # Cursor AI rules
├── mcp-tools.json        # MCP server tools
├── types/
│   ├── index.d.ts        # Type exports
│   └── *.d.ts            # Per-component types
├── components/
│   ├── index.ts          # Component exports
│   └── *.tsx             # Component wrappers
└── hooks/
    ├── useServlyComponent.ts
    └── useServlyRegistry.ts

Environment Variables

  • SERVLY_REGISTRY_URL - Override registry URL
  • SERVLY_API_KEY - API key for authentication
  • SERVLY_FRAMEWORK - Default framework

Requirements

  • Node.js >= 18.0.0
  • One of: React, Vue, Svelte, Angular, or Solid

License

MIT