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.
- package/README.md +89 -61
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,116 +1,144 @@
|
|
|
1
1
|
# dev-doc
|
|
2
2
|
|
|
3
|
-
AI-powered codebase analyzer
|
|
3
|
+
AI-powered codebase analyzer that automatically generates comprehensive documentation and insights about your codebase using AI.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## ✨ What is dev-doc?
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
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
|
-
|
|
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
|
|
23
|
+
Or use it directly without installing:
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
26
|
npx dev-doc ./src
|
|
25
27
|
```
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
### Step 2: Get Your API Key
|
|
28
30
|
|
|
29
|
-
|
|
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
|
-
|
|
36
|
+
### Step 3: Add Your API Key
|
|
32
37
|
|
|
33
38
|
```bash
|
|
34
|
-
dev-doc
|
|
39
|
+
dev-doc add-key <your-api-key>
|
|
35
40
|
```
|
|
36
41
|
|
|
37
|
-
|
|
42
|
+
Or use the login alias:
|
|
38
43
|
|
|
39
|
-
|
|
44
|
+
```bash
|
|
45
|
+
dev-doc login <your-api-key>
|
|
46
|
+
```
|
|
40
47
|
|
|
41
|
-
|
|
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
|
-
|
|
50
|
+
### Step 4: Analyze Your Codebase
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
dev-doc ./src
|
|
54
|
+
```
|
|
45
55
|
|
|
46
|
-
|
|
56
|
+
That's it! Your analysis will be automatically processed and saved to your dashboard.
|
|
47
57
|
|
|
48
|
-
##
|
|
58
|
+
## 📖 Usage
|
|
49
59
|
|
|
50
|
-
###
|
|
60
|
+
### Basic Commands
|
|
51
61
|
|
|
62
|
+
**Analyze a directory:**
|
|
52
63
|
```bash
|
|
53
|
-
dev-doc
|
|
64
|
+
dev-doc ./src
|
|
54
65
|
```
|
|
55
66
|
|
|
56
|
-
|
|
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
|
|
74
|
+
dev-doc add-key <your-api-key>
|
|
60
75
|
```
|
|
61
76
|
|
|
62
|
-
###
|
|
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
|
-
|
|
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
|
-
##
|
|
86
|
+
## 📋 Examples
|
|
78
87
|
|
|
79
|
-
|
|
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
|
-
|
|
90
|
+
```bash
|
|
91
|
+
dev-doc .
|
|
92
|
+
```
|
|
89
93
|
|
|
90
|
-
|
|
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
|
-
|
|
96
|
+
```bash
|
|
97
|
+
dev-doc ./src
|
|
98
|
+
dev-doc ./backend
|
|
99
|
+
dev-doc ./packages/utils
|
|
100
|
+
```
|
|
96
101
|
|
|
97
|
-
|
|
102
|
+
### Exclude test files and build directories
|
|
98
103
|
|
|
99
104
|
```bash
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
104
|
-
npm run build
|
|
118
|
+
After running an analysis, you'll have access to:
|
|
105
119
|
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
110
|
-
|
|
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
|
-
|
|
140
|
+
**Need help?** Visit [devdoc.tellecata.com](https://devdoc.tellecata.com) for support and documentation.
|
|
114
141
|
|
|
115
|
-
|
|
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.
|
|
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",
|