{"id":51154438,"url":"https://github.com/atyrode/factorio-gui-web-editor","last_synced_at":"2026-06-26T09:03:24.509Z","repository":{"id":365799097,"uuid":"1273787667","full_name":"atyrode/factorio-gui-web-editor","owner":"atyrode","description":"Browser-based Factorio GUI spec and prototype editor","archived":false,"fork":false,"pushed_at":"2026-06-19T00:41:36.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-19T01:06:39.190Z","etag":null,"topics":["factorio","gui","web-editor"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atyrode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-18T21:51:29.000Z","updated_at":"2026-06-18T23:02:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/atyrode/factorio-gui-web-editor","commit_stats":null,"previous_names":["atyrode/factorio-gui-web-editor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/atyrode/factorio-gui-web-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Ffactorio-gui-web-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Ffactorio-gui-web-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Ffactorio-gui-web-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Ffactorio-gui-web-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atyrode","download_url":"https://codeload.github.com/atyrode/factorio-gui-web-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Ffactorio-gui-web-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34809886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["factorio","gui","web-editor"],"created_at":"2026-06-26T09:03:23.629Z","updated_at":"2026-06-26T09:03:24.502Z","avatar_url":"https://github.com/atyrode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Factorio GUI Web Editor\n\nA browser-based lab for designing Factorio-style GUI layouts before writing Lua.\n\nThe current app is intentionally bare. It starts with an empty canvas and can\ncreate one Factorio-like window shell with a title bar, drag-handle strip, and\nempty body. There is no bundled example project or fixture data.\n\n## Try It Locally\n\n```sh\nnpm install\nnpx playwright install chromium\nnpm run dev\n```\n\nThen open:\n\n```text\nhttp://127.0.0.1:5173/\n```\n\n## What Exists Now\n\n- React/Vite browser app with an empty canvas.\n- A minimal window creator with editable title text.\n- A structured seed GUI model shared by preview, inspector, and Lua output.\n- A one-click local Factorio preview mod export from the same Lua output.\n- A `/style-atlas` route that renders reusable GUI atoms for visual review.\n- Header navigation with styled in-app pages rendered from the project\n  Markdown docs, plus an Editor tab to return to the canvas.\n- Factorio-inspired local CSS token layer split by base, layout, GUI atoms,\n  editor, docs, and atlas surfaces.\n- Stable anchors for the editor canvas and generated window shell.\n- Structural checks for required files, anchors, and forbidden copied Factorio\n  asset payloads.\n\n## Project Shape\n\n```text\nindex.html                     Vite app entry point\nsrc/App.jsx                    Route orchestration\nsrc/components/                Strictly scoped React components\nsrc/docs.js                    Markdown-backed document route registry\nsrc/factorioModel.js           Structured Factorio GUI seed model and inspector rows\nsrc/factorioExport.js          Lua export projection from the GUI model\nsrc/factorioModExport.js       Factorio preview mod zip projection from the Lua export\nsrc/main.jsx                   React mount and stylesheet import\nsrc/styles.css                 Stylesheet entry point\nsrc/styles/                    Split Factorio-inspired local style layers\ndocs/spec-factory.md           Workflow for writing agent-readable GUI specs\ndocs/model-schema.md           Shared GUI model and inspector projection notes\ndocs/factorio-mod-export.md    Local Factorio preview mod export workflow\ndocs/roadmap.md                Builder/shared-renderer roadmap\ndocs/factorio-style-sources.md Style/source research notes\nscripts/check.sh               Local validation\nscripts/copy-static-docs.mjs   Copies Markdown docs into production builds\ntests/browser/                 Browser geometry regression tests\n```\n\n## Public Dev Mode\n\nThe production compose file serves a static Caddy bundle. For development on\n`labtorio.tyrode.dev`, run the Vite override:\n\n```sh\ndocker compose -f compose.yaml -f compose.dev.yaml up -d\n```\n\nThe override keeps the same internal `labtorio:8080` target used by the edge\nproxy, but serves Vite with HMR configured for\n`wss://labtorio.tyrode.dev/@vite-hmr`.\nIt stores container `node_modules` and Vite cache data in Docker named volumes\nso hot reload does not leave host checkout files owned by the container user.\nPublic deployments require Basic Auth credentials in a local `.env`; see\n[docs/hosting.md](docs/hosting.md) for the `.env` shape and edge proxy\nboundary.\n\n## Design Direction\n\nThis should not become a freeform pixel editor. Factorio GUI layout is based on\nframes, flows, tables, scroll panes, sprite buttons, labels, checkboxes, styles,\nstretch flags, and fixed-size constraints. A useful editor must preserve those\nconstraints rather than letting browser CSS become the source of truth.\n\nAccepted future directions:\n\n- create and configure Factorio GUI primitives;\n- constrained layout variants;\n- component reordering;\n- density and bounded-size tuning;\n- JSON layout-model export;\n- Markdown spec diff export;\n- Lua skeleton export with stable anchors and TODO behavior hooks;\n- local Factorio preview mod export for GUI parity checks;\n- graphical Factorio style-dump imports for script-visible `LuaGuiElement` and\n  `LuaStyle` fields;\n- style-atlas review against official site references and in-game `Ctrl+F6`\n  captures;\n- eventual shared model for browser preview, Lua structure, and read-only web\n  demos where feasible.\n\nRejected first-pass directions:\n\n- arbitrary x/y dragging;\n- arbitrary nested boxes with no Factorio primitive equivalent;\n- generated Lua that pretends behavior wiring is complete;\n- vendoring Wube CSS, minified page styles, or Factorio image assets;\n- bundled domain examples in the editor core.\n\n## Sources\n\nAuthoritative behavior should come from official Factorio documentation:\n\n- \u003chttps://lua-api.factorio.com/latest/\u003e\n- \u003chttps://lua-api.factorio.com/latest/classes/LuaGuiElement.html\u003e\n- \u003chttps://lua-api.factorio.com/latest/classes/LuaStyle.html\u003e\n- \u003chttps://lua-api.factorio.com/latest/concepts/GuiElementType.html\u003e\n\nHigh-value style and architecture references:\n\n- \u003chttps://man.sr.ht/~raiguard/factorio-gui-style-guide/\u003e\n- \u003chttps://mods.factorio.com/mod/flib\u003e\n- \u003chttps://mods.factorio.com/mod/EditorExtensions\u003e\n- \u003chttps://mods.factorio.com/mod/Krastorio2\u003e\n- \u003chttps://codeberg.org/raiguard\u003e\n- \u003chttps://github.com/ClaudeMetz/UntitledGuiGuide/wiki\u003e\n- \u003chttps://github.com/JanSharp/FactorioGUIEditor\u003e\n\nUse public references to derive local tokens and constraints. Do not copy\ncopyrighted Wube assets into this repository.\n\n## Validation\n\n```sh\nscripts/check.sh\n```\n\nThe check builds the app, runs browser geometry regressions, verifies layout\ntree behavior, and runs structural source/anchor checks. Browser tests protect\nobjective layout contracts; they do not replace human visual review.\n\n## Factorio Preview Mod\n\nAfter creating a Window, use `Download mod` in the Lua Output panel to download\na local `labtorio_gui_preview_0.1.0.zip`. Copy it to the Factorio mods\ndirectory and enable it to compare the current browser layout against the\nin-game GUI. See [docs/factorio-mod-export.md](docs/factorio-mod-export.md).\n\n## Hosting\n\nThe app can run as an internal Docker service behind a shared Caddy edge proxy.\nThe Docker image builds the React app and serves the static bundle through\nCaddy. See [docs/hosting.md](docs/hosting.md) for the `labtorio.tyrode.dev`\ndeployment shape and the reason this repository does not bind host ports `80`\nor `443`.\n\n## License\n\nNo license has been selected yet. Treat the repository as source-available until\na license is explicitly added.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatyrode%2Ffactorio-gui-web-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatyrode%2Ffactorio-gui-web-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatyrode%2Ffactorio-gui-web-editor/lists"}