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

mycontext-cli

v4.0.0

Published

CLI tool for spec-driven development - Generate comprehensive context, visual screens, and scaffolding for AI-powered coding

Readme

MyContext CLI

Spec-Driven Development for the AI Era — Generate comprehensive context + visual screens, then code with Claude/Cursor

npm version License: MIT Node Version

The missing piece: Start with an idea, get comprehensive specs + visual screens, then let AI tools build your app.

🚀 Two Paths to Code

Path 1: Screenshot → Spec (🔥 NEW)

Best for reverse-engineering designs or cloning styles.

# 1. Initialize project with InstantDB (interactive setup)
mycontext init my-app --framework instantdb
# → Runs shadcn/ui init
# → Prompts for instant-cli init & schema push
# → Installs @instantdb/react, @instantdb/admin, auth deps
# → Copies template files to lib/ (instant-client.ts, auth.ts, etc.)

# 2. Analyze Screenshot (Powered by Gemini 2.0 Flash)
mycontext analyze mockup.png
# → Generates .mycontext/context.md
# → Extracts Design System (colors, fonts, spacing)
# → Identifies components & layout

# 3. Code (with full context)
pnpm dev

Path 2: Idea → Full Context

Best for new projects from scratch.

# 1. Initialize with description and framework
mycontext init my-saas-app \
  --framework instantdb \
  --description "AI-powered code review SaaS"
# Choose framework: instantdb | nextjs | other

# 2. Generate Full Context (PRD, Features, Flows, Specs)
mycontext generate context --full

# 3. Generate UI Artifacts
mycontext generate:screens-list    # Extract screens from flows
mycontext generate:sample-data     # Generate realistic test data
mycontext generate:components-manifest  # Component specs with props
mycontext generate:actions         # Backend connection hooks

# 4. Use context with Claude/Cursor
# All files in .mycontext/ are ready for AI coding tools

🎯 Framework Support

MyContext adapts to your preferred tech stack with flexible initialization options:

InstantDB (Full Stack) - Default

Complete real-time backend with authentication and storage

mycontext init my-app --framework instantdb

Includes:

  • ✅ shadcn/ui components setup
  • ✅ InstantDB client & admin SDK
  • ✅ Auth utilities (bcrypt, magic codes, subdomain generation)
  • ✅ File storage helpers
  • ✅ Template files in lib/ or src/lib/:
    • instant-client.ts - Client SDK with schema
    • instant-admin.ts - Admin SDK for server operations
    • auth.ts - Auth helpers (password hashing, magic codes)
    • instantdb-storage.ts - File upload/download utilities

Dependencies Installed:

  • @instantdb/react, @instantdb/admin
  • bcryptjs, nanoid, @types/bcryptjs

Next.js (Frontend Focus)

shadcn/ui + MyContext for Next.js projects

mycontext init my-app --framework nextjs

Includes:

  • ✅ shadcn/ui components setup
  • ✅ MyContext project structure (.mycontext/)
  • ⏭️ No database setup (bring your own backend)

Basic (MyContext Only)

Minimal setup for any project type

mycontext init my-app --framework other

Includes:

  • ✅ MyContext project structure only
  • ⏭️ No UI library or database setup

✨ Key Features

📋 1. Comprehensive Context Generation

  • PRD: Complete product specification
  • Brand System: Colors, typography, tokens
  • User Flows: Step-by-step journeys
  • Technical Specs: Constraints & requirements
  • Types & Schema: TypeScript/Database definitions

🎨 2. Visual Screens (AI-Generated)

  • HTML/JSX Screens: Production-ready HTML/Tailwind or React components
  • Realistic Data: Context-aware sample content
  • Hosted Preview: Preview all screens at studio.mycontext.app

📦 3. Export & Integrate

  • Claude Code / Cursor: Optimized context packs
  • Stitch / v0: Dedicated design prompts
  • Figma: (Coming soon) Direct export

🤖 AI Provider Setup

MyContext works best with Gemini (Free Tier + Vision).

# 1. Get free API key: https://aistudio.google.com/apikey
# 2. Configure project
echo 'GEMINI_API_KEY=your-key' > .mycontext/.env

Also supports: Anthropic (Claude), OpenRouter (DeepSeek), xAI (Grok)

📚 Documentation

Note: The MyContext CLI is a focused scaffolding and code generation tool. To preview generated screens and components visually, use the hosted MyContext Studio app.

Detailed guides available in the docs/ directory:

🤝 Contributing

Contributions welcome! See CONTRIBUTING.md.

📄 License

MIT © MyContext - See LICENSE for details.