{"id":40070953,"url":"https://github.com/louistrue/ifc-lite","last_synced_at":"2026-05-13T06:10:22.379Z","repository":{"id":332184097,"uuid":"1131742715","full_name":"louistrue/ifc-lite","owner":"louistrue","description":"Browser-native IFC viewer with WebGPU rendering and Rust/WASM parser for high-performance BIM visualization","archived":false,"fork":false,"pushed_at":"2026-03-27T14:51:39.000Z","size":147293,"stargazers_count":143,"open_issues_count":21,"forks_count":34,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-27T19:59:45.151Z","etag":null,"topics":["3d-viewer","columnar","ifc","rust","webgpu"],"latest_commit_sha":null,"homepage":"https://louistrue.github.io/ifc-lite/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louistrue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing/release.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-01-10T16:00:00.000Z","updated_at":"2026-03-27T12:30:34.000Z","dependencies_parsed_at":"2026-02-27T16:07:44.184Z","dependency_job_id":null,"html_url":"https://github.com/louistrue/ifc-lite","commit_stats":null,"previous_names":["louistrue/ifc-lite"],"tags_count":566,"template":false,"template_full_name":null,"purl":"pkg:github/louistrue/ifc-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louistrue%2Fifc-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louistrue%2Fifc-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louistrue%2Fifc-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louistrue%2Fifc-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louistrue","download_url":"https://codeload.github.com/louistrue/ifc-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louistrue%2Fifc-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31123509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-28T20:32:38.821Z","status":"ssl_error","status_checked_at":"2026-03-28T20:24:19.814Z","response_time":79,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["3d-viewer","columnar","ifc","rust","webgpu"],"created_at":"2026-01-19T08:08:35.116Z","updated_at":"2026-05-13T06:10:22.374Z","avatar_url":"https://github.com/louistrue.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ctable align=\"center\"\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\"\u003e\n\u003ch1\u003e\n\u003cimg src=\"https://readme-typing-svg.demolab.com?font=JetBrains+Mono\u0026weight=700\u0026size=48\u0026duration=2000\u0026pause=5000\u0026color=6366F1\u0026vCenter=true\u0026width=300\u0026height=55\u0026lines=IFClite\" alt=\"IFClite\"\u003e\n\u003c/h1\u003e\nOpen, view, and work with IFC files. Right in the browser.\n\u003c/td\u003e\n\u003ctd width=\"120\" align=\"center\" valign=\"middle\"\u003e\n\u003cimg src=\"docs/assets/logo.png\" alt=\"\" width=\"100\"\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.ifclite.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/🚀_Try_it_Live-ifclite.com-ff6b6b?style=for-the-badge\u0026labelColor=1a1a2e\" alt=\"Try it Live\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/louistrue/ifc-lite/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/louistrue/ifc-lite/release.yml?branch=main\u0026style=flat-square\u0026logo=github\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/louistrue/ifc-lite/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MPL--2.0-blue?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@ifc-lite/parser\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@ifc-lite/parser?style=flat-square\u0026logo=npm\u0026label=parser\" alt=\"npm parser\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/ifc-lite-core\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/ifc-lite-core?style=flat-square\u0026logo=rust\u0026label=core\" alt=\"crates.io\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# IFClite\n\nParse, view, query, edit, and export IFC files in the browser. Rust + WASM core, WebGPU rendering, ~260 KB gzipped, 5× faster geometry than the next best option.\n\nWorks with **IFC2X3**, **IFC4 / IFC4X3** and **IFC5 (IFCX)**. Live demo at [ifclite.com](https://www.ifclite.com/).\n\n## Get Started\n\n```bash\nnpx create-ifc-lite my-viewer --template react\ncd my-viewer \u0026\u0026 npm install \u0026\u0026 npm run dev\n```\n\nThat gets you a working WebGPU IFC viewer with drag-and-drop, hierarchy, properties, and 2D drawings. Other templates: `basic`, `threejs`, `babylonjs`, `server`, `server-native`.\n\nTo add IFClite to an existing project:\n\n```bash\nnpm install @ifc-lite/parser @ifc-lite/geometry @ifc-lite/renderer\n```\n\n## Parse an IFC file\n\n```typescript\nimport { IfcParser } from '@ifc-lite/parser';\n\nconst parser = new IfcParser();\nconst buffer = await fetch('model.ifc').then(r =\u003e r.arrayBuffer());\nconst t0 = performance.now();\nconst result = await parser.parse(buffer, {\n  onProgress: ({ phase, percent }) =\u003e console.log(`${phase}: ${percent}%`),\n});\n\nconsole.log(`Parsed ${result.entityCount} entities in ${(performance.now() - t0).toFixed(0)}ms`);\n```\n\nFor columnar storage (recommended for large models — TypedArray-backed, query-friendly):\n\n```typescript\nconst store = await parser.parseColumnar(buffer);\nconsole.log(`${store.entityCount} entities, schema ${store.schemaVersion}`);\n```\n\n## View in 3D\n\n```typescript\nimport { IfcParser } from '@ifc-lite/parser';\nimport { GeometryProcessor } from '@ifc-lite/geometry';\nimport { Renderer } from '@ifc-lite/renderer';\n\nconst parser = new IfcParser();\nconst geometry = new GeometryProcessor();\nconst renderer = new Renderer(canvas);\n\nawait Promise.all([geometry.init(), renderer.init()]);\n\nconst buffer = new Uint8Array(await file.arrayBuffer());\nconst parseResult = await parser.parse(buffer);\nconst meshes = await geometry.process(buffer);\n\nrenderer.loadGeometry(meshes);\nrenderer.requestRender();\n\n// Pick an entity at (x, y) in canvas pixels\nconst hit = await renderer.pick(120, 240);\nif (hit) console.log(`Picked expressId ${hit.expressId}`);\n```\n\nFor Three.js or Babylon.js, parse + extract geometry the same way and feed `meshes` to your engine. See [Three.js integration](https://louistrue.github.io/ifc-lite/tutorials/threejs-integration/) and [Babylon.js integration](https://louistrue.github.io/ifc-lite/tutorials/babylonjs-integration/).\n\n## Query entities\n\n```typescript\nimport { IfcQuery } from '@ifc-lite/query';\n\nconst query = new IfcQuery(store);\n\n// All external load-bearing walls\nconst walls = query\n  .ofType('IfcWall', 'IfcWallStandardCase')\n  .whereProperty('Pset_WallCommon', 'IsExternal', '=', true)\n  .whereProperty('Pset_WallCommon', 'LoadBearing', '=', true)\n  .execute();\n\nconsole.log(`${walls.length} external load-bearing walls`);\n\nfor (const wall of walls) {\n  console.log(wall.name, wall.globalId);\n}\n```\n\nFor more complex queries, use SQL via DuckDB-WASM:\n\n```typescript\nconst result = await query.sql(`\n  SELECT type, COUNT(*) AS n FROM entities GROUP BY type ORDER BY n DESC LIMIT 10\n`);\nconsole.table(result.rows);\n```\n\n## Validate against IDS\n\n```typescript\nimport { parseIDS, validateIDS, createTranslationService } from '@ifc-lite/ids';\n\nconst idsSpec = parseIDS(idsXmlContent);\nconst translator = createTranslationService('en');\nconst report = await validateIDS(idsSpec, store, { translator });\n\nfor (const spec of report.specificationResults) {\n  console.log(`${spec.specificationName}: ${spec.passRate}% passed`);\n}\n```\n\n## Edit properties (with undo)\n\n```typescript\nimport { MutablePropertyView } from '@ifc-lite/mutations';\nimport { PropertyValueType } from '@ifc-lite/data';\n\nconst view = new MutablePropertyView(store.properties, 'my-model');\n\nview.setProperty(\n  wallExpressId,\n  'Pset_WallCommon',\n  'FireRating',\n  'REI 120',\n  PropertyValueType.Label,\n);\n\nconsole.log(view.getMutations()); // change history for undo / export\n```\n\n## Export\n\n```typescript\nimport { exportToStep, GLTFExporter, ParquetExporter, Ifc5Exporter } from '@ifc-lite/export';\n\n// IFC STEP — applies any pending mutations\nconst stepText = exportToStep(store, { schema: 'IFC4', applyMutations: true });\n\n// glTF for the web\nconst glb = await new GLTFExporter().export(parseResult, { format: 'glb' });\n\n// Parquet — columnar, ~20× smaller than JSON, queryable from DuckDB / Polars\nconst parquet = await new ParquetExporter().exportEntities(parseResult);\n\n// IFC5 / IFCX — JSON + USD geometry\nconst ifcx = new Ifc5Exporter(store, meshes).export({ includeGeometry: true });\n```\n\n## Choose your setup\n\n| Setup | Best for | You get |\n|-------|----------|---------|\n| [**Browser (WebGPU)**](https://louistrue.github.io/ifc-lite/guide/quickstart/) | Viewing and inspecting models | Full-featured 3D viewer, runs entirely client-side |\n| [**Three.js / Babylon.js**](https://louistrue.github.io/ifc-lite/tutorials/threejs-integration/) | Adding IFC support to an existing 3D app | IFC parsing + geometry, rendered by your engine |\n| [**Server**](https://louistrue.github.io/ifc-lite/guide/server/) | Teams, large files, repeat access | Rust backend with caching, parallel processing, streaming |\n| [**Desktop (Tauri)**](https://louistrue.github.io/ifc-lite/guide/desktop/) | Offline use, very large files (500 MB+) | Native app with multi-threading and direct filesystem access |\n\nNot sure? Start with the browser setup. You can add a server or switch engines later.\n\n## Pick your packages\n\n| I want to... | Packages |\n|--------------|----------|\n| Parse an IFC file | `@ifc-lite/parser` |\n| View a 3D model (WebGPU) | + `@ifc-lite/geometry` + `@ifc-lite/renderer` |\n| Use Three.js or Babylon.js | + `@ifc-lite/geometry` (you handle the rendering) |\n| Query properties and types | + `@ifc-lite/query` |\n| Edit properties (with undo) | + `@ifc-lite/mutations` |\n| Validate against IDS rules | + `@ifc-lite/ids` |\n| Generate 2D drawings | + `@ifc-lite/drawing-2d` |\n| Create IFC files from scratch | `@ifc-lite/create` |\n| Export to glTF / IFC / Parquet | + `@ifc-lite/export` |\n| Connect to a server backend | + `@ifc-lite/server-client` |\n| BCF issue tracking | + `@ifc-lite/bcf` |\n\nFull list: [API Reference](https://louistrue.github.io/ifc-lite/api/typescript/) (25 TypeScript packages, 4 Rust crates).\n\n## Performance\n\n- **First triangles:** 200–500ms for a typical 50 MB model in the browser.\n- **Geometry processing:** up to 5× faster than `web-ifc` on the same hardware.\n- **Bundle size:** ~260 KB gzipped (parser + geometry + renderer).\n- **Schema coverage:** 100% of IFC4 (776 entities) and IFC4X3 (876 entities).\n- **Parse throughput:** ~1,259 MB/s tokenization on a typical M1 / M2 laptop.\n\nSee [benchmarks](https://louistrue.github.io/ifc-lite/guide/performance/) for full numbers across model sizes and hardware.\n\n## Examples\n\nReady-to-run projects in [`examples/`](examples/):\n\n- [**Three.js Viewer**](examples/threejs-viewer/) — IFC viewer using Three.js (WebGL)\n- [**Babylon.js Viewer**](examples/babylonjs-viewer/) — IFC viewer using Babylon.js (WebGL)\n\n## Documentation\n\n| | |\n|---|---|\n| **Start here** | [Quick Start](https://louistrue.github.io/ifc-lite/guide/quickstart/) · [Installation](https://louistrue.github.io/ifc-lite/guide/installation/) · [Browser Requirements](https://louistrue.github.io/ifc-lite/guide/browser-requirements/) |\n| **Guides** | [Parsing](https://louistrue.github.io/ifc-lite/guide/parsing/) · [Geometry](https://louistrue.github.io/ifc-lite/guide/geometry/) · [Rendering](https://louistrue.github.io/ifc-lite/guide/rendering/) · [Querying](https://louistrue.github.io/ifc-lite/guide/querying/) · [Exporting](https://louistrue.github.io/ifc-lite/guide/exporting/) |\n| **BIM features** | [Federation](https://louistrue.github.io/ifc-lite/guide/federation/) · [BCF](https://louistrue.github.io/ifc-lite/guide/bcf/) · [IDS Validation](https://louistrue.github.io/ifc-lite/guide/ids/) · [2D Drawings](https://louistrue.github.io/ifc-lite/guide/drawing-2d/) · [Property Editing](https://louistrue.github.io/ifc-lite/guide/mutations/) |\n| **Tutorials** | [Build a Viewer](https://louistrue.github.io/ifc-lite/tutorials/building-viewer/) · [Three.js](https://louistrue.github.io/ifc-lite/tutorials/threejs-integration/) · [Babylon.js](https://louistrue.github.io/ifc-lite/tutorials/babylonjs-integration/) · [Custom Queries](https://louistrue.github.io/ifc-lite/tutorials/custom-queries/) |\n| **Deep dives** | [Architecture](https://louistrue.github.io/ifc-lite/architecture/overview/) · [Data Flow](https://louistrue.github.io/ifc-lite/architecture/data-flow/) · [Performance](https://louistrue.github.io/ifc-lite/guide/performance/) |\n| **API** | [TypeScript](https://louistrue.github.io/ifc-lite/api/typescript/) · [Rust](https://louistrue.github.io/ifc-lite/api/rust/) · [WASM](https://louistrue.github.io/ifc-lite/api/wasm/) |\n\n## Contributing\n\nNo Rust toolchain needed — WASM comes pre-built.\n\n```bash\ngit clone https://github.com/louistrue/ifc-lite.git\ncd ifc-lite\npnpm install \u0026\u0026 pnpm build \u0026\u0026 pnpm dev   # opens viewer at localhost:5173\n```\n\nIf you need IFC fixtures for tests, benchmarks, or stress tests, fetch them with:\n\n```bash\npnpm fixtures           # download every fixture (idempotent, hash-verified)\npnpm fixtures:check     # CI-friendly: exit 1 if anything is missing or stale\n```\n\nThe fixtures are stored on a GitHub Release and catalogued in\n[`tests/models/manifest.json`](tests/models/manifest.json) — see\n[`tests/models/README.md`](tests/models/README.md) for the full design and\nmaintainer workflow.\n\nSee the [Contributing Guide](https://louistrue.github.io/ifc-lite/contributing/setup/) and [Release Process](RELEASE.md).\n\n## Community\n\n- [GitHub Discussions](https://github.com/louistrue/ifc-lite/discussions) — questions, ideas, show-and-tell\n- [Issues](https://github.com/louistrue/ifc-lite/issues) — bug reports and feature requests\n- [Releases](https://github.com/louistrue/ifc-lite/releases) — changelog and version notes\n\n## License\n\n[MPL-2.0](LICENSE) — use, modify, redistribute. Source files modified under MPL must remain MPL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouistrue%2Fifc-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouistrue%2Fifc-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouistrue%2Fifc-lite/lists"}