# codewiki | Luong Quang Dung | Knowledge Base | Instagit

codewiki is an intelligent documentation tool that automatically generates wiki-style documentation for your GitHub or local repositories using AI.

GitHub Stars: 11

Repository: https://github.com/quangdungluong/codewiki

---

## Articles

### [Conversation Memory System Architecture in CodeWiki: A Technical Deep Dive](/quangdungluong/codewiki/codewiki-conversation-memory-system-architecture)

Explore the conversation memory system architecture in CodeWiki. This three-layer design uses DataComponent, DialogTurn, CustomConversation, and Memory for stateful LLM interactions without databases.

- Tags: deep-dive
- Published: 2026-02-16

### [Configuration Requirements for Deploying CodeWiki: Complete Setup Guide](/quangdungluong/codewiki/codewiki-deployment-configuration-requirements)

Deploying CodeWiki needs Python 3.9, GitHub, Gemini, and Google API keys. Set up environment variables in .env to configure your FastAPI server.

- Tags: how-to-guide
- Published: 2026-02-16

### [How CodeWiki Handles Different Repository Types: GitHub vs Local Repositories](/quangdungluong/codewiki/codewiki-handle-different-repository-types)

Learn how CodeWiki processes GitHub and local repositories. Discover its regex-based type detection and unified structure normalization for seamless wiki generation.

- Tags: how-to-guide
- Published: 2026-02-16

### [What Is the Role of the Ollama Embedder in Code Embedding?](/quangdungluong/codewiki/ollama-embedder-role-code-embedding-pipeline)

Discover how the Ollama embedder transforms code and docs into vectors for semantic search and RAG in the codewiki repository. Optimize your code knowledge base.

- Tags: deep-dive
- Published: 2026-02-16

### [How CodeWiki Manages Token Counting and Context Window in Chat Conversations](/quangdungluong/codewiki/codewiki-token-counting-context-window-chat)

Discover how CodeWiki manages token counting and context window with a three-layer defense: tiktoken, message limits, and document thresholds to optimize chat performance.

- Tags: internals
- Published: 2026-02-16

### [Environment Variables Needed to Deploy CodeWiki: Complete Configuration Guide](/quangdungluong/codewiki/codewiki-deployment-environment-variables)

Learn the essential environment variables like PORT, GITHUB_API_KEY, and GEMINI_API_KEY needed to successfully deploy your CodeWiki application. Get the complete configuration guide now.

- Tags: how-to-guide
- Published: 2026-02-16

### [How CodeWiki Processes Mermaid Diagram Click Events: A Deep Dive into the React Implementation](/quangdungluong/codewiki/codewiki-process-mermaid-diagram-click-events)

Learn how CodeWiki processes Mermaid diagram click events using React. Discover how onClick handlers toggle fullscreen mode and display diagrams in a modal overlay.

- Tags: deep-dive
- Published: 2026-02-16

### [Understanding Mermaid Diagram Validation Logic in CodeWiki: A Technical Deep Dive](/quangdungluong/codewiki/codewiki-mermaid-diagram-validation-logic)

Explore the mermaid diagram validation logic in CodeWiki. Discover how the handle_mermaid_validation function sanitizes diagrams through five key transformations. Learn more now.

- Tags: deep-dive
- Published: 2026-02-16

### [How CodeWiki Manages GitHub API Rate Limiting: A Deep Dive into the Implementation](/quangdungluong/codewiki/codewiki-github-api-rate-limiting-management)

Discover how CodeWiki handles GitHub API rate limiting. Learn how it leverages authentication tokens to boost request quotas from 60 to 5,000 per hour without dedicated handling.

- Tags: deep-dive
- Published: 2026-02-16

### [How CodeWiki Fetches Repository Structures from GitHub: A Complete Technical Guide](/quangdungluong/codewiki/codewiki-fetch-github-repository-structures)

Learn how CodeWiki fetches repository structures from GitHub. It parses URLs, queries the GitHub API for file trees and readmes, and decodes content for a clear view.

- Tags: how-to-guide
- Published: 2026-02-16

### [How the CodeWiki Frontend Integrates with the FastAPI Backend: A Complete Technical Guide](/quangdungluong/codewiki/codewiki-frontend-fastapi-backend-integration)

Discover how the CodeWiki Next.js frontend integrates with the FastAPI backend using REST APIs and Redis for real-time asynchronous wiki generation and progress updates.

- Tags: deep-dive
- Published: 2026-02-16

