Transform your GitHub repository into a self-updating engineering knowledge base in Craft
Craft Winter Challenge 2025 Submission
No credit card required! GitCraft now uses Google Gemini's generous free tier (60 requests/min, 1M token context). Get started in minutes with zero cost!
๐ Quick Start Guide | ๐ Gemini Setup
GitCraft turns any GitHub repository into a living, self-updating documentation system inside Craft. It analyzes your codebase, generates structured documentation, and keeps it automatically synchronized with every code change.
- Zero-effort onboarding: Connect repo โ Instant structured docs
- Automatic structure generation: Technical specs, ADRs, release notes, tasks
- Self-updating: Docs evolve with every merge
- Full version control: Audit trail, rollback capability, confidence scoring
- Craft as long-term memory: Your repo's engineering brain lives in Craft
User โ Onboarding Website โ GitHub OAuth โ Repo Analyzer
โ
Craft MCP
โ
Documentation Structure
โ
GitHub Webhooks/Polling โ Update Agent
- Backend: Node.js with Express
- Frontend: Next.js (minimal onboarding UI)
- LLM: Claude/GPT for code analysis
- Storage: Craft (via MCP)
- VCS Integration: GitHub API + Webhooks
@google/generative-ai(Gemini - FREE tier!) or@anthropic-ai/sdk(Claude)@octokit/rest- GitHub APIexpress- Backend servernext- Frontend framework- Craft MCP integration
- Minimal landing page
- GitHub OAuth flow
- Repository selection
- Craft MCP connection setup
- Repository structure analysis
- Code architecture inference
- Auto-generated documentation structure:
- ๐ Technical Specification
- ๐งพ Release Notes
- ๐ ADRs (Architectural Decision Records)
- ๐ Engineering Tasks
- ๐ Documentation History
- GitHub webhook integration
- Change detection and interpretation
- Automatic documentation updates
- Semantic diff generation
- Documentation snapshots
- Change history tracking
- Rollback capability
- Confidence scoring
gitcraft/
โโโ backend/
โ โโโ src/
โ โ โโโ agents/
โ โ โ โโโ analyzer.js # Repository analysis
โ โ โ โโโ updater.js # Continuous updates
โ โ โโโ integrations/
โ โ โ โโโ github.js # GitHub API
โ โ โ โโโ craft.js # Craft MCP
โ โ โ โโโ llm.js # LLM integration
โ โ โโโ routes/
โ โ โ โโโ auth.js # OAuth flow
โ โ โ โโโ webhook.js # GitHub webhooks
โ โ โ โโโ sync.js # Manual sync
โ โ โโโ server.js
โ โโโ package.json
โโโ frontend/
โ โโโ app/
โ โ โโโ page.tsx # Landing page
โ โ โโโ connect/page.tsx # OAuth flow
โ โ โโโ dashboard/page.tsx # Status dashboard
โ โโโ package.json
โโโ docs/
โ โโโ IMPLEMENTATION.md # Detailed implementation guide
โโโ README.md
- Node.js 18+
- GitHub account
- Craft account with MCP enabled
- LLM API key (Gemini/Claude/OpenAI) - Gemini has a free tier!
- Clone the repository
git clone https://github.com/yourusername/gitcraft.git
cd gitcraft- Install dependencies
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm install- Configure environment variables
# backend/.env
GITHUB_CLIENT_ID=your_github_oauth_app_id
GITHUB_CLIENT_SECRET=your_github_oauth_secret
GITHUB_WEBHOOK_SECRET=your_webhook_secret
CRAFT_MCP_URL=your_craft_mcp_url
# Choose your LLM provider
GOOGLE_API_KEY=your_gemini_api_key # Recommended (Free tier!)
LLM_PROVIDER=google
# OR
# ANTHROPIC_API_KEY=your_claude_api_key
# LLM_PROVIDER=anthropic
PORT=3001# frontend/.env.local
NEXT_PUBLIC_API_URL=http://localhost:3001- Run the application
# Backend
cd backend
npm run dev
# Frontend (in another terminal)
cd frontend
npm run dev- Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
- Visit the landing page at http://localhost:3000
- Click "Connect GitHub Repo"
- Authorize with GitHub and select your repository
- Provide Craft MCP URL from your Craft workspace
- Watch the magic happen: GitCraft analyzes your repo and creates structured documentation in Craft
- Automatic updates: Every time you merge a PR, docs update automatically
See IMPLEMENTATION.md for detailed technical documentation.
- Solves a real pain point: outdated documentation
- Seamless integration into existing workflows
- Craft becomes irreplaceable as the "source of truth"
- Proper use of Craft MCP for document management
- Intelligent LLM-based code analysis
- Robust version control and audit trails
- Hackathon-safe scope with clear MVP
- Automatic structure generation (not just content)
- Self-updating documentation (set and forget)
- Confidence scoring (builds trust in AI)
- Full history and rollback (safety net)
- Show landing page โ Connect repo
- GitHub OAuth โ Select repository
- Craft structure appears (instant wow)
- Show generated Technical Spec, ADRs
- Make a code change โ Merge PR
- Show automatic doc update
- Show version history and rollback
MIT
Built for the Craft Winter Challenge 2025 - Using Craft's MCP to revolutionize engineering documentation.
"Craft becomes the long-term memory of your GitHub repository."