memoire
Extracts design tokens, components, and styles from Figma files via WebSocket bridge, REST API, or plugin, enabling design system synchronization and code generation workflows.
Extracts design systems from Linear's website URLs to generate design documentation and specifications for code generation workflows.
Extracts design tokens, components, and styles from Penpot files using API authentication, providing an alternative design tool integration for design system extraction.
Generates production-ready React components from design specifications with proper props, variants, and component architecture.
Generates production-ready React components using shadcn/ui patterns and includes a shadcn registry server for component management and distribution.
Generates Storybook stories alongside React components for component documentation, testing, and development workflow integration.
Extracts design systems from Stripe's website URLs to generate design documentation and specifications for code generation workflows.
Generates TypeScript-typed React components with proper type definitions and interfaces for type-safe development.
Validates component specifications using Zod schemas to ensure data integrity and consistency throughout the design-to-code pipeline.
Try it now
npx @sarveshsea/memoire design-doc https://stripe.comExtracts colors, typography, spacing, shadows, and component patterns from any public URL. Outputs a DESIGN.md with a Tailwind config sketch. 10 seconds. Zero config.
What you get
Input | Output |
Any public URL |
|
Figma file (REST or plugin) | Design tokens, components, styles |
Penpot file | Same tokens, same pipeline |
JSON specs | React + TypeScript + Tailwind components (shadcn/ui) |
Generated components | Storybook stories + shadcn registry server |
npm i -g @sarveshsea/memoire
memi design-doc https://linear.app # extract any site's design system
memi go # figma -> tokens -> specs -> components -> preview
memi go --rest # same thing, no figma desktop needed
memi go --penpot # same thing, from penpot
memi tokens # export as CSS / Tailwind / JSON / Style DictionaryUse with Claude Code / Cursor
Memoire is an MCP server with 20 tools. Give your AI assistant direct access to your design system.
memi mcp config --install # writes .mcp.json, doneOr add manually to .mcp.json:
{
"mcpServers": {
"memoire": {
"command": "memi",
"args": ["mcp", "start"]
}
}
}Tools include: pull_design_system, generate_code, create_spec, get_tokens, compose, design_doc, run_audit, capture_screenshot, analyze_design, and 11 more.
Full command reference
Command | What it does |
| Full onboarding: token, file, plugin, bridge, MCP config, test pull |
| Initialize workspace with starter specs |
| Start Figma bridge (auto-discovers plugin on ports 9223-9232) |
| Extract tokens, components, styles from Figma |
| Pull via REST API -- no plugin, no Figma Desktop |
| Pull from Penpot (needs |
| Create a component, page, or dataviz spec |
| Generate shadcn/ui code + Storybook stories from specs |
| Generate without Storybook stories |
| Start preview gallery + shadcn registry server |
| Full pipeline in one command |
| Export generated code into your project |
| Export tokens as CSS / Tailwind / JSON / Style Dictionary (W3C DTCG) |
| Validate all specs against schemas |
Command | What it does |
| Extract design system from any URL into DESIGN.md |
| Also write a DesignSpec JSON for codegen |
| Alias for design-doc |
Command | What it does |
| Full sync: Figma + specs + code |
| Watch and sync continuously |
| Agent orchestrator: classify, plan, execute |
| Spawn a persistent agent worker |
| Process Excel/CSV into research |
| Synthesize themes and personas |
| Start daemon with reactive pipeline |
Command | What it does |
| Project status overview |
| Health check: project, plugin, bridge |
| Launch monitoring dashboard |
| Design system audit (WCAG, unused specs) |
All commands support --json for structured output.
Spec-first workflow
Every component starts as a JSON spec before code is generated:
{
"name": "MetricCard",
"type": "component",
"level": "molecule",
"shadcnBase": ["Card", "Badge"],
"props": { "title": "string", "value": "string", "trend": "string?" },
"variants": ["default", "compact"]
}Specs are validated with Zod schemas. Components follow Atomic Design (atom, molecule, organism, template, page).
Architecture
src/
engine/ Core orchestrator, registry, sync, pipeline
figma/ WebSocket bridge + REST client + Penpot client
agents/ Intent classifier, plan builder, task queue
mcp/ MCP server (20 tools, 3 resources, stdio)
codegen/ shadcn/ui mapper, Storybook, dataviz, pages
research/ Research engine (Excel, stickies, web)
specs/ Spec types, Zod schemas, 62-component catalog
preview/ Preview gallery, API server, shadcn registry
notes/ Downloadable skill packs
commands/ 28 CLI commands
plugin/ Figma plugin (Widget V2)Links
memoire.cv -- Changelog -- MCP docs -- Notes
License
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sarveshsea/m-moire'
If you have feedback or need assistance with the MCP directory API, please join our Discord server