Welcome to Composter! This guide will help you get started with storing, organizing, and retrieving your React components.
Composter is a personal vault for React components that allows you to:
- 🗃️ Store reusable components in organized categories
- ⚡ Access components via CLI, web dashboard, or AI assistants
- 📦 Preview components with live rendering
- 🔌 Integrate with your favorite AI tools (Claude, Cursor, VS Code)
npm install -g composter-cliVerify installation:
composter --versionVisit composter.vercel.app and sign up with your email.
composter loginEnter your credentials when prompted. Your session will be saved for 30 days.
composter mkcat buttonsCreate a simple React component:
// MyButton.jsx
export default function MyButton({ children, onClick }) {
return (
<button
onClick={onClick}
className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600"
>
{children}
</button>
);
}Push it to your vault:
composter push buttons "MyButton" ./MyButton.jsxList all components in the category:
composter ls buttonsPull a component to your project:
composter pull buttons "MyButton" ./components/- Browse your components: Visit the web dashboard
- Connect AI assistants: Set up MCP integration
- Learn all CLI commands: Check the CLI Reference
- Self-host Composter: Follow the Self-Hosting Guide
# Organize by component type
composter mkcat buttons
composter mkcat forms
composter mkcat cards
composter mkcat layouts
# Add components
composter push buttons "PrimaryButton" ./src/components/Button.jsx
composter push forms "LoginForm" ./src/forms/Login.jsx# In Project A - Save component
composter push ui "Modal" ./components/Modal.jsx
# In Project B - Retrieve component
composter pull ui "Modal" ./src/components/After setting up MCP integration:
- Open Claude/Cursor/VS Code
- Ask: "Show me my Button components from Composter"
- AI will list and help you use your components
┌─────────────┐
│ Create │
│ Component │
└──────┬──────┘
│
▼
┌─────────────┐
│ Push │
│ to Vault │ ← composter push
└──────┬──────┘
│
▼
┌─────────────┐
│ Browse │
│ Dashboard │ ← Web UI or CLI
└──────┬──────┘
│
▼
┌─────────────┐
│ Pull │
│ to Project │ ← composter pull
└─────────────┘
- Use Descriptive Names: Name components clearly (e.g., "PrimaryButton" not "btn1")
- Organize by Purpose: Create categories that match your workflow
- Include Dependencies: Document any required packages in your component comments
- Test Before Pushing: Ensure components work before saving
- Regular Backups: Export important components locally
- Documentation: Browse the docs folder
- Troubleshooting: See troubleshooting.md
- Issues: Report bugs on GitHub
- Discussions: Ask questions in GitHub Discussions
Now that you're set up, explore:
- CLI Reference - Complete command documentation
- API Reference - Build custom integrations
- MCP Integration - Connect AI assistants
- Self-Hosting - Run your own instance
Happy composting! 🌱
If you're developing Composter itself (CLI, API, frontend, or MCP), here are quick commands and tips.
- Run the API (dev):
cd api
npm install
# start with nodemon or the project's dev script
npm run dev- Run the frontend (dev):
cd frontend
npm install
npm run dev- Run the CLI locally:
cd cli
npm install
# run the CLI commands via npx during development
npx node ./bin/composter.js login- Run MCP server (dev):
cd packages/mcp
npm install
npm start
# or run the inspector (see MCP docs) to debug MCP interactions- Inspector (MCP debugging): The project includes the Model Context Protocol inspector. From
packages/mcpyou can run:
cd packages/mcp
npm run server:inspect
# which runs: npx @modelcontextprotocol/inspector node src/server.jsThese will help you iterate quickly while developing integrations and QA-ing the MCP/CLI flows.