[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116553":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},116553,"kaamos","AtomiLabSlop\u002Fkaamos","AtomiLabSlop","Browser-based 3D product rendering studio","https:\u002F\u002Fatomilab.fi\u002Fkaamos\u002F",null,"TypeScript",72,15,1,0,5,46.61,"GNU Affero General Public License v3.0",false,"main",true,[],"2026-11-23 18:24:46","2026-11-20 10:05:45","# Kaamos\n\nKaamos is a 3D product rendering studio that runs in the browser. Import a\nmodel, give its parts materials, light it, and render a high-resolution image.\n\n**Try it:** https:\u002F\u002Fatomilab.fi\u002Fkaamos\u002F (desktop browser; Chrome recommended)\n\n## Your models stay on your computer\n\nKaamos has no server side. Models, environment maps and images are read by\nthe browser and are never uploaded. Projects are saved as files on your own\ncomputer, and an automatic backup is kept in the browser's own storage\n(IndexedDB) on the same machine.\n\nThe hosted site adds one page-view counter (self-hosted Umami, no cookies) at\ndeploy time. It counts visits; it never sees your files. This repository is\notherwise the code the site runs, so you can check this for yourself, or run\nKaamos locally with no network access at all.\n\n## What it does\n\n- **Import** GLB and glTF, OBJ, STL, 3MF, STEP and IGES (STEP\u002FIGES are meshed in the\n  browser with OpenCascade compiled to WebAssembly).\n- **Materials:** a library of plastics, metals, glass, paint, ceramic,\n  translucent, fabric and emissive presets, and an editor for colour,\n  metallic, roughness, clearcoat, transmission, sheen, emission and\n  subsurface scattering. Click to apply, or drag onto a part.\n- **Lighting:** studio presets, area lights, and your own HDRI (.hdr, .exr).\n- **Camera:** perspective and orthographic, field of view, exposure, tone\n  mapping, depth of field, saved viewpoints.\n- **Two renderers, labelled as such:** a real-time raster view, and a path\n  tracer (light bounces, refraction, soft shadows) for final images, with\n  optional denoising. PNG output, with a transparent background if wanted.\n- **Projects** are single files that embed the original models.\n\n## Run it locally\n\nNeeds a current Node.js (20.19 or newer).\n\n```bash\nnpm start\n```\n\ninstalls the dependencies, starts the development server and opens the app.\n\n| Command | Does |\n|---|---|\n| `npm start` | install, dev server, open browser |\n| `npm run dev` | dev server only |\n| `npm run build` | type check and production build into `dist\u002F` |\n| `npm run build:web` | production build for hosting under `\u002Fkaamos\u002F` |\n| `npm run preview` | build, then serve the build |\n| `npm run check` | build, then the end-to-end smoke test (Playwright) |\n\nThe smoke test drives a real Chromium; fetch it once with\n`npx playwright install chromium`.\n\n## How it is built\n\nReact 19, TypeScript, Three.js with React Three Fiber and drei, Zustand for\nstate, Tailwind CSS, Vite. The interface is built on Adobe's\n[Spectrum 2](https:\u002F\u002Freact-spectrum.adobe.com\u002F) components, set in Source Sans 3\nand recoloured to Kaamos amber at build time (`vite.config.ts`). Path tracing is\n[three-gpu-pathtracer](https:\u002F\u002Fgithub.com\u002Fgkjohnson\u002Fthree-gpu-pathtracer) on\n[three-mesh-bvh](https:\u002F\u002Fgithub.com\u002Fgkjohnson\u002Fthree-mesh-bvh); STEP and IGES\ncome through [occt-import-js](https:\u002F\u002Fgithub.com\u002Fkovacsv\u002Focct-import-js).\n\nA few decisions that shape the code:\n\n- **Two stores, both plain data.** `src\u002Fstore\u002Fproject.ts` is the project\n  document (with undo and redo), `src\u002Fstore\u002Fui.ts` is interface state. No\n  Three.js object enters either; those live in a registry\n  (`src\u002Fscene\u002Fregistry.ts`) and are disposed when history no longer needs them.\n- **Material sliders bypass React.** Dragging a slider changes the shared\n  `MeshPhysicalMaterial` directly (`src\u002Fmaterials\u002FmaterialInstances.ts`) and\n  asks for one redraw; the viewport only draws on demand.\n- **The path tracer is patched, not forked.** Subsurface scattering and a NaN\n  guard for Safari are added by rewriting the library's shader at run time\n  (`src\u002Frender\u002Fsubsurface.ts`); each patch checks that its anchors are still\n  there and warns if a library update has moved them.\n- **Large projects are a binary container** (`src\u002Fio\u002FprojectFile.ts`), since\n  a model of several hundred megabytes cannot be held as one base64 string.\n\n## Known limitations\n\n- Desktop browsers only. Tested mostly in Chrome and Safari on macOS.\n- Path traced renders depend on the graphics chip; on integrated graphics a\n  large scene or output can lose the graphics context.\n- Models over about a million triangles make the view slow.\n- Subsurface scattering, glass seen through glass and light from glowing\n  materials show only in path traced views.\n- Textures that come with an imported file are kept but cannot be edited.\n\n## Contributing\n\nKaamos is a side project. Bug reports and ideas are welcome as issues; pull\nrequests are read, but may not be reviewed quickly.\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=atomilabslop%2Fkaamos&type=date&legend=top-left\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=atomilabslop\u002Fkaamos&type=date&theme=dark&legend=top-left\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=atomilabslop\u002Fkaamos&type=date&legend=top-left\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=atomilabslop\u002Fkaamos&type=date&legend=top-left\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n## Licence\n\nCopyright (c) 2026 AtomiLab.\n\nKaamos is free software under the GNU Affero General Public License, version 3\nonly (AGPL-3.0-only); see [LICENSE](LICENSE). In short: you may use, study,\nchange and share it, and if you run a changed version for others over a\nnetwork, you must offer them its source under the same licence.\n\nThe name **Kaamos** and the Kaamos logo identify this project. The licence\ncovers the code and its files, not the use of the name or logo as the name or\nbranding of another product or service.\n\nThird-party libraries keep their own licences, listed by their packages.\n\n---\n\n### Support me\n\nIf you find my open-source projects useful, you can support the time and care that goes into maintaining and improving them by buying me a coffee. It’s entirely optional, but always appreciated :)\n\n\u003Cbr>\n\n\u003Ca href=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fatomilabslop\">\u003Cimg src=\"https:\u002F\u002Fcdn.buymeacoffee.com\u002Fbuttons\u002Fv2\u002Fdefault-yellow.png\" alt=\"Buy Me a Coffee\" width=\"200\">\u003C\u002Fa>\n","Kaamos 是一款基于浏览器的本地化 3D 产品渲染工作室，无需上传模型即可完成全流程渲染。支持 GLB\u002FglTF、OBJ、STL、3MF 及 STEP\u002FIGES（通过 WebAssembly 实时网格化）等格式导入；提供预设材质库与精细参数编辑（金属度、粗糙度、透射、次表面散射等）；支持 HDRI 环境光、区域光源与多相机视角；内置实时光栅预览与 GPU 加速路径追踪渲染器，输出带透明背景的高分辨率 PNG。所有数据仅在用户本地处理与存储，适用于工业设计评审、电商产品可视化、技术文档配图等离线或隐私敏感场景。",2,"2026-11-24 04:53:50","CREATED_QUERY"]