How storytold/artcraft-services works
ArtCraft Services is a Rust and TypeScript platform for creative-media applications. A typical user submits an authenticated generation request through a web client; the API checks access and credits, estimates cost, and submits provider-specific work. Webhooks or workers handle completion, persist outputs and job/media metadata, and clients poll status and retrieve media. The graph also preserves the documented programmatic API and shared query/client layers. Relationships are based on README statements; source excerpts are limited, so unsampled implementation details are not inferred.
Main entry points: storyteller_web storyteller-web · job Background workers · artcraft-webapp Web application · http_server HTTP handlers
Components 18
Clients and API
- Web application
frontend/apps/artcraft-webapp - TypeScript API
frontend/libs/api - API definitions
crates/api_clients/artcraft/artcraft_api_defs - Rust API client
crates/api_clients/artcraft/artcraft_client
HTTP service
- storyteller-web
crates/service/web/storyteller_web - HTTP handlers
crates/service/web/storyteller_web/src/http_server - Billing components
crates/service/plugins
Generation runtime
- Generation router
crates/api_clients/artcraft/artcraft_router - Generation providers
crates/api_clients - Background workers
crates/service/job
Persistence and media
- MySQL
- MySQL queries
crates/schema/database/mysql_queries - Redis
- Object storage
- Media results
crates/service/web/storyteller_web/src/http_server
Other components
- Application user
- API consumer
- CDN media URLs
Connections 22
- Application user → Web application: uses
- Web application → TypeScript API: calls
- API consumer → Rust API client: uses
- TypeScript API → storyteller-web: calls
- Rust API client → storyteller-web: calls
- storyteller-web → HTTP handlers: routes
crates/service/web/storyteller_web/src/http_server/deprecated_endpoints/conversion/enqueue_render_engine_scene_to_video_handler.rs - HTTP handlers → API definitions: uses types
- HTTP handlers → Billing components: checks credits
- HTTP handlers → Generation router: submits generation
- Generation router → Generation providers: adapts requests
- Generation providers → storyteller-web: sends webhooks
- Background workers → Generation providers: polls jobs
- storyteller-web → MySQL queries: uses queries
- Background workers → MySQL queries: uses queries
- MySQL queries → MySQL: reads and writes
- storyteller-web → Redis: uses caching and limits
- storyteller-web → Object storage: stores uploads
- Background workers → Object storage: stores outputs
- Background workers → Media results: registers results
- storyteller-web → Media results: serves job status
crates/service/web/storyteller_web/src/http_server/deprecated_endpoints/conversion/enqueue_render_engine_scene_to_video_handler.rs - Web application → storyteller-web: polls status
- Web application → CDN media URLs: loads media