{"id":18084568,"url":"https://github.com/endel/gamebundler","last_synced_at":"2025-04-06T00:11:36.259Z","repository":{"id":137832949,"uuid":"482288346","full_name":"endel/gamebundler","owner":"endel","description":"[POC, abandoned] 🕹📦 A Web Game Compiler and Asset Bundler","archived":false,"fork":false,"pushed_at":"2022-12-01T17:08:33.000Z","size":1199,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:21:17.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://endel.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-16T15:19:30.000Z","updated_at":"2024-06-14T05:14:14.000Z","dependencies_parsed_at":"2023-04-17T05:35:35.963Z","dependency_job_id":null,"html_url":"https://github.com/endel/gamebundler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fgamebundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fgamebundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fgamebundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fgamebundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/gamebundler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415973,"owners_count":20935387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-31T15:07:12.961Z","updated_at":"2025-04-06T00:11:36.254Z","avatar_url":"https://github.com/endel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🕹📦 Web Game Compiler and Asset Bundler\n\n**💨 Vaporware alert**\n\n_This was just a naive experimentation of mine. It is not being actively worked on, but I decided to open-source in case somebody finds it useful. Perhaps this would work better as a set of vite plugins._\n\n- [See \"compile-time\" asset bundle here](https://github.com/endel/gamebundler/blob/master/packages/example/pixijs/assets.bundle.ts)\n- [See loading the bundle](https://github.com/endel/gamebundler/blob/master/packages/example/pixijs/index.ts#L5)\n\n---\n\nA modern build tool for crafting HTML5 games. Features compile-time asset building ~and industry standards asset optimization~ (it doesn't...). Built on top of [`esbuild`](https://esbuild.github.io/).\n\n\u003e **Warning**\n\u003e This is an experimental tool.  **Use at your own risk.**\n\n# TODO:\n\n- [x] Live-reload when `.bundle.ts` changed (must re-generate assets)\n- [ ] Generate manifest of each `.bundle`\n  - [ ] Remove unused assets when a new one is generated.\n  - [x] Cache mechanism to avoid re-generating assets without changes [devmode, optimization]\n- [ ] Integrate framework's loader system to allow end user to consume the asset [runtime, feature]\n  - [x] PIXI\n  - [ ] Phaser\n  - [ ] PlayCanvas\n  - [ ] Babylon.js\n  - [ ] THREE\n- [ ] Production mode (exclude .js/.css from dev)\n  - [ ] Minify assets\n  - [ ] Output file size stats\n- [ ] Image optimizations\n  - [ ] BASIS texture compression\n  - [ ] lossless compression\n  - [ ] lossy (many levels)\n- [ ] Support multiple image scale ratios (e.g. 0.5x, 2x, 3x, etc.)\n- [ ] Dynamically importing, loading, and using a `.bundle.ts`\n- [ ] Dynamically importing and executing code as \"game levels\"\n- [ ] Component-driven / Storybook / \"Playground\" (Single-component \"Playground\")\n\n**Import types**\n\n- WebGL Shaders (GLSL: glsl|wgsl|vert|frag|vs|fs)\n- Web GPU Shaders (WGSL)\n\n**Nice to have**\n\n- Built-in Dear ImGui integration\n\n## Usage\n\n```typescript\n// assets.bundle.ts\nimport bundle from \"@gamebundler/comptime\";\n\nexport const spritesheet = await bundle.spritesheet([\n  require('./assets/ball/*.png'),\n]);\n\nexport const audio = await bundle.audiosprite([\n  require('./assets/sound/*.ogg')\n]);\n```\n\n## Features\n\n- Compresses images and textures\n- Generates spritesheets\n- Generates audio sprites\n\n**Tiny runtime loader helper for:**\n\n- PixiJS\n- TODO: PlayCanvas\n- TODO: Phaser\n- TODO: Babylon.js\n- TODO: React\n\n## Backlog / Research:\n\n- remote imgui https://github.com/ocornut/imgui\n- esbuild, use `assetNames`: https://esbuild.github.io/api/#asset-names\n- https://github.com/WICG/webpackage\n\n## License\n\nMIT © Endel Dreyer\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fgamebundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fgamebundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fgamebundler/lists"}