How jvitor-hash/devlink works
DevLink is a client–programmer project marketplace. Users browse and filter projects, open project details, save opportunities, and collaborate through encrypted-session-key chat and offer negotiation; clients can create projects, manage work, and receive reviews and notifications. The React frontend reaches the Elysia API through HTTP and WebSockets, with PostgreSQL-backed domain services. The graph preserves documented project, saved-ticket, chat, notification, webhook, and scheduling capabilities. Many routes and frontend pages are represented at their exact tree paths; their internal wiring is not asserted where source excerpts were unavailable.
Main entry points: index.ts Elysia API · main.tsx React application · api_client.ts HTTP client · websocket.ts Chat WebSocket
Components 26
Frontend experience
- React application
FRONTEND/src/main.tsx - Project discovery
FRONTEND/src/pages/home/home.tsx - Project workspace
FRONTEND/src/pages/project_open/project_open.tsx - Project questionnaire
FRONTEND/src/pages/questionnaire/questionnaire.tsx - Account and settings
FRONTEND/src/pages/settings/settings.tsx - Notification center
FRONTEND/src/pages/notification_center/notification.tsx - HTTP client
FRONTEND/src/utils/api_client.ts - Project chat hook
FRONTEND/src/hooks/use_project_chat.ts - WebSocket client
FRONTEND/src/utils/websocket_client.ts
API and domain
- Elysia API
API/src/index.ts - Project routes
API/src/routes/v1/projects/index.ts - Project service
API/src/routes/v1/projects/service.ts - Saved opportunities
API/src/routes/v1/saved_ticket/service.ts - Work and review routes
API/src/routes/v1/ticket/index.ts - User routes
API/src/routes/v1/users/index.ts - Notification routes
API/src/routes/v1/notification/index.ts - Webhook routes
API/src/routes/v1/webhook/index.ts - Message service
API/src/routes/v1/message/service.ts
Chat and events
- Chat WebSocket
API/src/modules/websocket.ts - Notification WebSocket
API/src/modules/websocket_notifications.ts - Background scheduler
API/src/modules/scheduler.ts - Notification outbox
API/src/modules/notification_outbox.ts - Webhook delivery
API/src/modules/webhook_delivery.ts
Persistence
- PostgreSQL
- Domain schemas
API/src/database/schema/project_schema.ts
Other components
- Marketplace users
Connections 38
- Marketplace users → React application: use
FRONTEND/src/main.tsx - React application → Project discovery: renders
- React application → Project workspace: renders
- React application → Project questionnaire: renders
- React application → Account and settings: renders
- React application → Notification center: renders
- Project discovery → HTTP client: requests data
- Project workspace → HTTP client: requests data
- Project questionnaire → HTTP client: submits project
- Account and settings → HTTP client: requests data
- Notification center → HTTP client: loads notifications
- Project workspace → Project chat hook: uses
- Project chat hook → WebSocket client: uses
- HTTP client → Elysia API: HTTP requests
- WebSocket client → Chat WebSocket: WebSocket frames
- Elysia API → Project routes: registers
API/src/index.ts - Elysia API → Notification routes: registers
API/src/index.ts - Elysia API → Webhook routes: registers
API/src/index.ts - Elysia API → Chat WebSocket: registers
API/src/index.ts - Elysia API → Notification WebSocket: registers
API/src/index.ts - Elysia API → Background scheduler: starts
API/src/index.ts - Project routes → Project service: delegates
- Project service → Saved opportunities: reads saved IDs
API/src/routes/v1/projects/service.ts - Chat WebSocket → Message service: creates messages
API/src/modules/websocket.ts - Saved opportunities → Notification outbox: publishes event
API/src/routes/v1/saved_ticket/service.ts - Chat WebSocket → Notification outbox: publishes event
API/src/modules/websocket.ts - Background scheduler → Notification outbox: drains and retries
API/src/modules/scheduler.ts - Background scheduler → Webhook delivery: fanout documented
- Project service → PostgreSQL: queries projects
API/src/routes/v1/projects/service.ts - Saved opportunities → PostgreSQL: reads and writes
API/src/routes/v1/saved_ticket/service.ts - Message service → PostgreSQL: persists messages
- Chat WebSocket → PostgreSQL: loads project and users
API/src/modules/websocket.ts - Background scheduler → PostgreSQL: sweeps project data
API/src/modules/scheduler.ts - Domain schemas → PostgreSQL: defines tables
- Work and review routes → Project service: domain coordination
- User routes → PostgreSQL: user operations
- Notification routes → Notification outbox: notification events
- Webhook routes → Webhook delivery: configures delivery