WikiStream is a lightweight, high-performance visual interface built with Streamlit that wraps the powerful OpenWiki CLI tool. By directly integrating with your local Ollama server, WikiStream allows you to generate and maintain comprehensive codebase documentation completely offline and securely, without relying on external APIs.
With a fixed focus on performance, this tool utilizes the qwen3:4b local model (with reasoning/thinking disabled for maximum speed) to deliver rapid documentation generation directly to your outputs.md.
- Frontend/UI: Streamlit
- Documentation Engine: OpenWiki CLI (
npx openwiki) - Local AI Provider: Ollama (OpenAI-compatible endpoints)
- Primary Model:
qwen3:4b
Follow these steps in your Windows PowerShell terminal to get started immediately.
Ensure you have the following installed:
- Python 3.9+
- Node.js & npm (for OpenWiki)
- Ollama with the
qwen3:4bmodel pulled (ollama run qwen3:4b)
# Create a virtual environment
python -m venv venv
.\venv\Scripts\activate
# Install Python requirements
pip install -r requirements.txt
# Install OpenWiki globally (required for fast execution)
npm install -g openwikiExecute the following command to launch the visual interface:
streamlit run app.pyThis will open your default web browser to http://localhost:8501. From the interface, you can enter the path to any local directory and a prompt, then click Generate Documentation to run OpenWiki.
app.py: The core Streamlit application providing the visual interface for OpenWiki.requirements.txt: Contains minimal Python dependencies (streamlit).README.md: This comprehensive documentation file.outputs.md: The generated markdown documentation created by the OpenWiki execution.
- Legacy Code Onboarding: Point WikiStream at a massive, undocumented legacy repository and instantly generate a high-level architectural overview.
- Automated Sprint Documentation: Run WikiStream at the end of every sprint to document the new features added to the codebase.
- API Endpoint Summaries: Request OpenWiki to specifically document all REST API routes and their request/response schemas.
- Security Audits: Generate a breakdown of authentication and authorization flows across the project to assist security researchers.
- Offline Development: Generate documentation in air-gapped or restricted network environments since all processing is handled locally via Ollama.
- Batch Processing: Ability to select multiple repositories and generate documentation sequentially.
- Git Auto-Commit: Automatically stage and commit the generated documentation directly back to the target repository.
- Custom Model Selector: Dropdown in the UI to seamlessly switch between different local Ollama models (e.g.,
qwen2.5-coder:1.5b,llama3.2:3b). - LangSmith Integration UI: Visual toggle and input field to enable LangSmith tracing for OpenWiki runs directly from the dashboard.
- Interactive Chat Mode: Incorporate OpenWiki's interactive chat mode into the Streamlit UI, allowing back-and-forth documentation refinement.
Keywords: OpenWiki, Ollama, qwen3:4b, Local LLM, Offline Documentation, Streamlit UI, AI Agent, Codebase Documentation, Python, Machine Learning, OpenRouter, Self-Hosted AI, Visual Interface, RAG, GitHub Actions.