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

@graphyn/code

v0.1.60

Published

AI-powered CLI that orchestrates context-aware development agents for Claude Code

Readme

Graphyn Code

Your AI development team, one command away.

npm version License: MIT

🎨 NEW: Beautiful interactive CLI with real-time updates, powered by React!

Why Graphyn?

We believe AI assistants should understand your project deeply—not just respond to prompts. Graphyn gives Claude Code specialized agents that know your stack, follow your standards, and evolve with your codebase.

One command. Full context. Real development.

Install

npm install -g @graphyn/code

Zero configuration needed—it just works.

Platform Support

  • macOS - Fully supported
  • Linux - Fully supported
  • ⚠️ Windows - Experimental (WSL recommended)

Quick Start

# Just type this and Claude launches with full context
graphyn backend "add user authentication"

# Other agents work the same way
graphyn frontend "create a dashboard"  
graphyn architect "review my API design"
graphyn design figma.com/file/...  # Figma to code

# Or launch interactive mode
graphyn

🔧 API Integration

Graphyn provides a powerful REST API for building custom integrations:

Authentication

# Set your API key (optional - will prompt when needed)
graphyn auth gph_sk_your_api_key

API Examples

# Extract Figma design via API
curl -X POST https://api.graphyn.xyz/v1/design/extract \
  -H "Authorization: Bearer gph_sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"figma_url": "https://figma.com/file/xyz/Component"}'

# Create custom agent
curl -X POST https://api.graphyn.xyz/v1/agents \
  -H "Authorization: Bearer gph_sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "FinTech UI Agent",
    "description": "Specialized for financial dashboards",
    "configuration": {
      "prompt": "You specialize in secure financial UIs..."
    }
  }'

# Chat with agent
curl -X POST https://api.graphyn.xyz/v1/agents/agent_123/chat \
  -H "Authorization: Bearer gph_sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"message": "Create a secure transaction form"}'

CI/CD Integration

# GitHub Action example
- name: Extract Figma Design
  run: |
    curl -X POST https://api.graphyn.xyz/v1/design/extract \
      -H "Authorization: Bearer ${{ secrets.GRAPHYN_API_KEY }}" \
      -d '{"figma_url": "${{ github.event.inputs.figma_url }}"}'

JavaScript SDK

import { GraphynClient } from '@graphyn/sdk';

const graphyn = new GraphynClient({
  apiKey: process.env.GRAPHYN_API_KEY
});

// Extract Figma design
const component = await graphyn.design.extract({
  figmaUrl: 'https://figma.com/file/xyz/Component'
});

// Chat with agent
const response = await graphyn.agents.chat('agent_123', {
  message: 'Build a payment form with Stripe'
});

Rate Limits

  • Free Tier: 3 design extractions per day
  • Ultra ($39/month): Unlimited API calls
  • Check X-RateLimit-Remaining header for current limits

Full API documentation: app.graphyn.xyz/docs

🚀 New in v0.1.51: Production Ready

Graphyn now connects to the production backend at api.graphyn.xyz:

# OAuth authentication (port 8989)
graphyn init
# → Opens browser for GitHub/Figma OAuth
# → Stores secure Better Auth tokens
# → Creates organization context

# Build agents through conversation
graphyn thread
# → Start agent builder conversation
# → Natural language agent creation
# → Test in WhatsApp-style interface

# Deploy agents as APIs
graphyn agent deploy abc123
# → Get API endpoint: https://api.graphyn.xyz/api/v1/agents/abc123/invoke
# → Receive API key for external access
# → Usage tracking and rate limiting included

The Philosophy

Documentation should be alive. Not static files that rot in repos, but living knowledge that grows with your project. Every interaction teaches Graphyn about your codebase. Every decision gets remembered. Every pattern gets recognized.

This is the future of development: AI that truly understands your project.

Your AI Development Team

🔧 Backend Agent

Expert in APIs, databases, and server architecture. Knows Encore.ts, Node.js, and cloud patterns.

🎨 Frontend Agent

Master of UI/UX, React, and modern web. Builds components that users love.

🏗️ Architect Agent

Your technical advisor. Reviews designs, suggests improvements, ensures best practices.

🎨 Design Agent

Converts Figma prototypes to working code. Analyzes designs, creates implementation plans, and launches Claude Code with full MCP integration.

Local Development Setup

  1. Clone the repository:

    git clone https://github.com/graphyn/graphyn-code.git
    cd graphyn-code
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Test locally:

    node dist/ink/cli.js

Figma OAuth Setup

The Figma OAuth credentials are embedded in the code for local testing:

  • Client ID: YbqfPAJUb1ro4HEUVuiwhj
  • Client Secret: 4ZXEVoSX0VcINAIMgRKnvi1d38eS39
  • Redirect URI: http://localhost:3456/callback

To authenticate with Figma:

graphyn design auth

To use Figma design extraction:

# Extract and generate components from a Figma prototype
graphyn design <figma-url>

# Extract components with i18n-ready translation mapping
graphyn design <figma-url> --extract-components

The --extract-components flag provides:

  • Automatic text extraction from all components
  • Smart translation key generation (e.g., button.addToCart.action)
  • Component categorization using atomic design principles
  • Generated translation files (en.json)
  • Components with built-in i18n hooks
  • TypeScript types for translation keys

Note: These are test credentials for local development. For production, create your own OAuth app at https://www.figma.com/developers/apps

Living Documentation

Create a GRAPHYN.md file in your project:

# Our Stack
- Backend: Encore.ts with PostgreSQL
- Frontend: Next.js with Tailwind
- Auth: Clerk

# Our Standards
- TypeScript everywhere
- Tests for critical paths
- Accessibility first

Now every agent knows your project's DNA.

Coming Soon

  • Context Evolution: Graphyn learns from Claude's work
  • Team Sync: Share knowledge across your organization
  • Pattern Recognition: Detect and suggest improvements
  • Sleep-time Compute: AI improves while you rest

Commands

# Specialized agents
graphyn backend "create a REST API"
graphyn frontend "build a dashboard" 
graphyn architect "review my system design"
graphyn design "https://figma.com/..."

# Setup and diagnostics
graphyn setup     # Run setup wizard
graphyn doctor    # Check your environment
graphyn auth      # Authenticate with Graphyn

# Advanced
graphyn chain "complex multi-agent task"
graphyn history   # View recent interactions

Troubleshooting

Setup issues?

graphyn doctor -v  # Detailed diagnostics

Need help?


Built for developers who ship fast and dream big.