dev-doc 0.2.11 → 0.2.13

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 (3) hide show
  1. package/README.md +81 -16
  2. package/dist/cli.js +1 -1
  3. 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
- - **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
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
 
@@ -49,17 +49,30 @@ You'll see a confirmation with your quota and usage information.
49
49
 
50
50
  ### Step 4: Analyze Your Codebase
51
51
 
52
+ ```bash
53
+ dev-doc
54
+ ```
55
+
56
+ Or analyze a specific directory:
57
+
52
58
  ```bash
53
59
  dev-doc ./src
54
60
  ```
55
61
 
56
- That's it! Your analysis will be automatically processed and saved to your dashboard.
62
+ 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.
63
+
64
+ **Note:** Running `dev-doc` without arguments analyzes the current directory, making it perfect for running from your project root.
57
65
 
58
66
  ## 📖 Usage
59
67
 
60
68
  ### Basic Commands
61
69
 
62
- **Analyze a directory:**
70
+ **Analyze current directory:**
71
+ ```bash
72
+ dev-doc
73
+ ```
74
+
75
+ **Analyze a specific directory:**
63
76
  ```bash
64
77
  dev-doc ./src
65
78
  ```
@@ -76,40 +89,58 @@ dev-doc add-key <your-api-key>
76
89
 
77
90
  ### Options
78
91
 
92
+ **Specify a custom project name:**
93
+ ```bash
94
+ dev-doc ./src --project-name "my-awesome-project"
95
+ ```
96
+
79
97
  **Ignore specific directories:**
80
98
  ```bash
81
99
  dev-doc ./src --ignore node_modules,dist,tests,.next
82
100
  ```
83
101
 
84
- Default ignored directories: `node_modules`, `.git`, `dist`, `build`, `.next`
102
+ **Default behavior:**
103
+ - Project name is automatically extracted from `package.json` (if present) or the directory name
104
+ - Default ignored directories: `node_modules`, `.git`, `dist`, `build`, `.next`
85
105
 
86
106
  ## 📋 Examples
87
107
 
88
- ### Analyze your entire project
108
+ ### Analyze current directory (most common)
89
109
 
90
110
  ```bash
91
- dev-doc .
111
+ dev-doc
92
112
  ```
93
113
 
114
+ This analyzes the current directory - perfect when you're in your project root!
115
+
94
116
  ### Analyze a specific directory
95
117
 
96
118
  ```bash
97
119
  dev-doc ./src
98
120
  dev-doc ./backend
99
- dev-doc ./packages/utils
121
+ ```
122
+
123
+ ### Analyze with custom project name
124
+
125
+ ```bash
126
+ dev-doc --project-name "api-backend"
127
+ dev-doc ./src --project-name "api-backend"
100
128
  ```
101
129
 
102
130
  ### Exclude test files and build directories
103
131
 
104
132
  ```bash
133
+ dev-doc --ignore tests,coverage,build,.next
105
134
  dev-doc ./src --ignore tests,coverage,build,.next
106
135
  ```
107
136
 
108
137
  ## 🎯 Features
109
138
 
110
139
  - **🔍 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
140
+ - **⚡ Background Processing**: Analysis runs asynchronously - no waiting for completion
141
+ - **📊 Structured Documentation**: Organized into separate fields (overview, architecture, APIs, tech stack)
142
+ - **🎯 Optimization Insights**: Actionable recommendations for performance, latency, and code quality
143
+ - **📦 Project Organization**: Clear project naming and ownership tracking
113
144
  - **🔒 Secure**: Your code is processed securely and stored in your private dashboard
114
145
  - **🚀 No Configuration**: Works out of the box with sensible defaults
115
146
 
@@ -117,14 +148,43 @@ dev-doc ./src --ignore tests,coverage,build,.next
117
148
 
118
149
  After running an analysis, you'll have access to:
119
150
 
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
151
+ ### **Structured Documentation**
152
+ - **Overview**: Brief project description
153
+ - **Architecture**: Detailed system architecture and design patterns
154
+ - **Tech Stack**: Complete list of frameworks, libraries, and tools used
155
+ - **API Endpoints**: Comprehensive list of all endpoints with methods, paths, descriptions, and authentication requirements
156
+ - **Key Features**: List of main functionality and capabilities
157
+ - **Dependencies**: Core package dependencies
158
+
159
+ ### **API Documentation**
160
+ - Every endpoint with HTTP methods and paths
161
+ - Authentication and authorization requirements
162
+ - API relationships and dependencies
163
+ - Data flows between endpoints
164
+
165
+ ### **Code Optimization Insights**
166
+ - **Performance Bottlenecks**: Identifies N+1 queries, missing indexes, inefficient algorithms
167
+ - **API Latency Improvements**: Caching strategies, query optimizations, response compression suggestions
168
+ - **Code Quality Enhancements**: Code smells, refactoring opportunities, security improvements
169
+ - **Architecture Improvements**: Better patterns, scalability suggestions, maintainability enhancements
170
+
171
+ ### **Project Summary**
172
+ - High-level overview of your architecture and tech stack
173
+ - Complete API endpoint catalog
174
+ - Authentication flows and patterns
175
+ - File-by-file analysis documentation
125
176
 
126
177
  All documentation is accessible through your dashboard at [devdoc.tellecata.com](https://devdoc.tellecata.com).
127
178
 
179
+ ## 🔄 How It Works
180
+
181
+ 1. **Queue Analysis**: CLI sends your codebase to the backend and receives immediate confirmation
182
+ 2. **Background Processing**: Analysis runs asynchronously on the server (no timeout issues)
183
+ 3. **AI Analysis**: Files are analyzed for APIs, architecture, and code patterns
184
+ 4. **Structured Extraction**: Documentation is organized into structured fields
185
+ 5. **Storage**: Results are saved to your dashboard with clear project ownership
186
+ 6. **Access**: View comprehensive documentation anytime in your dashboard
187
+
128
188
  ## ❓ Troubleshooting
129
189
 
130
190
  **No API key found?**
@@ -137,6 +197,11 @@ dev-doc add-key <your-api-key>
137
197
  dev-doc status
138
198
  ```
139
199
 
200
+ **Project name not detected?**
201
+ ```bash
202
+ dev-doc ./src --project-name "my-project"
203
+ ```
204
+
140
205
  **Need help?** Visit [devdoc.tellecata.com](https://devdoc.tellecata.com) for support and documentation.
141
206
 
142
207
  ## 📄 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.11");
50
+ .version("0.2.13");
51
51
  // Add API key command
52
52
  program
53
53
  .command("add-key")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-doc",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "AI-powered codebase analyzer using AI to generate documentation and insights",
5
5
  "main": "dist/index.js",
6
6
  "bin": {