Skip to main content

AI-powered project documentation generator using Claude Agent SDK

Project description

NanoWiki

AI-powered project documentation generator using Claude Agent SDK.

Features

  • 🔍 Intelligent Analysis: Uses AI to analyze project structure, modules, and dependencies
  • 📝 Wiki Generation: Automatically generates markdown documentation with Mermaid diagrams
  • 🚀 Web Interface: Browse your wiki with a clean web interface
  • 💬 Q&A Chat: Ask questions about your project with AI assistance
  • Caching: Fast subsequent loads with smart caching
  • 🌐 Multi-Language: Supports projects in any programming language

Installation

From PyPI (Recommended)

pip install nanowiki

Or with uv:

uv pip install nanowiki

From Source

# Clone the repository
git clone https://github.com/vtuber-plan/NanoWiki.git
cd nanowiki

# Install with uv
uv sync

Usage

Analyze a Project

Generate wiki documentation for any project:

nanowiki analyze ./my-project

This creates a .wiki folder in your project with:

  • overview.md - Main overview page
  • architecture.md - Architecture diagrams
  • dependencies.md - Module dependency graphs
  • modules/ - Per-module documentation

Options:

  • --force, -f - Re-analyze even if .wiki exists
  • --output, -o - Custom output directory

Serve the Wiki

Start the web server to browse your wiki:

nanowiki serve ./my-project

Options:

  • --host, -h - Host to bind to (default: 127.0.0.1)
  • --port, -p - Port to bind to (default: 8000)
  • --reload - Enable auto-reload on file changes

Then open http://localhost:8000 in your browser.

What Gets Generated

Project Overview

  • Project statistics (files, lines of code)
  • Programming languages used
  • Directory structure

Architecture Diagrams

  • Layer architecture using Mermaid
  • Design patterns detected
  • Entry points identified

Module Documentation

  • Purpose and description
  • Files and their types
  • Functions with parameters and return types
  • Classes with inheritance
  • Source references with line numbers

Dependency Graphs

  • Module-level dependencies
  • Visual dependency diagrams

Example

# Analyze a Python project
nanowiki analyze ~/projects/my-flask-app

# Serve the wiki
nanowiki serve ~/projects/my-flask-app

# Open in browser
open http://localhost:8000

Development

# Install development dependencies
uv sync --group dev

# Run tests
uv run pytest

# Lint code
uv run ruff check src/
uv run mypy src/

Requirements

  • Python 3.10+
  • Anthropic API key (set ANTHROPIC_API_KEY environment variable)

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanowiki-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanowiki-0.1.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file nanowiki-0.1.0.tar.gz.

File metadata

  • Download URL: nanowiki-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nanowiki-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88ec667da7ed44e95f221d033b679482a9fa7b92edcdfbb3d96000e020902543
MD5 6684eb7d42fe43b2f1aaea49e1cde40e
BLAKE2b-256 f2fc3619fa4795a0f357606d3a280689c54d8b23a2c10fe8f77398b254625daf

See more details on using hashes here.

File details

Details for the file nanowiki-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nanowiki-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nanowiki-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42e1a3a7036e098f1d3dab649cb6a90e86c4ed3711276f9e39429bbe25cdeb10
MD5 32dcef6db39721bb785923f2f3ced55d
BLAKE2b-256 c65133193a725cfc44dd93f4eb2a4cb66de4f2e2611d86ec2c6a59b91578b97c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page