@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 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
- # AppLab Discovery
2
-
3
- > AI-Powered App Testing & Marketing Asset Generator
4
-
5
- A localhost-first tool for developers that combines automated testing, AI analysis, and marketing asset generation. Distributed as a Claude Code Plugin (MCP Server).
6
-
7
- ![AppLab Discovery](assets/applab-discovery.jpeg)
8
-
9
- ## Features
10
-
11
- ### Core Features
12
- - **Video Analysis** - Extract frames, OCR text, detect features using Apple Intelligence
13
- - **3D Mockups** - Professional device mockups (iPhone, Android, Browser)
14
- - **Text Effects** - Behind-object, title, subtitle overlays
15
- - **Screen Capture** - Record emulators, windows, or web apps
16
- - **Maestro Integration** - Automated mobile app testing
17
- - **Playwright Integration** - Automated web app testing with recording (uses user's Chrome)
18
- - **Export** - PNG, MP4, GIF with professional quality
19
-
20
- ### Task Hub
21
- Centralized task management with external tool integration:
22
- - **Multiple Links** - Add multiple Jira, Notion, Figma, and GitHub links per project
23
- - **MCP Metadata Fetch** - Automatically extract ticket keys, page IDs, file info from URLs
24
- - **AI-Generated Requirements** - Auto-generate requirements from linked sources
25
- - **Test Map** - AI-generated test checklist with progress tracking
26
- - **Status Tracking** - Visual indicators for task progress
27
-
28
- ### LLM Provider Configuration
29
- Flexible AI backend with multiple provider support:
30
- - **Anthropic API** - Use your own API key for Claude models
31
- - **OpenAI API** - GPT-4/5 models support
32
- - **Ollama** - Local LLM support (llama3, mistral, etc.)
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
+ ![Node.js](https://img.shields.io/badge/Node.js-20%2B-brightgreen?style=flat-square)
4
+ [![npm](https://img.shields.io/npm/v/@veolab/discoverylab.svg?style=flat-square)](https://www.npmjs.com/package/@veolab/discoverylab)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](https://opensource.org/licenses/MIT)
6
+
7
+ > AI-powered app testing & marketing asset generator. A Claude Code plugin.
8
+
9
+ ![DiscoveryLab](assets/applab-discovery.jpeg)
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
- The MCP server is automatically configured when you install via the marketplace.
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
- Then add to your `~/.claude.json`:
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
- ### CLI Usage
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
- ```bash
104
- # Start localhost UI
105
- discoverylab serve
54
+ ## Skills
106
55
 
107
- # Analyze a video
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
- ### Natural Language with Claude
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
- - **Node.js 20+**
139
- - **FFmpeg** (for video export)
140
- - **Maestro CLI** (optional, for mobile testing)
141
- - **Playwright** (optional, for web testing)
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
- ### LLM Settings Endpoints
72
+ ## Platform Support
191
73
 
192
- ```
193
- GET /api/settings/llm - Get LLM provider settings (API keys masked)
194
- POST /api/settings/llm - Update LLM provider settings
195
- GET /api/ollama/status - Check Ollama server status and available models
196
- GET /api/mobile-chat/providers - Get available chat providers for mobile testing
197
- POST /api/mobile-chat - Send chat message during mobile testing session
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 - See LICENSE file
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