Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

35 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitCraft - Living Engineering Brain

Transform your GitHub repository into a self-updating engineering knowledge base in Craft

Craft Winter Challenge 2025 Submission


๐ŸŽ‰ NEW: Now with FREE Google Gemini Support!

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


๐ŸŽฏ The Vision

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.

The "Wow" Factor

  • 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

๐Ÿ— Architecture

User โ†’ Onboarding Website โ†’ GitHub OAuth โ†’ Repo Analyzer
                                              โ†“
                                         Craft MCP
                                              โ†“
                                    Documentation Structure
                                              โ†“
                           GitHub Webhooks/Polling โ†’ Update Agent

๐Ÿ“ฆ Tech Stack

Core

  • 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

Key Dependencies

  • @google/generative-ai (Gemini - FREE tier!) or @anthropic-ai/sdk (Claude)
  • @octokit/rest - GitHub API
  • express - Backend server
  • next - Frontend framework
  • Craft MCP integration

๐Ÿš€ Features

Phase 1: Onboarding

  • Minimal landing page
  • GitHub OAuth flow
  • Repository selection
  • Craft MCP connection setup

Phase 2: Initial Analysis

  • Repository structure analysis
  • Code architecture inference
  • Auto-generated documentation structure:
    • ๐Ÿ“˜ Technical Specification
    • ๐Ÿงพ Release Notes
    • ๐Ÿ“ ADRs (Architectural Decision Records)
    • ๐Ÿ“Œ Engineering Tasks
    • ๐Ÿ“ Documentation History

Phase 3: Continuous Updates

  • GitHub webhook integration
  • Change detection and interpretation
  • Automatic documentation updates
  • Semantic diff generation

Phase 4: Version Control

  • Documentation snapshots
  • Change history tracking
  • Rollback capability
  • Confidence scoring

๐Ÿ“‚ Project Structure

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

๐Ÿ”ง Setup Instructions

Prerequisites

  • Node.js 18+
  • GitHub account
  • Craft account with MCP enabled
  • LLM API key (Gemini/Claude/OpenAI) - Gemini has a free tier!

Installation

  1. Clone the repository
git clone https://github.com/yourusername/gitcraft.git
cd gitcraft
  1. Install dependencies
# Backend
cd backend
npm install

# Frontend
cd ../frontend
npm install
  1. 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
  1. Run the application
# Backend
cd backend
npm run dev

# Frontend (in another terminal)
cd frontend
npm run dev
  1. Access the application

๐ŸŽฎ Usage

For Users

  1. Visit the landing page at http://localhost:3000
  2. Click "Connect GitHub Repo"
  3. Authorize with GitHub and select your repository
  4. Provide Craft MCP URL from your Craft workspace
  5. Watch the magic happen: GitCraft analyzes your repo and creates structured documentation in Craft
  6. Automatic updates: Every time you merge a PR, docs update automatically

For Developers

See IMPLEMENTATION.md for detailed technical documentation.

๐Ÿ† Why This Wins

Product Thinking

  • Solves a real pain point: outdated documentation
  • Seamless integration into existing workflows
  • Craft becomes irreplaceable as the "source of truth"

Technical Excellence

  • 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

Wow Factor

  • Automatic structure generation (not just content)
  • Self-updating documentation (set and forget)
  • Confidence scoring (builds trust in AI)
  • Full history and rollback (safety net)

๐ŸŽฏ Demo Flow (3-4 minutes)

  1. Show landing page โ†’ Connect repo
  2. GitHub OAuth โ†’ Select repository
  3. Craft structure appears (instant wow)
  4. Show generated Technical Spec, ADRs
  5. Make a code change โ†’ Merge PR
  6. Show automatic doc update
  7. Show version history and rollback

๐Ÿ“ License

MIT

๐Ÿ™ Acknowledgments

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."

About

A craft-native living documentation system so you need not to worry about documentation while coding your favourite projects.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages