docspawner: hexagonal architecture

docspawner: hexagonal architecture An architecture diagram generated by Archify. Caller · any service · JSON over HTTP · Architecture component Caller any service · JSON over HTTP HTTP adapter · Fastify · JSON Schema · Swagger · adapter/in · driving · adapter/in/http HTTP adapter Fastify · JSON Schema · Swagger adapter/in/http RenderDocument · render(request) · core · application + domain · no I/O · port/in RenderDocument render(request) port/in Render service · the use case · core · application + domain · no I/O · service Render service the use case service Input check · own rules · size limits · core · application + domain · no I/O · service Input check own rules · size limits service Render slots · N at once · bounded queue · core · application + domain · no I/O · service Render slots N at once · bounded queue service Domain · request · result · errors · limits · core · application + domain · no I/O · domain Domain request · result · errors · limits domain TypstCompiler · compile(job) · core · application + domain · no I/O · port/out TypstCompiler compile(job) port/out Clock · now() · core · application + domain · no I/O · port/out Clock now() port/out Typst CLI adapter · temp folder · timeout · pinned packages · adapter/out · driven · adapter/out/typst Typst CLI adapter temp folder · timeout · pinned packages adapter/out/typst System clock · real time · adapter/out · driven · adapter/out/clock System clock real time adapter/out/clock POST /render render() implements 1 check 2 wait 3 compile() now() uses implements implements adapter/in · driving core · application + domain · no I/O adapter/out · driven Legend Driving adapter (in) Service (core logic) Domain (data) Driven adapter (out) Port (interface the core owns) Outside world