Wharf is an enterprise-grade, AI-powered developer workflow platform engineered to dismantle documentation debt and provide deep, automated insights into complex codebases. Developers frequently struggle with outdated README files, fragmented changelogs, missing profile summaries, and a general lack of visibility into repository health and project structure. Wharf resolves these pain points by connecting directly to version control systems, executing static analysis on codebase trees, and using state-of-the-art Large Language Models (LLMs) to synthesize production-ready documentation, interactive workspace chat logs, and deep repository health reports.
Technically, Wharf leverages a modern, distributed architecture consisting of a React-Vite single-page application and a high-performance Cloudflare Worker edge backend powered by Hono and Prisma ORM. By integrating GitHub OAuth with precise Octokit calls, Wharf securely indexes repositories, detects project frameworks through file AST heuristics, and routes code context to custom LLM prompt pipelines. The platform utilizes advanced caching via Upstash Redis, token-optimized prompt construction, and secure encryption mechanics to ensure sub-millisecond response times, absolute data privacy, and a seamless developer experience.
- Overview
- Features
- Preview
- Tech Stack
- System Architecture
- Project Structure
- Getting Started
- Usage
- API Reference
- Customization
- Future Enhancements
- Contributing
- License
- Author
- Support
- Automated README Generation utilizing static framework detection and structural codebase analysis to generate highly stylized, professional documentation.
- Interactive Codebase Chat featuring persona selectors, suggested follow-ups, code blocks with syntax highlighting, and an advanced prompt context builder to query repositories in real-time.
- Automated Changelog Generator that aggregates git commit histories, tag definitions, and pull requests to build chronological release logs.
- GitHub Profile Builder supplying custom theme pickers, tech stack selectors, custom layout widgets, bio generators, and social badge integrations to form aesthetic portfolios.
- Repository Health Auditing computing comprehensive code health scores based on directory structures, license files, contribution patterns, and tests.
- Advanced Admin Operations monitoring cache hits, estimating API usage costs, identifying anomalies, tracing token distributions, and reviewing live activity feeds.
- Secure Key Routing supporting dual authorization modes: platform-routed subscription models or direct client-provided API key configurations (OpenAI / Anthropic).
- Asynchronous Context Tracking utilizing AsyncLocalStorage to guarantee correlation IDs and request context are carried throughout call chains.
| Landing Page | Features |
|---|---|
![]() |
![]() |
| How It Works | Chat Assistant |
|---|---|
![]() |
![]() |
| Technology | Purpose |
|---|---|
| TypeScript | Strongly-typed programming interface across Frontend, Backend, and Workers |
| React (v18) | Declarative Component-driven User Interface |
| Vite | Ultra-fast Frontend Bundler and Hot-Module Replacement Engine |
| TailwindCSS | Utility-first CSS styling framework with responsive design constructs |
| Zustand | Lightweight, high-performance global state management for reactive UI updates |
| Hono | Lightweight, ultra-fast web framework tailored for Cloudflare Workers |
| Cloudflare Workers | Edge serverless compute execution engine with V8 isolate performance |
| Prisma ORM | Type-safe database mapping, migration management, and SQL abstraction |
| PostgreSQL | Primary relational database (Supabase) for profiles, chat history, and metadata persistence |
| Upstash Redis | Serverless Redis caching layer, rate-limiter tracker, and session store |
| Octokit API | Programmatic interface for GitHub OAuth, repository ingestion, and commit tracking |
| Vitest & Playwright | Unit, integration, and E2E browser automation test suites |
πWharf/ # Main project root directory
βββ π.github/ # GitHub Actions workflows & community templates
β βββ πISSUE_TEMPLATE/ # Issue templates
β β βββ bug_report.md # Bug report template
β β βββ feature_request.md # Feature request template
β β βββ config.yml # Issue template chooser configuration
β βββ πworkflows/ # CI/CD pipeline configurations
β β βββ ci.yml # Continuous integration workflow
β βββ PULL_REQUEST_TEMPLATE.md # Pull request template
β
βββ πWharf_/ # Application workspaces
β βββ πbackend/ # Cloudflare Worker Backend API (Active)
β β βββ π.wrangler/ # Wrangler local runtime state
β β βββ πprisma/ # Database ORM & migrations
β β β βββ πmigrations/ # Database schema migrations
β β β βββ schema.prisma # Database schema definition
β β β βββ seed.ts # Database seeding script
β β βββ πsrc/ # Source code (Hono framework)
β β β βββ πcontrollers/ # Request handlers (10 controllers)
β β β βββ πmiddleware/ # Auth & security middleware
β β β βββ πroutes/ # Route definitions
β β β βββ πservices/ # Business logic & LLM pipelines
β β β βββ πutils/ # Encryption, token counters, helpers
β β β βββ db.ts # Prisma PostgreSQL client
β β β βββ index.ts # Worker entry point
β β βββ πtests/ # Worker test suite (Vitest + Miniflare)
β β β βββ πfactories/ # Test data factories
β β β βββ πfixtures/ # Test fixtures
β β β βββ πintegration/ # API integration tests
β β β βββ πmocks/ # Mock implementations
β β β βββ πunit/ # Unit tests (controllers, services, utils)
β β β βββ TESTING.md # Backend testing documentation
β β βββ .dev.vars # Local development secrets (git-ignored)
β β βββ .dev.vars.example # Environment variables template
β β βββ package.json # Backend dependencies & scripts
β β βββ tsconfig.json # TypeScript configuration
β β βββ vitest.config.ts # Vitest configuration for Cloudflare Workers
β β βββ wrangler.toml # Cloudflare Worker deployment configuration
β β
β βββ πfrontend/ # React Frontend Single Page Application (Active)
β β βββ πpublic/ # Static assets & SEO files
β β βββ πsrc/ # Frontend source code
β β β βββ πcomponents/ # Modular React components
β β β βββ πhooks/ # Custom React hooks
β β β βββ πlib/ # Core libraries & analytics
β β β βββ πpages/ # Route page components
β β β βββ πstores/ # Zustand global state stores
β β β βββ πutils/ # Frontend utilities
β β β βββ App.tsx # Root application component
β β β βββ index.css # Global Tailwind styles
β β β βββ main.tsx # Frontend entry point
β β βββ πtests/ # Frontend test suite
β β β βββ πcomponents/ # Component tests
β β β βββ πe2e/ # Playwright E2E browser tests
β β β βββ πmocks/ # MSW (Mock Service Worker) handlers
β β β βββ TESTING.md # Frontend testing documentation
β β βββ .env # Frontend local environment
β β βββ .env.example # Frontend environment template
β β βββ eslint.config.js # ESLint configuration
β β βββ package.json # Frontend dependencies
β β βββ playwright.config.ts # Playwright configuration
β β βββ vercel.json # Vercel deployment configuration
β β βββ vite.config.ts # Vite build configuration
β β βββ vitest.config.ts # Vitest configuration
β β
β βββ πlegacy/ # Archived legacy code (Inactive - do NOT use)
β βββ πnode-backend/ # Earlier Node.js/Express implementation
β
βββ .gitattributes # Git attributes configuration
βββ CHANGELOG.md # Project changelog
βββ CODE_OF_CONDUCT.md # Contributor covenant code of conduct
βββ CONTRIBUTING.md # Community contribution guidelines
βββ GETTING_STARTED.md # Quickstart local development guide
βββ LICENSE # MIT License
βββ README.md # Project README
βββ SECURITY.md # Vulnerability reporting policyFollow this sequence to spin up Wharf locally. Complete the environment variable configuration before initializing frontend or backend services. See GETTING_STARTED.md for full setup instructions.
Create a .dev.vars file inside the Wharf_/backend directory using .dev.vars.example as a template:
# Supabase PostgreSQL Database Connections
PORT=8787
DIRECT_URL="postgresql://postgres:postgres@localhost:5432/wharf_db"
DATABASE_URL="postgresql://postgres:postgres@localhost:6543/wharf_db?pgbouncer=true"
# Security & Sessions
JWT_SECRET="your_development_jwt_secret_min_32_characters"
FRONTEND_URL="http://localhost:5173"
ENCRYPTION_SECRET="0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
# GitHub OAuth Credentials
GITHUB_CLIENT_ID="your_github_client_id"
GITHUB_CLIENT_SECRET="your_github_client_secret"
GITHUB_CALLBACK_URL="http://127.0.0.1:8787/api/auth/github/callback"
# LLM Providers Credentials
OPENAI_API_KEY="sk-..."
ANTHROPIC_API_KEY="sk-ant-..."
GROQ_API_KEY="gsk_..."
GEMINI_API_KEY="AIza..."Generate the Prisma client and push your schema or migrations to PostgreSQL:
# Navigate to the backend workspace
cd Wharf_/backend
# Ingest all dependency packages
npm install
# Generate Prisma client
npx prisma generate
# (Optional) Seed the database
npx prisma db seedStart the Cloudflare Worker locally via Wrangler:
# Ensure you are in the backend directory
cd Wharf_/backend
# Run local Worker dev server on http://127.0.0.1:8787
npm run devInstall dependencies and launch the frontend client server. Vite will spin up the web app locally on http://localhost:5173:
# Navigate to the React-Vite workspace
cd ../frontend
# Ingest required packages
npm install
# Boot development hot-reloading web page server
npm run devWharf ingests repository file structures, identifies tech stack compositions, and outputs production-grade markdown documentation.
# Call Wharf API endpoint directly to generate a project README using default settings
curl -X POST http://localhost:5000/api/generate/readme \
-H "Authorization: Bearer <JWT_USER_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"repoId": "clt-12345",
"tone": "professional",
"includeSections": ["features", "tech-stack", "system-architecture", "api-reference"],
"customInstructions": "Structure with clear setup commands for Docker."
}'Converse with Wharf's LLM engine while passing code structural context, directory mappings, or specific file trees directly to the conversation.
# Query the project codebase context with explicit assistant persona models
curl -X POST http://localhost:5000/api/chat/message \
-H "Authorization: Bearer <JWT_USER_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"repoId": "clt-12345",
"message": "Explain how the middleware rateLimiter.ts verifies Token bucket algorithms.",
"persona": "system-architect",
"chatHistoryId": "hist-789"
}'Evaluate codebase structure, check for standard repository layout patterns, analyze license status, trace test presence, and return a comprehensive code health score.
# Ingest and scan a repository for codebase health scoring metrics
curl -X POST http://localhost:5000/api/health/analyze \
-H "Authorization: Bearer <JWT_USER_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"githubUrl": "https://github.com/FrostByte-49/Wharf"
}'| Method | Endpoint | Description | Auth Required |
|---|---|---|---|
| GET | /api/auth/github |
Redirects user agent to GitHub's OAuth login screen | No |
| POST | /api/auth/callback |
Receives temporary OAuth code and returns valid JWT token | No |
| GET | /api/repo/list |
Returns list of user repositories imported from GitHub | Yes |
| POST | /api/repo/scan |
Runs framework detection parser over repository file tree | Yes |
| POST | /api/generate/readme |
Generates detailed Markdown documentation for a repository | Yes |
| POST | /api/chat/message |
Sends a message to the AI chat assistant with context parameters | Yes |
| POST | /api/health/analyze |
Generates a metric analysis score and actionable recommendations | Yes |
| POST | /api/changelog/generate |
Generates a project release changelog based on git commit history | Yes |
| POST | /api/profile/generate |
Builds custom markdown files for personal developer profiles | Yes |
| GET | /api/admin/stats |
Collects live operational metrics, cost estimations, and cache hits | Yes (Admin) |
Redirects the client browser session directly to GitHub to authorize the Wharf application.
Request Query Params
// No request body parameter required.Response
Status: 302 Found
Location: https://github.com/login/oauth/authorize?client_id=...&redirect_uri=...
Exchanges an authorization code for an OAuth access token, provisions a user profile in PostgreSQL, and signs a JWT.
Request Body
{
"code": "a93bc71d49e83f0a"
}Response (JSON)
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjbHQ...",
"user": {
"id": "clt-12345",
"username": "FrostByte-49",
"email": "[email protected]",
"avatarUrl": "https://avatars.githubusercontent.com/u/12345"
}
}Retrieves the repositories belonging to the authenticated user from the local PostgreSQL database, with optional sync options.
Request Query Params
// Header authorization check required: "Authorization: Bearer <JWT>"Response (JSON)
{
"success": true,
"repositories": [
{
"id": "repo-4819",
"name": "Wharf",
"owner": "FrostByte-49",
"githubUrl": "https://github.com/FrostByte-49/Wharf",
"framework": "TypeScript",
"lastScannedAt": "2026-04-26T10:18:18.000Z"
}
]
}Generates a structured, highly polished markdown README based on codebase structure, framework components, and configuration settings.
Request Body
{
"repoId": "repo-4819",
"tone": "technical",
"sections": ["description", "installation", "usage", "tech-stack", "system-architecture"],
"customInstructions": "Prioritize yarn workspaces and emphasize the worker-backend setup."
}Response (JSON)
{
"success": true,
"readmeMarkdown": "# Wharf: Dev Workflow Engine\n\nThis codebase runs...\n## Technical Stack\n...",
"tokensUsed": 4512,
"costEstimate": 0.0135
}Submits a message to the repository chat engine. It resolves repo-specific structures and files to build a highly targeted codebase-aware context prompt.
Request Body
{
"repoId": "repo-4819",
"message": "Which file manages the encryption/decryption of the user's personal API keys?",
"persona": "security-engineer",
"chatHistoryId": "chat-session-001"
}Response (JSON)
{
"success": true,
"response": "The encryption and decryption of user API keys is managed by `Wharf_/backend/src/utils/encryption.ts`. It utilizes an AES-256-GCM symmetric-key encryption workflow...",
"suggestedFollowups": [
"How is the encryption key loaded securely?",
"Can you show the exact decrypt function signature?"
]
}Performs a structural analysis on the repository file tree, calculating an overall repository quality score and generating actionable refactoring recommendations.
Request Body
{
"githubUrl": "https://github.com/FrostByte-49/Wharf"
}Response (JSON)
{
"success": true,
"healthReport": {
"overallScore": 89,
"breakdown": {
"documentation": 95,
"testCoverage": 78,
"licenseCompliance": 100,
"frameworkStructure": 83
},
"suggestions": [
{
"impact": "high",
"category": "testCoverage",
"message": "Add visual unit test configurations to target components inside the admin dashboard folder."
},
{
"impact": "medium",
"category": "frameworkStructure",
"message": "Move duplicate environment check handlers into a centralized config module in backend."
}
]
}
}Parses Git commit logs and differences between references (tags, branches, or commit hashes) to generate structured markdown release notes.
Request Body
{
"repoId": "repo-4819",
"fromRef": "v1.0.0",
"toRef": "v1.1.0",
"style": "conventional-commits"
}Response (JSON)
{
"success": true,
"changelogMarkdown": "## Release v1.1.0\n\n### Features\n- **Rate Limiting**: Added Redis token-bucket middleware (#104)\n\n### Bug Fixes\n- **Token Revocation**: Resolved token expiration state mismatches...",
"generatedAt": "2026-04-26T11:00:00.000Z"
}Synthesizes visual layouts, markdown banners, theme styles, tech stack badges, and widgets into a customized personal profile README file.
Request Body
{
"theme": "dracula",
"bio": "Fullstack Cloud Engineer building automated developer systems.",
"techStack": ["React", "TypeScript", "NodeJS", "PostgreSQL", "Docker"],
"widgets": ["github-stats", "recent-prs"],
"socials": {
"linkedin": "frostbyte-49",
"twitter": "frostbyte_49"
}
}Response (JSON)
{
"success": true,
"profileMarkdown": "<div align=\"center\">\n# Hi, I am FrostByte-49! π\n\n\n</div>",
"previewUrl": "http://localhost:5000/api/profile/preview/clt-12345"
}You can configure and extend Wharf's default behavior in several ways:
- Swap AI Provider: Change the model definition parameter strings inside
Wharf_/backend/src/services/ai.service.tsto swap OpenAI with Anthropic, or configure local LLM endpoints using Ollama. - Adjust Repository Health Weights: Fine-tune weighting percentages used to calculate repository health scores inside
Wharf_/backend/src/services/healthScore.service.ts. - Add Custom README Sections: Add custom items to selection matrices in
Wharf_/frontend/src/components/generator/SectionToggler.tsxto expand the document output scope. - Create Chat Assistant Personas: Register new bot behavioral system prompts in
Wharf_/backend/src/utils/chatPromptBuilder.ts(e.g., adding a "DevOps Architect" persona). - Modify Key Cryptography: Swap out standard AES algorithms for custom hardware security module adapters inside
Wharf_/backend/src/utils/encryption.ts.
- Real-Time Git Webhooks: Automatically trigger README updates and health score recalibrations on git push events.
- Automated Pull Request Reviews: Integrate a code-review pipeline that suggests documentation modifications and highlights security concerns directly inside PR threads.
- Multilingual Localization: Automatically translate generated documentation into target languages like Spanish, Japanese, or German.
- Dynamic AST Construction: Implement absolute syntax tree parsing for deeper variable tracing, interface generation, and call stack visualization.
- Predictive Refactoring Analysis: Run code complexity tracking algorithms to predict software components prone to regressions.
- Team Workspace Sharing: Enable team-wide collaborative workspaces with persistent codebase chat channels and interactive documentation previews.
We welcome contributions of all kinds! Please refer to our comprehensive Contributing Guide and Code of Conduct before submitting code.
- Fork the repository and create your feature branch:
git checkout -b feat/amazing-developer-improvement- Implement your changes and verify with tests:
# Backend tests
cd Wharf_/backend && npm run test
# Frontend tests
cd ../frontend && npm run test:run- Commit your changes following Conventional Commits:
git commit -m "feat(generator): integrate AST parsing for structural code quality tracking"- Push your branch upstream:
git push origin feat/amazing-developer-improvement- Open a Pull Request targeting the
developmentbranch ofFrostByte-49/Wharf(notmain). Fill out the Pull Request Template. Once reviewed and verified indevelopment, maintainers merge updates intomain.
- Security & Sandboxing: Enhancing worker service constraints when checking repository dependencies.
- UI/UX Optimization: Creating interactive visualizations for repository directory trees and graph structures.
- LLM Pipeline Refinement: Streamlining token budgets and prompt engineering for higher context utilization.
- Documentation & Walkthroughs: Adding detailed developer guides, framework templates, and test recipes.
This project is licensed under the MIT License. See the LICENSE file for details.
Pranav Khalate ( FrostByte-49 )
Β
Β
Β
If Wharf made automated codebase analysis or README updates easier for you, please consider giving this repository a star and sharing it with other developers on social media!




