{"id":51536765,"url":"https://github.com/wellingfeng/meshova","last_synced_at":"2026-07-09T09:01:46.550Z","repository":{"id":369296022,"uuid":"1282927414","full_name":"wellingfeng/Meshova","owner":"wellingfeng","description":"Web procedural modeling + procedural PBR material library","archived":false,"fork":false,"pushed_at":"2026-07-04T14:26:42.000Z","size":5486,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T15:22:30.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wellingfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-28T11:03:22.000Z","updated_at":"2026-07-04T14:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wellingfeng/Meshova","commit_stats":null,"previous_names":["wellingfeng/meshova"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wellingfeng/Meshova","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellingfeng%2FMeshova","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellingfeng%2FMeshova/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellingfeng%2FMeshova/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellingfeng%2FMeshova/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wellingfeng","download_url":"https://codeload.github.com/wellingfeng/Meshova/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellingfeng%2FMeshova/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35293217,"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-07-09T02:00:07.329Z","response_time":57,"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":[],"created_at":"2026-07-09T09:01:44.375Z","updated_at":"2026-07-09T09:01:46.540Z","avatar_url":"https://github.com/wellingfeng.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Meshova\n\nWeb procedural modeling + procedural PBR material library, driven by AI-written scripts.\n\n## 在线预览\n\n\u003cp\u003e\n  \u003ca href=\"https://wellingfeng.github.io/Meshova/index.html\"\u003e\n    \u003cstrong\u003e打开 Meshova 在线模型库\u003c/strong\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003ca href=\"https://wellingfeng.github.io/Meshova/index.html\"\u003e\n    \u003cimg src=\"docs/assets/meshova-gallery.png\" alt=\"Meshova 在线模型库截图\" width=\"100%\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003cimg src=\"docs/assets/meshova-teddy.png\" alt=\"Meshova 卡通小熊模型预览\" width=\"49%\" /\u003e\n  \u003cimg src=\"docs/assets/meshova-sports-car.png\" alt=\"Meshova 红色跑车模型预览\" width=\"49%\" /\u003e\n\u003c/p\u003e\n\n- **Script-first DSL** (restricted TypeScript calling the library), not node graphs — code is the AI's native language.\n- **WebGPU** for compute acceleration and PBR + IBL rendering.\n- **Headless screenshot loop** so an AI can write a script → render → self-evaluate the image → revise. This visual self-iteration is the core differentiator vs. black-box text-to-3D.\n- **Shared kernel**: geometry and material reuse the same noise/pattern functions, sandbox, screenshot loop, and AI orchestration. Geometry ships first; material is a small increment on top.\n\nSelf-rewritten from public algorithm knowledge. MIT licensed. Blender source is used only as a read-only algorithm reference, never copied (GPL).\n\n## Status\n\nImplemented core stack:\n\n| Module | What |\n| --- | --- |\n| `math` | immutable `vec2` / `vec3` / scalar helpers (clamp, lerp, remap, smoothstep) |\n| `random` | deterministic seeded PRNG (xoshiro128**), `fork()` for independent streams |\n| `random` | seeded Perlin noise (`noise2`/`noise3`) + fractal Brownian motion (`fbm2`/`fbm3`) |\n| `sandbox` | restricted script execution with a loop guard (op budget + wall-clock timeout) |\n| `geometry` | primitives, transforms, curves/sweep, scatter, CSG, subdivision, fields |\n| `geometry` | Houdini-style `Ramp`, `PointCloud`, `InstancePlan`, `copyToPoints` flow |\n| `texture` | procedural PBR fields, presets, PNG export, browser material baking |\n| `viewer` | live procedural model editor plus headless screenshots |\n\nDeterminism is a hard requirement: same seed → same result, so screenshot tests and AI reproduction stay stable.\n\n## Develop\n\n```bash\npnpm install\npnpm test        # vitest\npnpm typecheck   # tsc --noEmit\npnpm build       # emit dist/\npnpm view        # live viewer\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow, hard invariants, and\nhow to update the deterministic shape-regression baseline.\n\n## Example: copy-to-points flow\n\n```ts\nimport { box, copyToPoints, makePointCloud, pointAttribute, storePointAttribute, vec3 } from \"meshova\";\n\nlet pc = makePointCloud({ points: [vec3(0, 0, 0), vec3(2, 0, 0)] });\npc = storePointAttribute(pc, \"scale\", (ctx) =\u003e 1 + ctx.index);\n\nconst instances = copyToPoints(pc, box(1, 1, 1), {\n  scale: pointAttribute(\"scale\"),\n  alignToNormal: false,\n});\n```\n\n## Example: deterministic noise\n\n```ts\nimport { makeNoise, fbm2, makeRng } from \"meshova\";\n\nconst noise = makeNoise(7);\nconst height = fbm2(noise, 0.5, 0.5, { octaves: 5 });\n\nconst rng = makeRng(7);\nconst jitter = rng.range(-0.1, 0.1); // same seed → same value, every run\n```\n\n## License\n\nMIT. See [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellingfeng%2Fmeshova","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwellingfeng%2Fmeshova","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellingfeng%2Fmeshova/lists"}