Skip to main content

Basic Usage

This guide provides practical examples of using DeepWiki’s core features. All examples are designed to be runnable and progressively introduce more complex functionality.

Table of Contents

  1. Simple Wiki Generation
  2. Using the Ask Feature
  3. Using DeepResearch Feature
  4. Working with Public Repositories
  5. Basic API Calls with curl
  6. Python Client Example
  7. JavaScript/Node.js Example
  8. Common Use Cases and Workflows

Simple Wiki Generation

The most basic use of DeepWiki is generating documentation from your codebase.

Example 1: Generate a basic wiki

Example 2: Generate with custom configuration

Using the Ask Feature

The Ask feature allows you to query your codebase using natural language.

Example 3: Basic questions about your code

Example 4: Advanced Ask queries with context

Using DeepResearch Feature

DeepResearch performs in-depth analysis of your codebase to answer complex questions.

Example 5: Basic research query

Example 6: Comprehensive research with multiple aspects

Working with Public Repositories

DeepWiki can analyze public repositories directly from GitHub.

Example 7: Analyze a public GitHub repository

Example 8: Batch analysis of multiple repositories

Basic API Calls with curl

Example 9: Generate wiki via API

Example 10: Ask questions via API

Example 11: Deep research via API

Python Client Example

Example 12: Complete Python workflow

JavaScript/Node.js Example

Example 13: Complete Node.js workflow

Common Use Cases and Workflows

Example 14: Onboarding new developers

Example 15: Continuous documentation workflow

Example 16: API documentation generation

Example 17: Code migration assistant

Example 18: Security audit workflow

Best Practices

  1. Start Simple: Begin with basic wiki generation before moving to advanced features
  2. Use Configuration Files: Store settings in deepwiki.config.yaml for consistency
  3. Leverage Caching: Cache results for frequently asked questions or repeated analyses
  4. Batch Operations: Group multiple operations together for better performance
  5. Monitor Progress: Use progress callbacks for long-running operations
  6. Handle Errors Gracefully: Implement proper error handling and retries
  7. Secure API Keys: Never hardcode API keys; use environment variables
  8. Regular Updates: Keep documentation in sync with code changes using CI/CD

Next Steps