{"id":50379333,"url":"https://github.com/ltplus-ag/ifc-lite","last_synced_at":"2026-06-12T13:00:39.531Z","repository":{"id":332184097,"uuid":"1131742715","full_name":"LTplus-AG/ifc-lite","owner":"LTplus-AG","description":"Parse, view, query, edit, and export IFC, IDS, BCF, pointclouds and more AEC stuff. In the browser, server or desktop. ","archived":false,"fork":false,"pushed_at":"2026-06-06T16:55:21.000Z","size":160900,"stargazers_count":218,"open_issues_count":17,"forks_count":59,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-06T17:04:20.558Z","etag":null,"topics":["3d-viewer","bcf","cli","columnar","ids","ifc","ifc-parser","mcp","pointcloud","rust","script-editor","sdk","webgpu"],"latest_commit_sha":null,"homepage":"https://ifclite.dev","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/LTplus-AG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing/release.md","funding":".github/FUNDING.yml","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},"funding":{"buy_me_a_coffee":"louistrue"}},"created_at":"2026-01-10T16:00:00.000Z","updated_at":"2026-06-06T15:02:21.000Z","dependencies_parsed_at":"2026-05-06T17:06:28.305Z","dependency_job_id":null,"html_url":"https://github.com/LTplus-AG/ifc-lite","commit_stats":null,"previous_names":["louistrue/ifc-lite","ltplus-ag/ifc-lite"],"tags_count":737,"template":false,"template_full_name":null,"purl":"pkg:github/LTplus-AG/ifc-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTplus-AG%2Fifc-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTplus-AG%2Fifc-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTplus-AG%2Fifc-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTplus-AG%2Fifc-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LTplus-AG","download_url":"https://codeload.github.com/LTplus-AG/ifc-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTplus-AG%2Fifc-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34245218,"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-12T02:00:06.859Z","response_time":109,"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":["3d-viewer","bcf","cli","columnar","ids","ifc","ifc-parser","mcp","pointcloud","rust","script-editor","sdk","webgpu"],"created_at":"2026-05-30T11:02:26.416Z","updated_at":"2026-06-12T13:00:39.517Z","avatar_url":"https://github.com/LTplus-AG.png","language":"TypeScript","funding_links":["https://buymeacoffee.com/louistrue"],"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/LTplus-AG/ifc-lite/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/LTplus-AG/ifc-lite/release.yml?branch=main\u0026style=flat-square\u0026logo=github\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/LTplus-AG/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/) and more info here: [ifclite.dev](https://www.ifclite.dev/).\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 store = await parser.parseColumnar(buffer, {\n  onProgress: ({ phase, percent }) =\u003e console.log(`${phase}: ${percent}%`),\n});\n\nconsole.log(`${store.entityCount} entities, schema ${store.schemaVersion}`);\nconsole.log(`Parsed in ${(performance.now() - t0).toFixed(0)}ms`);\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 arrayBuffer = await file.arrayBuffer();\nconst store = await parser.parseColumnar(arrayBuffer);\nconst meshes = [];\nfor await (const event of geometry.processAdaptive(new Uint8Array(arrayBuffer))) {\n  if (event.type === 'batch') meshes.push(...event.meshes);\n}\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://ltplus-ag.github.io/ifc-lite/tutorials/threejs-integration/) and [Babylon.js integration](https://ltplus-ag.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://ltplus-ag.github.io/ifc-lite/guide/quickstart/) | Viewing and inspecting models | Full-featured 3D viewer, runs entirely client-side |\n| [**Three.js / Babylon.js**](https://ltplus-ag.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://ltplus-ag.github.io/ifc-lite/guide/server/) | Teams, large files, repeat access | Rust backend with caching, parallel processing, streaming |\n| [**Build for Desktop**](https://ltplus-ag.github.io/ifc-lite/guide/desktop/) | Your own offline native app, very large files (500 MB+) | Extension points to wrap the packages in Tauri, with an optional native-Rust geometry fast path |\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://ltplus-ag.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://ltplus-ag.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://ltplus-ag.github.io/ifc-lite/guide/quickstart/) · [Installation](https://ltplus-ag.github.io/ifc-lite/guide/installation/) · [Browser Requirements](https://ltplus-ag.github.io/ifc-lite/guide/browser-requirements/) |\n| **Guides** | [Parsing](https://ltplus-ag.github.io/ifc-lite/guide/parsing/) · [Geometry](https://ltplus-ag.github.io/ifc-lite/guide/geometry/) · [Rendering](https://ltplus-ag.github.io/ifc-lite/guide/rendering/) · [Querying](https://ltplus-ag.github.io/ifc-lite/guide/querying/) · [Exporting](https://ltplus-ag.github.io/ifc-lite/guide/exporting/) |\n| **BIM features** | [Federation](https://ltplus-ag.github.io/ifc-lite/guide/federation/) · [BCF](https://ltplus-ag.github.io/ifc-lite/guide/bcf/) · [IDS Validation](https://ltplus-ag.github.io/ifc-lite/guide/ids/) · [2D Drawings](https://ltplus-ag.github.io/ifc-lite/guide/drawing-2d/) · [Property Editing](https://ltplus-ag.github.io/ifc-lite/guide/mutations/) |\n| **Tutorials** | [Build a Viewer](https://ltplus-ag.github.io/ifc-lite/tutorials/building-viewer/) · [Three.js](https://ltplus-ag.github.io/ifc-lite/tutorials/threejs-integration/) · [Babylon.js](https://ltplus-ag.github.io/ifc-lite/tutorials/babylonjs-integration/) · [Custom Queries](https://ltplus-ag.github.io/ifc-lite/tutorials/custom-queries/) |\n| **Deep dives** | [Architecture](https://ltplus-ag.github.io/ifc-lite/architecture/overview/) · [Data Flow](https://ltplus-ag.github.io/ifc-lite/architecture/data-flow/) · [Performance](https://ltplus-ag.github.io/ifc-lite/guide/performance/) |\n| **API** | [TypeScript](https://ltplus-ag.github.io/ifc-lite/api/typescript/) · [Rust](https://ltplus-ag.github.io/ifc-lite/api/rust/) · [WASM](https://ltplus-ag.github.io/ifc-lite/api/wasm/) |\n\n## Contributing\n\nThe WASM bundle is built from `rust/` on every fresh build, so a Rust\ntoolchain is required. `rust-toolchain.toml` pins the nightly channel\nand the `wasm32-unknown-unknown` target — `rustup show` (or the\ncontributing setup guide) installs everything needed.\n\n```bash\n# 1. Rust toolchain (one-time)\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\ncargo install wasm-pack   # or: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n# 2. Clone and build\ngit clone https://github.com/LTplus-AG/ifc-lite.git\ncd ifc-lite\npnpm install \u0026\u0026 pnpm build \u0026\u0026 pnpm dev   # opens viewer at localhost:3000\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://ltplus-ag.github.io/ifc-lite/contributing/setup/) and [Release Process](RELEASE.md).\n\n## Community\n\n- [GitHub Discussions](https://github.com/LTplus-AG/ifc-lite/discussions) — questions, ideas, show-and-tell\n- [Issues](https://github.com/LTplus-AG/ifc-lite/issues) — bug reports and feature requests\n- [Releases](https://github.com/LTplus-AG/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%2Fltplus-ag%2Fifc-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltplus-ag%2Fifc-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltplus-ag%2Fifc-lite/lists"}