dev-doc 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +89 -61
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,116 +1,144 @@
1
1
  # dev-doc
2
2
 
3
- AI-powered codebase analyzer using Claude AI to generate comprehensive documentation and insights about your codebase.
3
+ AI-powered codebase analyzer that automatically generates comprehensive documentation and insights about your codebase using AI.
4
4
 
5
- ## Features
5
+ ## ✨ What is dev-doc?
6
6
 
7
- - 🔍 **Smart File Scanning**: Automatically discovers and reads source files from your codebase
8
- - 📦 **Intelligent Chunking**: Splits large files into manageable chunks for optimal AI processing
9
- - 🤖 **Claude AI Integration**: Leverages Claude AI for deep code analysis
10
- - 📊 **Multi-Level Analysis**: Provides both file-level and project-level insights
11
- - 🎯 **Framework Detection**: Automatically identifies your technology stack
12
- - 📝 **Structured Output**: Generates Markdown or JSON documentation
13
- - ⚙️ **Highly Configurable**: Customize ignored directories, file extensions, and more
7
+ `dev-doc` scans your codebase, analyzes it with AI, and generates detailed documentation including:
8
+ - **API Documentation**: Automatically detects and documents all endpoints, their relationships, and authentication flows
9
+ - **Project Architecture**: Understands your tech stack and explains the overall structure
10
+ - **Code Insights**: Provides explanations of functions, classes, and their roles
11
+ - **Dependencies**: Maps relationships between different parts of your codebase
14
12
 
15
- ## Installation
13
+ All documentation is securely stored in your dashboard where you can access it anytime.
14
+
15
+ ## 🚀 Quick Start
16
+
17
+ ### Step 1: Install
16
18
 
17
19
  ```bash
18
20
  npm install -g dev-doc
19
21
  ```
20
22
 
21
- Or use it directly with npx:
23
+ Or use it directly without installing:
22
24
 
23
25
  ```bash
24
26
  npx dev-doc ./src
25
27
  ```
26
28
 
27
- ## Usage
29
+ ### Step 2: Get Your API Key
28
30
 
