dev-doc 0.2.10 → 0.2.12
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 +57 -16
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@ AI-powered codebase analyzer that automatically generates comprehensive document
|
|
|
6
6
|
|
|
7
7
|
`dev-doc` scans your codebase, analyzes it with AI, and generates detailed documentation including:
|
|
8
8
|
- **API Documentation**: Automatically detects and documents all endpoints, their relationships, and authentication flows
|
|
9
|
-
- **
|
|
10
|
-
- **Code Insights**:
|
|
11
|
-
- **
|
|
9
|
+
- **Structured Analysis**: Organized documentation with overview, architecture, tech stack, and key features
|
|
10
|
+
- **Code Optimization Insights**: Actionable recommendations to improve performance, reduce latency, and enhance code quality
|
|
11
|
+
- **Project Organization**: Clear ownership tracking with project names for easy management
|
|
12
12
|
|
|
13
13
|
All documentation is securely stored in your dashboard where you can access it anytime.
|
|
14
14
|
|
|
@@ -53,7 +53,7 @@ You'll see a confirmation with your quota and usage information.
|
|
|
53
53
|
dev-doc ./src
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
That's it! Your analysis will be
|
|
56
|
+
That's it! Your analysis will be processed in the background and saved to your dashboard. The CLI will exit immediately after queuing the analysis.
|
|
57
57
|
|
|
58
58
|
## 📖 Usage
|
|
59
59
|
|
|
@@ -76,12 +76,19 @@ dev-doc add-key <your-api-key>
|
|
|
76
76
|
|
|
77
77
|
### Options
|
|
78
78
|
|
|
79
|
+
**Specify a custom project name:**
|
|
80
|
+
```bash
|
|
81
|
+
dev-doc ./src --project-name "my-awesome-project"
|
|
82
|
+
```
|
|
83
|
+
|
|
79
84
|
**Ignore specific directories:**
|
|
80
85
|
```bash
|
|
81
86
|
dev-doc ./src --ignore node_modules,dist,tests,.next
|
|
82
87
|
```
|
|
83
88
|
|
|
84
|
-
Default
|
|
89
|
+
**Default behavior:**
|
|
90
|
+
- Project name is automatically extracted from `package.json` (if present) or the directory name
|
|
91
|
+
- Default ignored directories: `node_modules`, `.git`, `dist`, `build`, `.next`
|
|
85
92
|
|
|
86
93
|
## 📋 Examples
|
|
87
94
|
|
|
@@ -91,12 +98,10 @@ Default ignored directories: `node_modules`, `.git`, `dist`, `build`, `.next`
|
|
|
91
98
|
dev-doc .
|
|
92
99
|
```
|
|
93
100
|
|
|
94
|
-
### Analyze a specific directory
|
|
101
|
+
### Analyze a specific directory with custom project name
|
|
95
102
|
|
|
96
103
|
```bash
|
|
97
|
-
dev-doc ./src
|
|
98
|
-
dev-doc ./backend
|
|
99
|
-
dev-doc ./packages/utils
|
|
104
|
+
dev-doc ./src --project-name "api-backend"
|
|
100
105
|
```
|
|
101
106
|
|
|
102
107
|
### Exclude test files and build directories
|
|
@@ -108,8 +113,10 @@ dev-doc ./src --ignore tests,coverage,build,.next
|
|
|
108
113
|
## 🎯 Features
|
|
109
114
|
|
|
110
115
|
- **🔍 Smart Detection**: Automatically identifies APIs, endpoints, and their relationships
|
|
111
|
-
- **⚡
|
|
112
|
-
- **📊
|
|
116
|
+
- **⚡ Background Processing**: Analysis runs asynchronously - no waiting for completion
|
|
117
|
+
- **📊 Structured Documentation**: Organized into separate fields (overview, architecture, APIs, tech stack)
|
|
118
|
+
- **🎯 Optimization Insights**: Actionable recommendations for performance, latency, and code quality
|
|
119
|
+
- **📦 Project Organization**: Clear project naming and ownership tracking
|
|
113
120
|
- **🔒 Secure**: Your code is processed securely and stored in your private dashboard
|
|
114
121
|
- **🚀 No Configuration**: Works out of the box with sensible defaults
|
|
115
122
|
|
|
@@ -117,14 +124,43 @@ dev-doc ./src --ignore tests,coverage,build,.next
|
|
|
117
124
|
|
|
118
125
|
After running an analysis, you'll have access to:
|
|
119
126
|
|
|
120
|
-
|
|
121
|
-
- **
|
|
122
|
-
- **
|
|
123
|
-
- **
|
|
124
|
-
- **
|
|
127
|
+
### **Structured Documentation**
|
|
128
|
+
- **Overview**: Brief project description
|
|
129
|
+
- **Architecture**: Detailed system architecture and design patterns
|
|
130
|
+
- **Tech Stack**: Complete list of frameworks, libraries, and tools used
|
|
131
|
+
- **API Endpoints**: Comprehensive list of all endpoints with methods, paths, descriptions, and authentication requirements
|
|
132
|
+
- **Key Features**: List of main functionality and capabilities
|
|
133
|
+
- **Dependencies**: Core package dependencies
|
|
134
|
+
|
|
135
|
+
### **API Documentation**
|
|
136
|
+
- Every endpoint with HTTP methods and paths
|
|
137
|
+
- Authentication and authorization requirements
|
|
138
|
+
- API relationships and dependencies
|
|
139
|
+
- Data flows between endpoints
|
|
140
|
+
|
|
141
|
+
### **Code Optimization Insights**
|
|
142
|
+
- **Performance Bottlenecks**: Identifies N+1 queries, missing indexes, inefficient algorithms
|
|
143
|
+
- **API Latency Improvements**: Caching strategies, query optimizations, response compression suggestions
|
|
144
|
+
- **Code Quality Enhancements**: Code smells, refactoring opportunities, security improvements
|
|
145
|
+
- **Architecture Improvements**: Better patterns, scalability suggestions, maintainability enhancements
|
|
146
|
+
|
|
147
|
+
### **Project Summary**
|
|
148
|
+
- High-level overview of your architecture and tech stack
|
|
149
|
+
- Complete API endpoint catalog
|
|
150
|
+
- Authentication flows and patterns
|
|
151
|
+
- File-by-file analysis documentation
|
|
125
152
|
|
|
126
153
|
All documentation is accessible through your dashboard at [devdoc.tellecata.com](https://devdoc.tellecata.com).
|
|
127
154
|
|
|
155
|
+
## 🔄 How It Works
|
|
156
|
+
|
|
157
|
+
1. **Queue Analysis**: CLI sends your codebase to the backend and receives immediate confirmation
|
|
158
|
+
2. **Background Processing**: Analysis runs asynchronously on the server (no timeout issues)
|
|
159
|
+
3. **AI Analysis**: Files are analyzed for APIs, architecture, and code patterns
|
|
160
|
+
4. **Structured Extraction**: Documentation is organized into structured fields
|
|
161
|
+
5. **Storage**: Results are saved to your dashboard with clear project ownership
|
|
162
|
+
6. **Access**: View comprehensive documentation anytime in your dashboard
|
|
163
|
+
|
|
128
164
|
## ❓ Troubleshooting
|
|
129
165
|
|
|
130
166
|
**No API key found?**
|
|
@@ -137,6 +173,11 @@ dev-doc add-key <your-api-key>
|
|
|
137
173
|
dev-doc status
|
|
138
174
|
```
|
|
139
175
|
|
|
176
|
+
**Project name not detected?**
|
|
177
|
+
```bash
|
|
178
|
+
dev-doc ./src --project-name "my-project"
|
|
179
|
+
```
|
|
180
|
+
|
|
140
181
|
**Need help?** Visit [devdoc.tellecata.com](https://devdoc.tellecata.com) for support and documentation.
|
|
141
182
|
|
|
142
183
|
## 📄 License
|
package/dist/cli.js
CHANGED
|
@@ -47,7 +47,7 @@ const API_URL = "https://dev-doc-726dc734499e.herokuapp.com"; // TODO: Update to
|
|
|
47
47
|
program
|
|
48
48
|
.name("dev-doc")
|
|
49
49
|
.description("AI-powered codebase analyzer AI")
|
|
50
|
-
.version("0.2.
|
|
50
|
+
.version("0.2.12");
|
|
51
51
|
// Add API key command
|
|
52
52
|
program
|
|
53
53
|
.command("add-key")
|