Golast Dicts / Architecture
Golast 1.0 — Codename Tiramisù. This page describes what the repository builds today, how its components connect, and where the prototype still has deliberate limits.
Read the Golast 1.0 release notes for the version overview. The version name identifies the project's first documented milestone; component package manifests still maintain their own versions.
| Area | Repository path | Role | Current boundary |
|---|---|---|---|
| Browser client | web/ | Experience discovery, account screens, Studio, and a WebGL scene preview. | It is not a complete real-time game runtime. |
| HTTP API | api/ | Accounts, experience listings, scene data, likes, and launch tickets. | Uses local LowDB JSON storage for this prototype. |
| Desktop packaging | goplauncher/ | Electron launchers and platform-specific application packages. | Project bundles describe local tasks; they are not encrypted. |
| Native runtime | src/ | Go scene runner, C++ world core, C ABI, and script VM integration. | World and gameplay APIs remain intentionally small. |
| Static handbook | static/ | Project introduction, release notes, and contributor documentation. | Published separately from the interactive web application. |
Tiramisù is the first project version name used by this handbook. It brings the web client, Fastify API, Go/C++ native foundation, Goa scripting facade, and Electron packaging into one repository. The name is a milestone label, not a claim that every subsystem is feature-complete or production-certified.
Each component can be built and checked independently. The top-level release workflow validates the web and API, then builds desktop packages on their respective operating systems. Native CMake builds fetch a pinned Luau revision; Lua 5.5.1 is kept in the repository under vendors/lua_5.5.1/.
web/ is a React application built with Vite. Its pages cover sign-in, discovery, experience details, Studio scene editing, and the browser play/preview flow. The API client uses VITE_API_URL when configured and otherwise targets the local development API.
Studio creates editable scenes from templates and displays them with Three.js/WebGL. It generates procedural surface textures in the browser, uses standard Three.js materials, and provides orbit controls, selection, and shadows. Shader feature flags are restricted boolean build-time settings: they can toggle bump maps or shader diagnostics, but cannot provide or evaluate arbitrary shader source.
Published scenes are validated data. The API does not execute uploaded Lua, Luau, JavaScript, or native code as part of scene publication. The current native world model focuses on a small set of basic shapes; the browser editor and C++ model are not yet a complete simulator with terrain, joints, networking, or a full physics system.
api/ is a Fastify service. Its routes handle account registration and login, experience listings, validated scene content, likes, launch tickets, and moderation-related responses. Passwords are hashed with bcrypt and authenticated sessions use JWTs. LowDB stores development data in api/db.json; this is convenient for a local prototype, not a substitute for a production database deployment.
Keep secrets in an ignored .env file, use a unique JWT secret, and do not publish credentials or personal data in a scene, project bundle, or static page. Rate limits and input validation reduce common mistakes, but do not by themselves make a public deployment secure.
The native project is under src/. The Go command-line runtime reads scene JSON and uses cgo to call the C++ world API. The world core validates basic part data and offers bounds and point-query operations. GolastEngine, GolastSecurity, and GolastLuau are CMake-built native libraries; their exact file extensions depend on the target operating system.
Goa presents one C API with two explicit script dialects:
lua.c and luac.c command-line entry points.A script selects lua55 or luau; the grammars are not merged, so one script cannot mix syntax from both dialects. Both backends restrict unsafe standard-library access and apply source, memory, and instruction limits. This is a small embedded scripting foundation, not a drop-in implementation of Roblox services such as Workspace, Players, or DataStoreService.
The C and C++ public headers are src/include/golast.h and src/include/golast.hpp. They expose lookups into the part-size and color catalog in src/include/studioDetails.hpp; the C API also reports its ABI version. asm/api.asm provides the version function for MinGW x86/x64 builds, with a C++ fallback for other toolchains. A Rust FFI scaffold is present under rust/goa-bridge/; it is groundwork, not a production Rust runtime.
goplauncher/ contains two Electron entry points: GopLauncher opens trusted .gle project bundles, while Golast Desktop packages the browser client, local API, and native files together. A bundle is compressed and encoded rather than encrypted. The launcher shows the requested local tasks and asks for confirmation before starting them; only open bundles you trust.
Automated macOS packages are unsigned unless signing credentials are configured. Public macOS distribution requires Developer ID signing and notarization. Linux and Windows packages also need platform-specific testing on their target systems before broad distribution.
Do not treat client-side checks as a security authority. The native signature-verification API checks the named files supplied by the application on Windows; it does not enumerate unrelated process modules, collect hardware identifiers, or silently report users. The non-Windows implementation reports that this Windows-specific check is unsupported.
Goa removes selected unsafe globals and limits execution resources, but embedding a scripting VM still requires careful review whenever new APIs, libraries, or host callbacks are exposed. Avoid giving untrusted scripts filesystem, process, network, or unrestricted native access. Shader flags similarly accept only a small allowlist of literal booleans and never load shader text from a user-controlled source.
npm ci, npm test, npm run lint, and npm run build from web/.npm ci, npm test, and npm run build from api/.src/CMakeLists.txt with CMake and a C++17 toolchain. Luau is fetched at the pinned revision during configuration.src/ with cgo enabled and a working C/C++ toolchain.dist:golast:* scripts from goplauncher/; build on the operating system being packaged.A successful web build does not verify native VM execution, platform installers, signing, or GPU behavior. Run the relevant tests on each target platform and report anything that could not be exercised.