29
- ### Basic Usage
31
+ 1. Visit [devdoc.tellecata.com](https://devdoc.tellecata.com)
32
+ 2. Sign up for a free account
33
+ 3. Navigate to your dashboard
34
+ 4. Copy your API key
30
35
 
31
- Simply provide the directory path you want to analyze:
36
+ ### Step 3: Add Your API Key
32
37
 
33
38
  ```bash
34
- dev-doc ./src
39
+ dev-doc add-key <your-api-key>
35
40
  ```
36
41
 
37
- The analysis will be automatically saved to the database - you don't need to specify any output options.
42
+ Or use the login alias:
38
43
 
39
- ### CLI Options
44
+ ```bash
45
+ dev-doc login <your-api-key>
46
+ ```
40
47
 
41
- - `[directory]`: Directory to analyze (default: current directory)
42
- - `--ignore <dirs>`: Comma-separated directories to ignore (default: `node_modules,.git,dist,build,.next`)
48
+ You'll see a confirmation with your quota and usage information.
43
49
 
44
- **Note:** All AI processing is handled automatically - no API keys or configuration needed from end users!
50
+ ### Step 4: Analyze Your Codebase
51
+
52
+ ```bash
53
+ dev-doc ./src
54
+ ```
45
55
 
46
- > **For Package Owners:** Credentials must be set as environment variables in the deployment environment. See [SECURITY.md](./SECURITY.md) for details.
56
+ That's it! Your analysis will be automatically processed and saved to your dashboard.
47
57
 
48
- ## Examples
58
+ ## 📖 Usage
49
59
 
50
- ### Analyze Current Directory
60
+ ### Basic Commands
51
61
 
62
+ **Analyze a directory:**
52
63
  ```bash
53
- dev-doc .
64
+ dev-doc ./src
54
65
  ```
55
66
 
56
- ### Analyze Specific Directory
67
+ **Check your account status and quota:**
68
+ ```bash
69
+ dev-doc status
70
+ ```
57
71
 
72
+ **Add or update your API key:**
58
73
  ```bash
59
- dev-doc ./src
74
+ dev-doc add-key <your-api-key>
60
75
  ```
61
76
 
62
- ### Ignore Additional Directories
77
+ ### Options
63
78
 
79
+ **Ignore specific directories:**
64
80
  ```bash
65
81
  dev-doc ./src --ignore node_modules,dist,tests,.next
66
82
  ```
67
83
 
68
- ## Output
69
-
70
- The analysis is automatically saved to the database. The generated documentation includes:
71
- - **Statistics**: Total files analyzed and cached
72
- - **Technology Stack**: Detected frameworks and libraries
73
- - **Project Summary**: High-level architecture and insights
74
- - **File-by-File Analysis**: Detailed analysis for each file
75
- - **API Documentation**: Endpoints, relationships, and authentication flows
84
+ Default ignored directories: `node_modules`, `.git`, `dist`, `build`, `.next`
76
85
 
77
- ## How It Works
86
+ ## 📋 Examples
78
87
 
79
- 1. **File Scanning**: Recursively scans the target directory for source files
80
- 2. **Change Detection**: Compares file hashes with cache to identify changed files
81
- 3. **Caching**: Uses cached results for unchanged files (dramatically faster on subsequent runs)
82
- 4. **Parallel Processing**: Analyzes multiple files concurrently (3 by default)
83
- 5. **Chunking**: Large files are split into manageable chunks for optimal processing
84
- 6. **AI Analysis**: Each chunk is sent to Claude AI for analysis
85
- 7. **Summarization**: Project-level summary is generated from all file analyses
86
- 8. **Storage**: Results are automatically saved to the database
88
+ ### Analyze your entire project
87
89
 
88
- ## Performance
90
+ ```bash
91
+ dev-doc .
92
+ ```
89
93
 
90
- The analyzer is optimized for large codebases:
91
- - **Caching**: Only analyzes changed files on subsequent runs (up to **360x faster**)
92
- - **Parallel Processing**: Processes multiple files simultaneously
93
- - **Incremental Updates**: Updates only changed sections
94
+ ### Analyze a specific directory
94
95
 
95
- See [PERFORMANCE.md](./PERFORMANCE.md) for detailed performance benchmarks and optimization tips.
96
+ ```bash
97
+ dev-doc ./src
98
+ dev-doc ./backend
99
+ dev-doc ./packages/utils
100
+ ```
96
101
 
97
- ## Development
102
+ ### Exclude test files and build directories
98
103
 
99
104
  ```bash
100
- # Install dependencies
101
- npm install
105
+ dev-doc ./src --ignore tests,coverage,build,.next
106
+ ```
107
+
108
+ ## 🎯 Features
109
+
110
+ - **🔍 Smart Detection**: Automatically identifies APIs, endpoints, and their relationships
111
+ - **⚡ Fast & Efficient**: Only processes changed files on subsequent runs
112
+ - **📊 Comprehensive**: Generates both high-level architecture and detailed file-by-file documentation
113
+ - **🔒 Secure**: Your code is processed securely and stored in your private dashboard
114
+ - **🚀 No Configuration**: Works out of the box with sensible defaults
115
+
116
+ ## 💡 What You'll Get
102
117
 
103
- # Build
104
- npm run build
118
+ After running an analysis, you'll have access to:
105
119
 
106
- # Run locally
107
- npm run dev ./src
120
+ - **Complete API Documentation**: Every endpoint with parameters, responses, and relationships
121
+ - **Authentication Flows**: Documented auth patterns and token usage
122
+ - **Project Summary**: High-level overview of your architecture and tech stack
123
+ - **File Documentation**: Detailed explanations of each file's purpose and key functions
124
+ - **Dependency Mapping**: Clear understanding of how different parts connect
108
125
 
109
- # Or use ts-node directly
110
- npx ts-node src/cli.ts ./src
126
+ All documentation is accessible through your dashboard at [devdoc.tellecata.com](https://devdoc.tellecata.com).
127
+
128
+ ## ❓ Troubleshooting
129
+
130
+ **No API key found?**
131
+ ```bash
132
+ dev-doc add-key <your-api-key>
133
+ ```
134
+
135
+ **Check your quota and usage:**
136
+ ```bash
137
+ dev-doc status
111
138
  ```
112
139
 
113
- ## License
140
+ **Need help?** Visit [devdoc.tellecata.com](https://devdoc.tellecata.com) for support and documentation.
114
141
 
115
- MIT
142
+ ## 📄 License
116
143
 
144
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-doc",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "AI-powered codebase analyzer using Claude AI to generate documentation and insights",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  "codebase",
21
21
  "analyzer"
22
22
  ],
23
- "author": "",
23
+ "author": "Tellecata LLC",
24
24
  "license": "MIT",
25
25
  "repository": {
26
26
  "type": "git",