workspai 0.43.0
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 +624 -0
- package/contracts/agent-customization-pack.v1.json +229 -0
- package/contracts/analyze-last-run.v1.json +106 -0
- package/contracts/artifact-remediation-plan.v1.json +163 -0
- package/contracts/backend-import-stack-parity.snapshot.json +37 -0
- package/contracts/cli-log-event.v1.json +51 -0
- package/contracts/create-planner-capabilities.v1.json +251 -0
- package/contracts/doctor-project-evidence.v1.json +304 -0
- package/contracts/doctor-remediation-plan.v1.json +496 -0
- package/contracts/doctor-workspace-evidence.v1.json +315 -0
- package/contracts/extension-cli-compatibility.v1.json +26 -0
- package/contracts/infra-stack.v1.json +305 -0
- package/contracts/module-layout.v1.json +34 -0
- package/contracts/module-support.v1.json +20 -0
- package/contracts/pipeline-last-run.v1.json +80 -0
- package/contracts/release-readiness.v1.json +60 -0
- package/contracts/runtime-command-surface.v1.json +364 -0
- package/contracts/workspace-intelligence/agent-action-outcome.v1.json +38 -0
- package/contracts/workspace-intelligence/blocker-resolution.v1.json +65 -0
- package/contracts/workspace-intelligence/doctor-fix-result.v1.json +44 -0
- package/contracts/workspace-intelligence/fact-freshness.v1.json +58 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +115 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +142 -0
- package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +51 -0
- package/contracts/workspace-intelligence/workspace-dependency-graph.v1.json +152 -0
- package/contracts/workspace-intelligence/workspace-explain.v1.json +31 -0
- package/contracts/workspace-intelligence/workspace-impact.v1.json +114 -0
- package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +40 -0
- package/contracts/workspace-intelligence/workspace-model-diff.v1.json +105 -0
- package/contracts/workspace-intelligence/workspace-model-snapshot.v1.json +36 -0
- package/contracts/workspace-intelligence/workspace-model.v1.json +135 -0
- package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +37 -0
- package/contracts/workspace-intelligence/workspace-skills-index.v1.json +27 -0
- package/contracts/workspace-intelligence/workspace-verify.v1.json +213 -0
- package/contracts/workspace-registry.v1.json +83 -0
- package/contracts/workspace-run-last.v1.json +112 -0
- package/data/modules-embeddings.json +16953 -0
- package/dist/analyze-5BU4QIPK.js +1 -0
- package/dist/artifact-remediation-plan-5GJWPPRS.js +3 -0
- package/dist/autopilot-release-QYUOVB26.js +1 -0
- package/dist/chunk-22DT744Z.js +1 -0
- package/dist/chunk-2E6WGUN6.js +1 -0
- package/dist/chunk-2FIX2MDC.js +1 -0
- package/dist/chunk-3KXW53QI.js +1 -0
- package/dist/chunk-3ZK2GU7C.js +1 -0
- package/dist/chunk-4KUIFXHM.js +5 -0
- package/dist/chunk-54XJNLYC.js +13 -0
- package/dist/chunk-5SWNSJGW.js +1 -0
- package/dist/chunk-5XATWNME.js +1 -0
- package/dist/chunk-753LOKFZ.js +2 -0
- package/dist/chunk-7YHK5NM3.js +2 -0
- package/dist/chunk-A5FBGRJA.js +1 -0
- package/dist/chunk-AAKUNWPR.js +78 -0
- package/dist/chunk-AFSZHLQT.js +1 -0
- package/dist/chunk-AQ4XZZC6.js +1 -0
- package/dist/chunk-CVTCPPEF.js +1 -0
- package/dist/chunk-DNAY5ALC.js +1 -0
- package/dist/chunk-EWYYLJQY.js +2 -0
- package/dist/chunk-GSWPGELT.js +2 -0
- package/dist/chunk-GZTYAEWX.js +1 -0
- package/dist/chunk-HTYMXMQM.js +1 -0
- package/dist/chunk-IBJEQHJR.js +205 -0
- package/dist/chunk-ICGWHIMK.js +1 -0
- package/dist/chunk-JEI6BTZI.js +3 -0
- package/dist/chunk-JHC6SCJC.js +1 -0
- package/dist/chunk-LO4C4VXR.js +4 -0
- package/dist/chunk-LPZFK3Y6.js +920 -0
- package/dist/chunk-LUP4U6EE.js +1 -0
- package/dist/chunk-LYC6AIF2.js +2 -0
- package/dist/chunk-LZQNVH7D.js +1 -0
- package/dist/chunk-NAAQMSO3.js +1 -0
- package/dist/chunk-NFUXULIF.js +1 -0
- package/dist/chunk-OCGZNSOE.js +1 -0
- package/dist/chunk-OJEWQO3Z.js +33 -0
- package/dist/chunk-OL64GWQC.js +9 -0
- package/dist/chunk-PI5KUXDA.js +7 -0
- package/dist/chunk-PYCJWW4B.js +1 -0
- package/dist/chunk-RE773WOX.js +13 -0
- package/dist/chunk-RO73VVHW.js +2 -0
- package/dist/chunk-S5KTATOU.js +1 -0
- package/dist/chunk-SI3AQKIP.js +1 -0
- package/dist/chunk-T3GJ7YVG.js +1 -0
- package/dist/chunk-T6OR6YOI.js +2 -0
- package/dist/chunk-VRDF2J46.js +653 -0
- package/dist/chunk-VZKSNUEE.js +2 -0
- package/dist/chunk-WU4ZRRA5.js +4 -0
- package/dist/chunk-XEJD4KCV.js +33 -0
- package/dist/chunk-XZGVNGRB.js +1 -0
- package/dist/chunk-Y45WZR5N.js +5 -0
- package/dist/create-WRZO4HK2.js +1 -0
- package/dist/demo-kit-AJ5LIM5G.js +149 -0
- package/dist/doctor-MF3M3FS3.js +1 -0
- package/dist/dotnet-webapi-clean-IPY3MCGQ.js +425 -0
- package/dist/gofiber-standard-N5N3QGH3.js +1397 -0
- package/dist/gogin-standard-LAWQTBWL.js +1459 -0
- package/dist/imported-projects-registry-FOIE27WT.js +1 -0
- package/dist/index.d.ts +141 -0
- package/dist/index.js +454 -0
- package/dist/managed-agent-markers-AXUM75OE.js +8 -0
- package/dist/module-layout-NZ43RSC5.js +1 -0
- package/dist/pipeline-QCUHFWDY.js +5 -0
- package/dist/platform-capabilities-XAVU4HSM.js +1 -0
- package/dist/pythonRapidkitExec-3L3XJBSY.js +1 -0
- package/dist/springboot-standard-OZYF7ZM7.js +697 -0
- package/dist/workspace-PR6VZRBG.js +1 -0
- package/dist/workspace-agent-sync-KTYF3HQR.js +1 -0
- package/dist/workspace-archive-GCZNI44O.js +3 -0
- package/dist/workspace-context-QUTOP2XV.js +1 -0
- package/dist/workspace-contract-XUGMCUSQ.js +1 -0
- package/dist/workspace-explain-JEONEGZZ.js +1 -0
- package/dist/workspace-explain-contract-DNS2YEL7.js +1 -0
- package/dist/workspace-feedback-R6H4UFZB.js +1 -0
- package/dist/workspace-foundation-KGSV4E6D.js +1 -0
- package/dist/workspace-graph-2A5THUCI.js +1 -0
- package/dist/workspace-history-CGCK2DJI.js +1 -0
- package/dist/workspace-intelligence-QJGVL37U.js +1 -0
- package/dist/workspace-marker-SMBC3Z2Q.js +1 -0
- package/dist/workspace-mcp-serve-AK4MYEHQ.js +3 -0
- package/dist/workspace-model-PNXXOGPO.js +1 -0
- package/dist/workspace-python-engine-state-MTWIIZPY.js +2 -0
- package/dist/workspace-registry-summary-RUJE6RPH.js +1 -0
- package/dist/workspace-run-Y7YMUIHX.js +1 -0
- package/dist/workspace-verify-WSDUUTR5.js +1 -0
- package/dist/workspace-watch-AGPOJ74Q.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +440 -0
- package/docs/AI_EXAMPLES.md +419 -0
- package/docs/AI_FEATURES.md +460 -0
- package/docs/AI_QUICKSTART.md +245 -0
- package/docs/DEVELOPMENT.md +90 -0
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +170 -0
- package/docs/OPTIMIZATION_GUIDE.md +504 -0
- package/docs/PACKAGE_MANAGER_POLICY.md +25 -0
- package/docs/README.md +125 -0
- package/docs/SECURITY.md +63 -0
- package/docs/SETUP.md +107 -0
- package/docs/UTILITIES.md +221 -0
- package/docs/WORKSPACE_MARKER_SPEC.md +276 -0
- package/docs/ci-workflows.md +59 -0
- package/docs/commands-reference.md +172 -0
- package/docs/config-file-guide.md +299 -0
- package/docs/contracts/ARTIFACT_CATALOG.md +333 -0
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +123 -0
- package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +138 -0
- package/docs/contracts/NAMING_AND_COEXISTENCE.md +60 -0
- package/docs/contracts/README.md +86 -0
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +98 -0
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +75 -0
- package/docs/contracts/rapidkit-cli-contracts.json +239 -0
- package/docs/create-planner-capabilities.md +81 -0
- package/docs/doctor-command.md +467 -0
- package/docs/examples/ci-agent-grounding.yml +65 -0
- package/docs/from-code-to-shared-understanding.md +45 -0
- package/docs/governance-policy.enterprise.example.json +40 -0
- package/docs/mirror-config.enterprise.example.json +60 -0
- package/docs/policies.workspace.example.yml +23 -0
- package/docs/workspace-operations.md +160 -0
- package/docs/workspace-run.md +104 -0
- package/package.json +179 -0
- package/rapidkit.config.example.cjs +62 -0
- package/scripts/check-agent-customization-drift.mjs +78 -0
- package/scripts/check-cli-resolution.cjs +72 -0
- package/scripts/enforce-package-manager.cjs +10 -0
- package/scripts/enterprise-package-smoke.mjs +463 -0
- package/scripts/prepack-enterprise.mjs +43 -0
- package/templates/generator.js +179 -0
- package/templates/kits/fastapi-ddd/README.md.j2 +117 -0
- package/templates/kits/fastapi-ddd/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-ddd/env.example.j2 +1 -0
- package/templates/kits/fastapi-ddd/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-ddd/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/__init__.py.j2 +11 -0
- package/templates/kits/fastapi-ddd/src/app/application/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/application/interfaces.py.j2 +43 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/health.py.j2 +14 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/notes.py.j2 +24 -0
- package/templates/kits/fastapi-ddd/src/app/config/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/health.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/note.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/notes.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/app/main.py.j2 +61 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/dependencies/__init__.py.j2 +19 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/router.py.j2 +10 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/health.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/notes.py.j2 +50 -0
- package/templates/kits/fastapi-ddd/src/app/shared/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/shared/result.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/cli.py.j2 +170 -0
- package/templates/kits/fastapi-ddd/src/main.py.j2 +35 -0
- package/templates/kits/fastapi-ddd/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/routing/__init__.py.j2 +13 -0
- package/templates/kits/fastapi-ddd/src/routing/health.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/src/routing/notes.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-ddd/tests/test_app_factory.py.j2 +22 -0
- package/templates/kits/fastapi-ddd/tests/test_health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/tests/test_notes.py.j2 +27 -0
- package/templates/kits/fastapi-standard/README.md.j2 +140 -0
- package/templates/kits/fastapi-standard/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-standard/env.example.j2 +1 -0
- package/templates/kits/fastapi-standard/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-standard/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/cli.py.j2 +171 -0
- package/templates/kits/fastapi-standard/src/main.py.j2 +66 -0
- package/templates/kits/fastapi-standard/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/routing/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-standard/src/routing/examples.py.j2 +71 -0
- package/templates/kits/fastapi-standard/src/routing/health.py.j2 +22 -0
- package/templates/kits/fastapi-standard/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-standard/tests/test_examples.py.j2 +29 -0
- package/templates/kits/fastapi-standard/tests/test_health.py.j2 +17 -0
- package/templates/kits/nestjs-standard/Dockerfile.j2 +41 -0
- package/templates/kits/nestjs-standard/README.md.j2 +134 -0
- package/templates/kits/nestjs-standard/docker-compose.yml.j2 +94 -0
- package/templates/kits/nestjs-standard/docs/README.md.j2 +15 -0
- package/templates/kits/nestjs-standard/env.example.j2 +18 -0
- package/templates/kits/nestjs-standard/eslint.config.cjs.j2 +9 -0
- package/templates/kits/nestjs-standard/jest.config.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/nest-cli.json.j2 +10 -0
- package/templates/kits/nestjs-standard/package.json.j2 +101 -0
- package/templates/kits/nestjs-standard/src/app.controller.ts.j2 +14 -0
- package/templates/kits/nestjs-standard/src/app.module.ts.j2 +26 -0
- package/templates/kits/nestjs-standard/src/app.service.ts.j2 +16 -0
- package/templates/kits/nestjs-standard/src/auth/auth.controller.ts.j2 +20 -0
- package/templates/kits/nestjs-standard/src/auth/auth.module.ts.j2 +13 -0
- package/templates/kits/nestjs-standard/src/auth/auth.service.ts.j2 +6 -0
- package/templates/kits/nestjs-standard/src/auth/entities/token.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/user.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/webauthn.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/config/configuration.ts.j2 +85 -0
- package/templates/kits/nestjs-standard/src/config/index.ts.j2 +2 -0
- package/templates/kits/nestjs-standard/src/config/validation.ts.j2 +21 -0
- package/templates/kits/nestjs-standard/src/examples/dto/create-note.dto.ts.j2 +11 -0
- package/templates/kits/nestjs-standard/src/examples/examples.controller.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/src/examples/examples.module.ts.j2 +10 -0
- package/templates/kits/nestjs-standard/src/examples/examples.service.ts.j2 +33 -0
- package/templates/kits/nestjs-standard/src/main.ts.j2 +53 -0
- package/templates/kits/nestjs-standard/src/modules/index.ts.j2 +25 -0
- package/templates/kits/nestjs-standard/test/app.controller.spec.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/test/app.e2e-spec.ts.j2 +60 -0
- package/templates/kits/nestjs-standard/test/examples.controller.spec.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/test/jest-e2e.json.j2 +15 -0
- package/templates/kits/nestjs-standard/tsconfig.build.json.j2 +12 -0
- package/templates/kits/nestjs-standard/tsconfig.json.j2 +26 -0
- package/workspai.config.example.cjs +62 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
# 🎯 AI Examples - Real-World Use Cases
|
|
2
|
+
|
|
3
|
+
Complete examples showing how to use Workspai AI for different scenarios.
|
|
4
|
+
|
|
5
|
+
## 📱 Example 1: Building a Social Media App
|
|
6
|
+
|
|
7
|
+
### Requirements
|
|
8
|
+
- User authentication with social login
|
|
9
|
+
- User profiles with photos
|
|
10
|
+
- Real-time notifications
|
|
11
|
+
- Content moderation
|
|
12
|
+
|
|
13
|
+
### Using AI to Find Modules
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Step 1: Authentication
|
|
17
|
+
$ npx workspai ai recommend "social login with Google Facebook Twitter OAuth"
|
|
18
|
+
|
|
19
|
+
📦 Recommended Modules:
|
|
20
|
+
|
|
21
|
+
1. Authentication Core ⭐
|
|
22
|
+
Complete authentication with OAuth 2.0, social providers
|
|
23
|
+
Match: 96.8% - Matches: auth, oauth, social, login
|
|
24
|
+
Category: auth
|
|
25
|
+
|
|
26
|
+
2. Users Core
|
|
27
|
+
User management with profiles, roles, permissions
|
|
28
|
+
Match: 91.2% - Matches: user, profile
|
|
29
|
+
Category: auth
|
|
30
|
+
Requires: authentication-core
|
|
31
|
+
|
|
32
|
+
3. Session Management
|
|
33
|
+
Secure session handling with Redis storage
|
|
34
|
+
Match: 85.4% - Matches: session, secure
|
|
35
|
+
Category: auth
|
|
36
|
+
Requires: authentication-core, redis-cache
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Step 2: File Storage for Photos
|
|
41
|
+
$ npx workspai ai recommend "image upload storage S3 with thumbnails"
|
|
42
|
+
|
|
43
|
+
📦 Recommended Modules:
|
|
44
|
+
|
|
45
|
+
1. Storage ⭐
|
|
46
|
+
File storage with S3, local filesystem, image processing
|
|
47
|
+
Match: 94.3% - Matches: storage, image, s3, upload
|
|
48
|
+
Category: infrastructure
|
|
49
|
+
|
|
50
|
+
2. Redis Cache
|
|
51
|
+
Redis caching for CDN URLs and metadata
|
|
52
|
+
Match: 78.1% - Matches: cache
|
|
53
|
+
Category: infrastructure
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Step 3: Real-time Notifications
|
|
58
|
+
$ npx workspai ai recommend "real-time push notifications websocket"
|
|
59
|
+
|
|
60
|
+
📦 Recommended Modules:
|
|
61
|
+
|
|
62
|
+
1. Notifications (if available)
|
|
63
|
+
Real-time notifications with WebSocket, push, email, SMS
|
|
64
|
+
Match: 95.7% - Matches: notification, realtime, websocket
|
|
65
|
+
Category: communication
|
|
66
|
+
|
|
67
|
+
2. Redis Cache
|
|
68
|
+
For pub/sub and message queuing
|
|
69
|
+
Match: 82.3% - Matches: redis, pubsub
|
|
70
|
+
Category: infrastructure
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Installation
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Install all recommended modules
|
|
77
|
+
npx workspai add module authentication-core users-core storage redis-cache
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## 💳 Example 2: Building a SaaS Platform
|
|
81
|
+
|
|
82
|
+
### Requirements
|
|
83
|
+
- User authentication
|
|
84
|
+
- Subscription billing (monthly/yearly)
|
|
85
|
+
- Payment processing
|
|
86
|
+
- Invoice generation
|
|
87
|
+
- Usage tracking
|
|
88
|
+
|
|
89
|
+
### Using AI
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Step 1: Authentication & Users
|
|
93
|
+
$ npx workspai ai recommend "user authentication with email password reset"
|
|
94
|
+
|
|
95
|
+
📦 Recommended Modules:
|
|
96
|
+
|
|
97
|
+
1. Authentication Core ⭐
|
|
98
|
+
Match: 97.2% - Matches: auth, email, password, user
|
|
99
|
+
|
|
100
|
+
2. Users Core
|
|
101
|
+
Match: 92.8% - Matches: user
|
|
102
|
+
Requires: authentication-core
|
|
103
|
+
|
|
104
|
+
3. Email
|
|
105
|
+
Match: 89.5% - Matches: email, password-reset
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Step 2: Subscription & Payments
|
|
110
|
+
$ npx workspai ai recommend "subscription billing monthly yearly Stripe webhooks"
|
|
111
|
+
|
|
112
|
+
📦 Recommended Modules:
|
|
113
|
+
|
|
114
|
+
1. Stripe Payment ⭐
|
|
115
|
+
Stripe integration with subscriptions, webhooks, customer portal
|
|
116
|
+
Match: 98.1% - Matches: stripe, subscription, billing, webhook
|
|
117
|
+
Category: payment
|
|
118
|
+
|
|
119
|
+
2. Email
|
|
120
|
+
For invoice emails and payment receipts
|
|
121
|
+
Match: 81.3% - Matches: email, receipt
|
|
122
|
+
Category: communication
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Step 3: Background Jobs for Usage Tracking
|
|
127
|
+
$ npx workspai ai recommend "background jobs async tasks Celery"
|
|
128
|
+
|
|
129
|
+
📦 Recommended Modules:
|
|
130
|
+
|
|
131
|
+
1. Celery ⭐
|
|
132
|
+
Celery integration for async tasks, scheduled jobs
|
|
133
|
+
Match: 96.4% - Matches: celery, background, async, jobs
|
|
134
|
+
Category: infrastructure
|
|
135
|
+
Requires: redis-cache
|
|
136
|
+
|
|
137
|
+
2. Redis Cache
|
|
138
|
+
Required for Celery broker and result backend
|
|
139
|
+
Match: 88.7% - Matches: redis, cache
|
|
140
|
+
Category: infrastructure
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Installation
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
npx workspai add module authentication-core users-core stripe-payment email celery redis-cache
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## 🛒 Example 3: Building an E-commerce Platform
|
|
150
|
+
|
|
151
|
+
### Requirements
|
|
152
|
+
- Product catalog with search
|
|
153
|
+
- Shopping cart
|
|
154
|
+
- Payment processing
|
|
155
|
+
- Order management
|
|
156
|
+
- Email notifications
|
|
157
|
+
- Inventory tracking
|
|
158
|
+
|
|
159
|
+
### Using AI
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# Step 1: Database with Search
|
|
163
|
+
$ npx workspai ai recommend "PostgreSQL database with full-text search"
|
|
164
|
+
|
|
165
|
+
📦 Recommended Modules:
|
|
166
|
+
|
|
167
|
+
1. PostgreSQL ⭐
|
|
168
|
+
PostgreSQL with SQLAlchemy, migrations, full-text search
|
|
169
|
+
Match: 95.3% - Matches: postgres, database, search
|
|
170
|
+
Category: database
|
|
171
|
+
|
|
172
|
+
2. Redis Cache
|
|
173
|
+
For caching product catalog and search results
|
|
174
|
+
Match: 84.2% - Matches: cache
|
|
175
|
+
Category: infrastructure
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Step 2: Payments & Orders
|
|
180
|
+
$ npx workspai ai recommend "payment checkout Stripe with order management"
|
|
181
|
+
|
|
182
|
+
📦 Recommended Modules:
|
|
183
|
+
|
|
184
|
+
1. Stripe Payment ⭐
|
|
185
|
+
Payment intents, checkout sessions, webhooks
|
|
186
|
+
Match: 97.8% - Matches: stripe, payment, checkout
|
|
187
|
+
Category: payment
|
|
188
|
+
|
|
189
|
+
2. Email
|
|
190
|
+
Order confirmations and shipping notifications
|
|
191
|
+
Match: 86.5% - Matches: email, notification
|
|
192
|
+
Category: communication
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Step 3: Background Jobs for Inventory
|
|
197
|
+
$ npx workspai ai recommend "background tasks for inventory sync cron"
|
|
198
|
+
|
|
199
|
+
📦 Recommended Modules:
|
|
200
|
+
|
|
201
|
+
1. Celery ⭐
|
|
202
|
+
Scheduled tasks for inventory updates
|
|
203
|
+
Match: 93.7% - Matches: celery, background, cron, scheduled
|
|
204
|
+
Category: infrastructure
|
|
205
|
+
Requires: redis-cache
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Installation
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
npx workspai add module db-postgres redis-cache stripe-payment email celery
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## 🏥 Example 4: Building a Healthcare API
|
|
215
|
+
|
|
216
|
+
### Requirements
|
|
217
|
+
- Secure authentication (HIPAA compliant)
|
|
218
|
+
- Patient records database
|
|
219
|
+
- Audit logging
|
|
220
|
+
- Encrypted file storage
|
|
221
|
+
- SMS notifications for appointments
|
|
222
|
+
|
|
223
|
+
### Using AI
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Step 1: Secure Authentication
|
|
227
|
+
$ npx workspai ai recommend "secure authentication HIPAA compliant audit logging"
|
|
228
|
+
|
|
229
|
+
📦 Recommended Modules:
|
|
230
|
+
|
|
231
|
+
1. Authentication Core ⭐
|
|
232
|
+
PBKDF2 hashing, secure sessions, audit logs
|
|
233
|
+
Match: 96.2% - Matches: auth, secure, audit
|
|
234
|
+
Category: auth
|
|
235
|
+
|
|
236
|
+
2. Session Management
|
|
237
|
+
Secure session rotation, device tracking
|
|
238
|
+
Match: 89.8% - Matches: session, secure, audit
|
|
239
|
+
Category: auth
|
|
240
|
+
Requires: authentication-core, redis-cache
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# Step 2: Database with Encryption
|
|
245
|
+
$ npx workspai ai recommend "PostgreSQL with encryption for sensitive data"
|
|
246
|
+
|
|
247
|
+
📦 Recommended Modules:
|
|
248
|
+
|
|
249
|
+
1. PostgreSQL ⭐
|
|
250
|
+
PostgreSQL with field-level encryption support
|
|
251
|
+
Match: 94.7% - Matches: postgres, database, encryption
|
|
252
|
+
Category: database
|
|
253
|
+
|
|
254
|
+
2. Storage
|
|
255
|
+
Encrypted file storage for medical records
|
|
256
|
+
Match: 87.3% - Matches: storage, encryption, file
|
|
257
|
+
Category: infrastructure
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
# Step 3: SMS Notifications
|
|
262
|
+
$ npx workspai ai recommend "SMS notifications Twilio appointment reminders"
|
|
263
|
+
|
|
264
|
+
📦 Recommended Modules:
|
|
265
|
+
|
|
266
|
+
1. SMS ⭐
|
|
267
|
+
Twilio SMS with templates and delivery tracking
|
|
268
|
+
Match: 98.5% - Matches: sms, twilio, notification
|
|
269
|
+
Category: communication
|
|
270
|
+
|
|
271
|
+
2. Celery
|
|
272
|
+
Schedule appointment reminders
|
|
273
|
+
Match: 85.4% - Matches: schedule, reminder
|
|
274
|
+
Category: infrastructure
|
|
275
|
+
Requires: redis-cache
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Installation
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
npx workspai add module authentication-core session-management db-postgres storage sms celery redis-cache
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## 🎮 Example 5: Building a Gaming Backend
|
|
285
|
+
|
|
286
|
+
### Requirements
|
|
287
|
+
- User accounts with avatars
|
|
288
|
+
- Leaderboards
|
|
289
|
+
- In-app purchases
|
|
290
|
+
- Real-time multiplayer
|
|
291
|
+
- Push notifications
|
|
292
|
+
|
|
293
|
+
### Using AI
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
# Step 1: User System
|
|
297
|
+
$ npx workspai ai recommend "user accounts with profiles avatars achievements"
|
|
298
|
+
|
|
299
|
+
📦 Recommended Modules:
|
|
300
|
+
|
|
301
|
+
1. Users Core ⭐
|
|
302
|
+
User profiles, custom fields, avatar URLs
|
|
303
|
+
Match: 95.8% - Matches: user, profile, avatar
|
|
304
|
+
Category: auth
|
|
305
|
+
Requires: authentication-core
|
|
306
|
+
|
|
307
|
+
2. Authentication Core
|
|
308
|
+
Required for user accounts
|
|
309
|
+
Match: 88.2% - Matches: auth, user, account
|
|
310
|
+
Category: auth
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
# Step 2: Leaderboards & Caching
|
|
315
|
+
$ npx workspai ai recommend "leaderboards rankings Redis sorted sets"
|
|
316
|
+
|
|
317
|
+
📦 Recommended Modules:
|
|
318
|
+
|
|
319
|
+
1. Redis Cache ⭐
|
|
320
|
+
Redis sorted sets for leaderboards, caching
|
|
321
|
+
Match: 97.3% - Matches: redis, leaderboard, ranking, cache
|
|
322
|
+
Category: infrastructure
|
|
323
|
+
|
|
324
|
+
2. Database (PostgreSQL/MongoDB)
|
|
325
|
+
Store persistent game data
|
|
326
|
+
Match: 84.6% - Matches: database, persistent
|
|
327
|
+
Category: database
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
# Step 3: In-App Purchases
|
|
332
|
+
$ npx workspai ai recommend "in-app purchases mobile payment Stripe"
|
|
333
|
+
|
|
334
|
+
📦 Recommended Modules:
|
|
335
|
+
|
|
336
|
+
1. Stripe Payment ⭐
|
|
337
|
+
Mobile payments, subscriptions, purchases
|
|
338
|
+
Match: 96.4% - Matches: stripe, payment, purchase, mobile
|
|
339
|
+
Category: payment
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Installation
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
npx workspai add module authentication-core users-core redis-cache stripe-payment db-mongodb
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
## 💡 Tips for Better Results
|
|
349
|
+
|
|
350
|
+
### 1. Combine Multiple Searches
|
|
351
|
+
|
|
352
|
+
Instead of one vague query, break it down:
|
|
353
|
+
|
|
354
|
+
❌ Bad:
|
|
355
|
+
```bash
|
|
356
|
+
npx workspai ai recommend "social media app"
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
✅ Good:
|
|
360
|
+
```bash
|
|
361
|
+
npx workspai ai recommend "user authentication social login"
|
|
362
|
+
npx workspai ai recommend "image upload storage S3"
|
|
363
|
+
npx workspai ai recommend "real-time notifications"
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### 2. Mention Specific Technologies
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
# Generic
|
|
370
|
+
npx workspai ai recommend "database"
|
|
371
|
+
|
|
372
|
+
# Specific (better results!)
|
|
373
|
+
npx workspai ai recommend "PostgreSQL database with async support"
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### 3. Describe Your Exact Use Case
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
# Vague
|
|
380
|
+
npx workspai ai recommend "payments"
|
|
381
|
+
|
|
382
|
+
# Specific (much better!)
|
|
383
|
+
npx workspai ai recommend "subscription payments with monthly billing and invoices"
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### 4. Use Natural Language
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
# Don't just list keywords
|
|
390
|
+
npx workspai ai recommend "auth jwt oauth redis"
|
|
391
|
+
|
|
392
|
+
# Describe what you're building
|
|
393
|
+
npx workspai ai recommend "I need authentication with JWT tokens and Redis sessions for my API"
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
## 🚀 Next Steps
|
|
397
|
+
|
|
398
|
+
After finding modules with AI:
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
# 1. Install modules
|
|
402
|
+
npx workspai add module <module-id-1> <module-id-2> ...
|
|
403
|
+
|
|
404
|
+
# 2. Configure modules
|
|
405
|
+
npx workspai modules configure <module-id>
|
|
406
|
+
|
|
407
|
+
# 3. Start development
|
|
408
|
+
npx workspai dev
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
## 📚 Learn More
|
|
412
|
+
|
|
413
|
+
- [AI Features Guide](AI_FEATURES.md) - Complete reference
|
|
414
|
+
- [AI Quick Start](AI_QUICKSTART.md) - Get started in 60 seconds
|
|
415
|
+
- [Technical Details](AI_DYNAMIC_INTEGRATION.md) - How it works
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
**Need help?** Open an issue: https://github.com/rapidkitlabs/workspai/issues
|