Skip to content

five-on-it / apps/api/src/artifacts

apps/api/src/artifacts ​

Built games by the hash of their content (TECHNICAL_SPECS §9.10): a build that passes stores its artifact (the level and the game document, @foi/protocol's GameArtifact) under the SHA-256 of its JSON, game servers fetch it by that hash to open a room, and the same game built twice is stored once. Beside them, the levels' previews (PNG pictures a build makes, @foi/worker's preview.ts), by the hash of their bytes. Kept in memory (the tests), in a folder (local development) or in an S3 bucket (s3.ts, the Compose stack).

Interfaces ​

Variables ​

Functions ​