### [Multi-Step Diagram Generation Process in CodeWiki: A 4-Stage Pipeline Explained](/quangdungluong/codewiki/codewiki-multi-step-diagram-generation-process)

Discover CodeWiki's 4-stage pipeline for multi-step diagram generation. Learn how GitHub data transforms into validated Mermaid diagrams with LLM insights.

- Tags: internals
- Published: 2026-02-16

### [How CodeWiki Caches Wiki Content for High-Performance Access](/quangdungluong/codewiki/codewiki-caching-wiki-content-performance)

Discover how CodeWiki caches wiki content as JSON files for lightning fast access. Learn how this method eliminates slow repository analysis and improves performance.

- Tags: performance
- Published: 2026-02-16

### [How CodeWiki Caches Diagrams for Performance: A Technical Deep Dive](/quangdungluong/codewiki/codewiki-caching-diagrams-performance)

Discover how CodeWiki caches diagrams on the server filesystem, reusing them via HTTP endpoints to boost performance and reduce load times. Learn the technical details.

- Tags: deep-dive
- Published: 2026-02-16

### [Architecture of the FAISS Retriever for Code Search in Codewiki](/quangdungluong/codewiki/codewiki-faiss-retriever-architecture-code-search)

Discover the FAISS retriever architecture for code search in Codewiki. Learn how it uses adalflow Ollama and FAISS indexes for efficient RAG-based code retrieval.

- Tags: architecture
- Published: 2026-02-16

### [Wiki Generation Pipeline and Redis Task Queuing in CodeWiki: A Technical Deep Dive](/quangdungluong/codewiki/codewiki-wiki-generation-pipeline-redis-task-queuing)

Explore the CodeWiki generation pipeline a multi-stage workflow that converts code to wikis. Learn how it uses Redis task queuing for efficient asynchronous processing and worker coordination.

- Tags: deep-dive
- Published: 2026-02-16

### [Document Processing Pipeline for Embedding Code in Codewiki: A 5-Stage Technical Breakdown](/quangdungluong/codewiki/codewiki-document-processing-pipeline-code-embedding)

Explore quangdungluongcodewiki's 5-stage document processing pipeline for embedding code. Learn how source code is cloned filtered chunked embedded and cached for RAG.

- Tags: internals
- Published: 2026-02-16

### [How the Streaming Chat API Provides Real-Time Responses with Context Retrieval in CodeWiki](/quangdungluong/codewiki/codewiki-streaming-chat-api-real-time-responses)

Discover how the streaming chat API delivers real-time AI responses by retrieving code context from your repository. Learn about its RAG pipeline using FAISS and Ollama.

- Tags: how-to-guide
- Published: 2026-02-16

### [How CodeWiki Authenticates with Private GitHub Repositories Using Tokens](/quangdungluong/codewiki/codewiki-private-github-authentication-tokens)

Learn how CodeWiki authenticates with private GitHub repos. Discover its token-based approach for secure API requests and seamless integration.

- Tags: how-to-guide
- Published: 2026-02-16

### [What AI Models Does CodeWiki Use for Code Analysis? A Technical Deep Dive](/quangdungluong/codewiki/ai-models-codewiki-code-analysis)

Discover the AI models powering CodeWiki's code analysis. We use Google Gemini 2.5 Pro and Nomic Embed Text via Ollama in a RAG pipeline for in-depth repository insights.

- Tags: deep-dive
- Published: 2026-02-16

### [Which AI Models Does CodeWiki Use for Diagram Generation?](/quangdungluong/codewiki/ai-models-codewiki-diagram-generation)

Discover which AI models CodeWiki uses for diagram generation. Learn about the integration of Google Gemini 2.5 Pro and FastAPI for seamless Mermaid code streaming.

- Tags: internals
- Published: 2026-02-16

### [RAG Implementation Architecture in CodeWiki: A Deep Dive into the Modular Retrieval Pipeline](/quangdungluong/codewiki/codewiki-rag-implementation-architecture)

Explore the RAG implementation architecture in CodeWiki. Learn how FAISS Ollama and Gemini 2.5 Pro power its modular retrieval pipeline for code repository Q&A.

- Tags: architecture
- Published: 2026-02-16

### [How CodeWiki Generates System Architecture Diagrams from GitHub Repositories](/quangdungluong/codewiki/how-codewiki-generates-architecture-diagrams-from-github)

Learn how CodeWiki automatically creates system architecture diagrams from GitHub repos using Gemini LLM and Mermaid.js for interactive visualization. Explore your code structure effortlessly.

- Tags: how-to-guide
- Published: 2026-02-16

