@veolab/discoverylab 0.1.0 → 0.1.2
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/LICENSE +21 -0
- package/README.md +63 -193
- package/dist/chunk-GOL6FUJL.js +6045 -0
- package/dist/chunk-JFTBF4JR.js +6040 -0
- package/dist/chunk-X64SFUT5.js +6099 -0
- package/dist/cli.js +31 -1
- package/dist/index.js +1 -1
- package/dist/server-2DXLKLFM.js +13 -0
- package/dist/server-G2SY3DOS.js +13 -0
- package/dist/server-OESJUEYC.js +13 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Anderson Melo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,214 +1,84 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- **Claude CLI** - Automatic fallback with optimized settings
|
|
34
|
-
- **Model Selection** - Configure specific models per provider in Settings UI
|
|
35
|
-
|
|
36
|
-
## Installation
|
|
37
|
-
|
|
38
|
-
### Via Claude Code Plugin Marketplace (Recommended)
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
# Add the marketplace
|
|
42
|
-
/plugin marketplace add veolab/applab-discovery
|
|
43
|
-
|
|
44
|
-
# Install the plugin
|
|
45
|
-
/plugin install discoverylab@veolab-applab-discovery
|
|
1
|
+
# DiscoveryLab
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
[](https://www.npmjs.com/package/@veolab/discoverylab)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
> AI-powered app testing & marketing asset generator. A Claude Code plugin.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## How It Works
|
|
12
|
+
|
|
13
|
+
```mermaid
|
|
14
|
+
flowchart LR
|
|
15
|
+
subgraph Input
|
|
16
|
+
A[Mobile App] --> R[Record]
|
|
17
|
+
B[Web App] --> R
|
|
18
|
+
C[Video File] --> U[Upload]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
subgraph DiscoveryLab
|
|
22
|
+
R --> P[Process]
|
|
23
|
+
U --> P
|
|
24
|
+
P --> AI[AI Analysis]
|
|
25
|
+
AI --> O[OCR + Features]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
subgraph Output
|
|
29
|
+
O --> E1[Screenshots]
|
|
30
|
+
O --> E2[GIF / MP4]
|
|
31
|
+
O --> E3[Test Reports]
|
|
32
|
+
end
|
|
46
33
|
```
|
|
47
34
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Via npm (Manual)
|
|
35
|
+
## Quick Start
|
|
51
36
|
|
|
52
37
|
```bash
|
|
53
38
|
npm install -g @veolab/discoverylab
|
|
39
|
+
discoverylab install # configures Claude Code MCP
|
|
40
|
+
discoverylab serve # opens web UI
|
|
54
41
|
```
|
|
55
42
|
|
|
56
|
-
|
|
57
|
-
```json
|
|
58
|
-
{
|
|
59
|
-
"mcpServers": {
|
|
60
|
-
"discoverylab": {
|
|
61
|
-
"command": "npx",
|
|
62
|
-
"args": ["-y", "@veolab/discoverylab@latest", "mcp"]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Via Bun (Faster)
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
bun add -g @veolab/discoverylab
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Then add to your `~/.claude.json`:
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"mcpServers": {
|
|
78
|
-
"discoverylab": {
|
|
79
|
-
"command": "bunx",
|
|
80
|
-
"args": ["@veolab/discoverylab", "mcp"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Usage
|
|
87
|
-
|
|
88
|
-
### Skills (Slash Commands)
|
|
89
|
-
|
|
90
|
-
After installing the plugin, use these skills in Claude Code:
|
|
91
|
-
|
|
92
|
-
| Skill | Description |
|
|
93
|
-
|-------|-------------|
|
|
94
|
-
| `/discoverylab:open-ui` | Open the DiscoveryLab web interface |
|
|
95
|
-
| `/discoverylab:quick-capture` | Quickly capture iOS/Android emulator screen |
|
|
96
|
-
| `/discoverylab:mobile-test` | Full mobile testing workflow with Maestro |
|
|
97
|
-
| `/discoverylab:web-test` | Web testing workflow with Playwright |
|
|
98
|
-
| `/discoverylab:generate-assets` | Generate marketing assets from screenshots |
|
|
99
|
-
| `/discoverylab:task-hub` | Manage links, requirements and test maps |
|
|
43
|
+
## Features
|
|
100
44
|
|
|
101
|
-
|
|
45
|
+
| Feature | Description |
|
|
46
|
+
|---------|-------------|
|
|
47
|
+
| **Screen Capture** | Record iOS/Android emulators or web apps |
|
|
48
|
+
| **Maestro Testing** | Automated mobile app testing with screenshots |
|
|
49
|
+
| **Playwright Testing** | Web testing using your installed Chrome |
|
|
50
|
+
| **AI Analysis** | OCR, feature detection, smart summaries |
|
|
51
|
+
| **Export** | PNG, GIF, MP4 with professional quality |
|
|
52
|
+
| **Task Hub** | Jira, Notion, Figma, GitHub integration |
|
|
102
53
|
|
|
103
|
-
|
|
104
|
-
# Start localhost UI
|
|
105
|
-
discoverylab serve
|
|
54
|
+
## Skills
|
|
106
55
|
|
|
107
|
-
|
|
108
|
-
discoverylab analyze video.mp4
|
|
56
|
+
After installing, use these in Claude Code:
|
|
109
57
|
|
|
110
|
-
# Capture emulator
|
|
111
|
-
discoverylab capture --emulator ios
|
|
112
58
|
```
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
59
|
+
/discoverylab:open-ui → Open web interface
|
|
60
|
+
/discoverylab:quick-capture → Capture emulator screen
|
|
61
|
+
/discoverylab:mobile-test → Mobile testing with Maestro
|
|
62
|
+
/discoverylab:web-test → Web testing with Playwright
|
|
116
63
|
```
|
|
117
|
-
# Basic usage
|
|
118
|
-
Use applab to analyze my app recording and generate marketing screenshots
|
|
119
|
-
|
|
120
|
-
# Task Hub integration
|
|
121
|
-
Add this Jira ticket to my project: https://company.atlassian.net/browse/PROJ-123
|
|
122
|
-
Generate requirements and test map from all my project links
|
|
123
|
-
Show me my test progress for the current project
|
|
124
|
-
|
|
125
|
-
# Recording
|
|
126
|
-
Start recording my iOS simulator
|
|
127
|
-
Run Maestro tests on my app
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Available MCP Tools
|
|
131
|
-
- **Projects**: `dlab.project.*` - Create, list, manage projects
|
|
132
|
-
- **Task Hub**: `dlab.taskhub.*` - Links, requirements, test maps
|
|
133
|
-
- **Recording**: `dlab.capture.*`, `dlab.maestro.*`, `dlab.playwright.*`
|
|
134
|
-
- **Export**: `dlab.notion.*`, `dlab.drive.*`, `dlab.jira.*`
|
|
135
64
|
|
|
136
65
|
## Requirements
|
|
137
66
|
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
## Platform Compatibility
|
|
144
|
-
|
|
145
|
-
| Feature | macOS | Windows | Linux |
|
|
146
|
-
|---------|-------|---------|-------|
|
|
147
|
-
| Web UI | Full | Full | Full |
|
|
148
|
-
| Video Upload & Analysis | Full | Full | Full |
|
|
149
|
-
| Grid Composer | Full | Full | Full |
|
|
150
|
-
| PNG/Image Export | Full | Full | Full |
|
|
151
|
-
| Vision OCR (Apple Intelligence) | Full | Fallback* | Fallback* |
|
|
152
|
-
| iOS Simulator Capture | Full | N/A | N/A |
|
|
153
|
-
| Android Emulator Capture | Full | Full | Full |
|
|
154
|
-
| Playwright Web Testing | Full | Full | Full |
|
|
155
|
-
| Maestro Mobile Testing | Full | Full | Full |
|
|
156
|
-
|
|
157
|
-
*Fallback: Uses Tesseract.js for OCR when Apple Vision is unavailable.
|
|
158
|
-
|
|
159
|
-
### macOS (Recommended)
|
|
160
|
-
Full functionality including iOS Simulator capture and Apple Intelligence Vision OCR.
|
|
161
|
-
|
|
162
|
-
### Windows / Linux
|
|
163
|
-
Most features work with some limitations:
|
|
164
|
-
- iOS Simulator capture requires macOS
|
|
165
|
-
- Vision OCR falls back to Tesseract.js
|
|
166
|
-
- Android Emulator and Playwright work normally
|
|
167
|
-
|
|
168
|
-
## API Endpoints
|
|
169
|
-
|
|
170
|
-
### Task Hub Endpoints
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
PUT /api/projects/:id/links - Update project links (legacy + taskHubLinks)
|
|
174
|
-
POST /api/mcp/fetch - Fetch metadata from a single URL
|
|
175
|
-
POST /api/mcp/fetch-batch - Fetch metadata from multiple URLs
|
|
176
|
-
POST /api/ai/generate-task-info - Generate requirements and test map from links
|
|
177
|
-
POST /api/projects/sync-orphans - Sync orphan directories from disk to database
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Recording Endpoints
|
|
181
|
-
|
|
182
|
-
```
|
|
183
|
-
POST /api/mobile/record/start - Start Maestro mobile recording
|
|
184
|
-
POST /api/mobile/record/stop - Stop and process mobile recording
|
|
185
|
-
POST /api/web/record/start - Start Playwright web recording (uses user's Chrome)
|
|
186
|
-
POST /api/web/record/stop - Stop and process web recording
|
|
187
|
-
DELETE /api/recordings/:id - Delete a recording with cascade cleanup
|
|
188
|
-
```
|
|
67
|
+
- Node.js 20+
|
|
68
|
+
- FFmpeg (for video/GIF export)
|
|
69
|
+
- Maestro CLI (optional)
|
|
70
|
+
- Playwright (optional)
|
|
189
71
|
|
|
190
|
-
|
|
72
|
+
## Platform Support
|
|
191
73
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
## Documentation
|
|
201
|
-
|
|
202
|
-
See [CLAUDE.md](./CLAUDE.md) for Claude Code specific instructions.
|
|
74
|
+
| | macOS | Windows | Linux |
|
|
75
|
+
|---|:---:|:---:|:---:|
|
|
76
|
+
| Web UI | ✓ | ✓ | ✓ |
|
|
77
|
+
| iOS Capture | ✓ | — | — |
|
|
78
|
+
| Android Capture | ✓ | ✓ | ✓ |
|
|
79
|
+
| Web Recording | ✓ | ✓ | ✓ |
|
|
80
|
+
| Apple Vision OCR | ✓ | — | — |
|
|
203
81
|
|
|
204
82
|
## License
|
|
205
83
|
|
|
206
|
-
MIT
|
|
207
|
-
|
|
208
|
-
## Credits
|
|
209
|
-
|
|
210
|
-
Built with:
|
|
211
|
-
- Three.js (3D mockups)
|
|
212
|
-
- Remotion (video rendering)
|
|
213
|
-
- Apple Vision & NaturalLanguage frameworks
|
|
214
|
-
- Claude MCP SDK
|
|
84
|
+
MIT
|