How cosc2408-team-1/ai-canva works
AI Canva is a collaborative visual workspace for building and running AI pipelines. Users create or join a board, place and connect boxes, provide inputs, then run workers whose outputs can feed downstream boxes or be saved, previewed, edited, or deployed. Additional product branches support gated SDLC artifacts and evidence-linked security assessments. The graph combines documented capabilities with relationships visible in sampled source; several box implementations and integrations were not sampled, so their internal call paths are omitted.
Main entry points: boardStore.ts AI box workers · app.ts HTTP service · App.tsx App shell · Canvas.tsx Pipeline canvas
Components 22
Board Workspace
- App shell
client/src/App.tsx - Pipeline canvas
client/src/components/Canvas.tsx - Box interactions
client/src/components/BoxNode.tsx - Board runtime
client/src/store/boardStore.ts - Live collaboration
client/src/lib/firestore.ts - Sign-in
client/src/lib/auth.ts
Pipeline Workers
- AI box workers
client/src/store/boardStore.ts - Repository mapping
client/src/lib/repo.ts - Code editing
client/src/lib/codeedit.ts - Live preview
client/src/components/SandpackPreview.tsx - Site deployment
client/src/lib/deploy.ts
Security and SDLC
- Gated SDLC
client/src/lib/sdlc.ts - Security assessment
client/src/lib/securityArtifacts.ts - ASVS retrieval
client/src/lib/asvsRetrieval.ts
Persistence and Services
- Firebase services
client/src/lib/firebase.ts - Client API
client/src/lib/api.ts - HTTP service
server/src/app.ts - AI provider
server/src/provider.ts - Repository service
server/src/repo.ts - here.now integration
server/src/herenow.ts - Firebase Storage
client/src/lib/storage.ts
Other components
- Board user
Connections 23
- Board user → App shell: uses
README.md - App shell → Sign-in: signs in
client/src/App.tsx - App shell → Board runtime: loads boards
client/src/App.tsx - Board user → Pipeline canvas: composes pipeline
README.md - Pipeline canvas → Box interactions: connects boxes
README.md - Box interactions → Board runtime: updates board
- Board runtime → AI box workers: runs boxes
client/src/store/boardStore.ts - Board runtime → Live collaboration: saves and syncs
client/src/store/boardStore.ts - Live collaboration → Firebase services: uses
client/src/lib/firestore.ts - Sign-in → Firebase services: authenticates with
client/src/lib/auth.ts - AI box workers → Client API: requests generation
client/src/store/boardStore.ts - AI box workers → Repository mapping: resolves repo input
client/src/store/boardStore.ts - AI box workers → Code editing: renders change set
client/src/store/boardStore.ts - AI box workers → Gated SDLC: applies gate rules
client/src/store/boardStore.ts - AI box workers → Security assessment: runs assessment boxes
client/src/store/boardStore.ts - Security assessment → ASVS retrieval: retrieves ASVS matches
- AI box workers → Live preview: previews generated code
- AI box workers → Site deployment: publishes prototypes
client/src/store/boardStore.ts - Client API → HTTP service: calls endpoints
- HTTP service → AI provider: generates content
server/src/app.ts - HTTP service → Repository service: fetches repo digest
server/src/app.ts - HTTP service → here.now integration: deploys site
server/src/app.ts - Board user → Firebase Storage: uploads documents and images
README.md