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

@quardianwolf/frontforge

v0.1.0

Published

MCP server for scaffolding Next.js & Expo/React Native projects with Atomic Design, React Query, and TypeScript

Readme

FrontForge

MCP server that scaffolds production-ready frontend projects with Atomic Design.

Works with Claude Code and any MCP-compatible AI assistant. Supports Next.js and Expo/React Native.

What it does

FrontForge handles the boring structural work so your AI assistant can focus on writing actual code:

  • Creates feature directories with Atomic Design layers (atoms, molecules, organisms, templates)
  • Generates components with proper barrel exports and index files
  • Sets up React Query providers and hooks
  • Wires everything into your layout
  • Generates a CLAUDE.md with project rules (import conventions, styling, design patterns)
  • Auto-detects Next.js vs Expo projects

Installation

Add to your MCP configuration:

{
  "mcpServers": {
    "frontforge": {
      "command": "npx",
      "args": ["@quardianwolf/frontforge"]
    }
  }
}

Claude Code (user-level): ~/.claude/settings.json

Project-level: .mcp.json in your project root (add "type": "stdio")

Tools

project_info

Detect project type, folder structure, and current state.

project_info(cwd: "/path/to/project")
→ Platform: Next.js | Has src/: true | Has features/: false

scaffold_project

Set up the complete project skeleton: features/, providers, query client, theme, and CLAUDE.md.

scaffold_project(cwd: "...", projectName: "my-app", platform: "auto")
→ Creates: features/, lib/query-provider.tsx, lib/utils.ts, public/my-app/, CLAUDE.md
  • Auto-detects platform from project files (next.config, app.json, package.json)
  • Next.js: QueryProvider, cn() utility, Tailwind setup, security headers reminder
  • Expo: QueryProvider, theme.ts (colors, spacing, typography), assets directory
  • Appends rules to existing CLAUDE.md without overwriting

create_feature

Create a feature directory with full Atomic Design structure.

create_feature(cwd: "...", featureName: "Landing")
→ features/Landing/
    components/atoms/index.ts
    components/molecules/index.ts
    components/organisms/index.ts
    components/templates/index.ts
    hooks/ api/ types/
    index.ts (barrel)

create_component

Generate a component with its own folder, barrel export, and automatic index wiring.

create_component(cwd: "...", featureName: "Landing", componentName: "HeroSection", layer: "organisms")
→ features/Landing/components/organisms/HeroSection/
    HeroSection.tsx
    index.ts
  + updates organisms/index.ts barrel

Expo projects also get a styles.ts file with Expo CSS.

Import path is always shown in output:

import { HeroSection } from '@/features/Landing/components/organisms'

create_style

Create or update Expo CSS style files for mobile components. (Expo only)

create_style(cwd: "...", featureName: "Landing", componentName: "HeroSection", layer: "organisms",
  styles: { container: { flex: 1, padding: 16 }, title: { fontSize: 24 } })
→ features/Landing/components/organisms/HeroSection/styles.ts

setup_query_provider

Wire up QueryProvider in the root layout with React Query devtools.

setup_query_provider(cwd: "...", platform: "auto")
→ Next.js: lib/query-provider.tsx + lib/utils.ts + app/layout.tsx
→ Expo:    lib/query-provider.tsx + lib/theme.ts  + app/_layout.tsx

create_query_hook

Generate React Query hooks for a resource — list and detail queries with typed query keys.

create_query_hook(cwd: "...", featureName: "Profile", resourceName: "User")
→ features/Profile/api/useUser.ts
  exports: userKeys, useUserList(), useUserDetail(id)

Generated Structure

Next.js

src/
├── app/
│   ├── layout.tsx          ← QueryProvider wired here
│   └── page.tsx
├── features/
│   └── Landing/
│       ├── components/
│       │   ├── atoms/
│       │   │   ├── Logo/
│       │   │   │   ├── Logo.tsx
│       │   │   │   └── index.ts
│       │   │   └── index.ts      ← export * from './Logo'
│       │   ├── molecules/
│       │   ├── organisms/
│       │   └── templates/
│       ├── hooks/
│       ├── api/             ← React Query hooks
│       ├── types/
│       └── index.ts         ← feature barrel
├── lib/
│   ├── query-provider.tsx
│   └── utils.ts             ← cn() helper
└── public/
    └── my-app/              ← project-named assets
        ├── hero/
        ├── about/
        └── shared/

Expo / React Native

├── app/
│   ├── _layout.tsx          ← QueryProvider wired here
│   └── index.tsx
├── features/
│   ├── shared/              ← core atoms, hooks, lib
│   └── Landing/
│       ├── atoms/
│       │   └── Button/
│       │       ├── Button.tsx
│       │       ├── styles.ts    ← Expo CSS
│       │       └── index.ts
│       ├── molecules/
│       ├── organisms/
│       ├── templates/
│       ├── hooks/
│       ├── api/
│       └── index.ts
├── lib/
│   ├── query-provider.tsx
│   └── theme.ts              ← colors, spacing, typography
└── assets/
    ├── fonts/
    └── images/

CLAUDE.md

scaffold_project automatically generates (or appends to) a CLAUDE.md with rules for:

  • Import conventions — always @/features/Feature/components/layer, never relative
  • Atomic Design layers — what goes where, layer import rules
  • Styling — Tailwind + cn() for web, Expo CSS + styles.ts for mobile
  • Tool usage — instructs AI to use FrontForge tools for scaffolding
  • Design rules — use /frontend-design skill, stick to existing design system, present options to user
  • Visual QA — verify output with agent-browser after building

If a CLAUDE.md already exists, FrontForge appends its rules without touching existing content.

Platform Detection

FrontForge auto-detects the platform by checking (in order):

  1. app.json with expo key → Expo
  2. app.config.js / app.config.ts → Expo
  3. next.config.js / next.config.ts / next.config.mjs → Next.js
  4. package.json dependencies (expo or next) → respective platform

Pass platform: "nextjs" or platform: "expo" to override.

Development

git clone https://github.com/quardianwolf/frontforge.git
cd frontforge
npm install
npm run build    # compile TypeScript
npm run dev      # watch mode

Test locally:

{
  "mcpServers": {
    "frontforge": {
      "command": "node",
      "args": ["/absolute/path/to/frontforge/dist/index.js"]
    }
  }
}

License

MIT