---
title: What is BIM.works
summary: A repository for building models with a query engine, two viewers, eight small languages, three SDKs and a generated PHP client — what each part is, and where it runs.
order: 10
featured: true
see-also: [explanation/nodes-versions-and-the-tree, explanation/the-query-languages, explanation/geometry-and-the-viewers, how-to/install, reference]
terms: [node, version, ifc, bql, sdk, openapi, feature-flag, actions-tree, derivative]
---

# What is BIM.works

BIM.works is a server that stores building models and makes them queryable, viewable, checkable and editable through an API. This page is for people who have just been handed an instance URL and an API token and want to know what they are looking at. It assumes nothing beyond a general idea of what an [[term:ifc|IFC]] file is.

## The repository

At the centre is a tree of [[term:node|nodes]]: folders and models, much like a file system. A model node holds [[term:version|versions]], one per upload or edit, and a version is what the rest of the system works on. Uploading a file is not a copy operation: the server parses it, indexes every object and every value for queries, generates the geometry the viewers stream, floor plans, footprints and bounding volumes, and keeps all of that as a [[term:derivative|derivative set]] next to the original. The original bytes are the only thing that is precious; everything derived can be rebuilt, and is, after an update.

IFC is the main format, in the schemas IFC2X3, IFC4 and IFC4X3. Point clouds (E57, LAS, LAZ), PDF and DWG sheets, glTF meshes and BCF topics can be uploaded as well and are shown next to the models; only IFC models are queryable. The full list, with what each type is unpacked into, is generated on [[page:reference/file-types]].

## The languages

The way to ask a model something is [[term:bql|BQL]], a small query language: `GET qid, attribute.Name WHERE type = IFCDOOR AND property.*.FireRating = null`. It selects objects across one or more versions and returns their features — attributes, properties, quantities, classifications, materials, relations to storeys and types, and values BIM.works calculated from the geometry — with unit conversion and aggregation built in.

Seven more languages are built on BQL's expressions: BVL styles the viewers (show, hide, colour, label), BCL writes checks that yield a result per object, BRL lays out reports, BUL edits the model through transactions, BSL sequences visualisations, BCOL compares two versions and BFL defines virtual features. Why a family of small languages rather than one large one, and how they relate to SQL and to IDS, is the subject of [[page:explanation/the-query-languages]]. Scripts in any of them are stored as actions in the [[term:actions-tree]], where they can be shared, versioned and run against whatever models are loaded.

## The viewers

Two viewers ship as JavaScript packages. The 3D viewer renders with WebGL2, streams compressed geometry from the server, handles models of millions of objects, and has a GEO mode in which geo-referenced models sit on terrain and map imagery. The 2D viewer draws the floor plans BIM.works generated per storey; PDF sheets and DWG drawings load into the 3D viewer. Both share one model of state — which objects are loaded, visible, selected and coloured — so a selection in one is a selection in the other, and so BVL can drive them. [[page:explanation/geometry-and-the-viewers]] explains the pipeline.

The BIM.works UI itself is built from these packages and the same API you have access to. Nothing the UI does is unavailable to an integration, though a few operations are only in the task API and not yet in the OpenAPI.

## The SDKs and the OpenAPI

The API is task-based: every operation is a named task with a JSON input and a JSON or streamed output, carried over a WebSocket or over HTTP. Three [[term:sdk|SDKs]] wrap it: JavaScript (`@bimworks/jssdk`, with the viewers as separate packages), Java (`nl.bimbase.bimworks:client`) and .NET (`BIM.works_SDK`). They share the same vocabulary — a client factory, a client created from a credential, groups such as `fs`, `bim`, `checks`, `tokens` — so the how-to guides show the same call in all three, next to PHP and HTTP.

For everything else there is the [[term:openapi|OpenAPI]]: a REST description of the repository's operations with Swagger UI on every instance, bearer-authenticated with the same tokens. The PHP client (`bimbase/bimworks`) is generated from it. It covers logging in and API tokens, the account, the tree, uploads and downloads, queries, checks and comparisons, transactions, actions, workspaces, geo operations, exports and renders; the task API behind the SDKs is larger (the viewers' geometry streams, chat), and operations move into the OpenAPI as they are needed. Start with [[page:how-to/install]] and [[page:reference]].

## Where each part runs

The server is one Java process per instance, hosted by BIM Base or on a customer's own machines, with its own database and storage; a customer's instance never talks to another. Model processing, queries, checks and report rendering all happen on the server. The viewers run in the browser and pull geometry and state from the server as needed; the SDKs run wherever your code runs. The UI is served by the instance and is the same application on every deployment, with functionality switched on per account; an instance can add its own stylesheet, script and logo to it (`ui.css`, `ui.js` and `ui.logo` in its configuration).

Authentication is by token. People log in with a username and password; software logs in with an API token bound to one node of the tree, and a backend can issue short-lived tokens for a browser so that a web page loads exactly the models it should and nothing more. [[page:explanation/tokens-and-delegation]] covers the whole model.

## Features {#features}

Not every capability is on for every account. BIM.works ships everything compiled in and enables it per instance, organisation, account or workspace through [[term:feature-flag|feature flags]]: `SHARE` for public links, `BUL` for editing, `GIS_LAYERS` for the GIS tree, `JAVA_ACTIONS` for checks written in Java, and several dozen more. Most flags only add UI; some are also checked by the server, either as a gate on API scopes for API tokens or by the calls that need them. The generated [[page:reference/feature-flags]] lists them with their audience, and a how-to that needs one says so at the top. [[page:explanation/accounts-and-organisations]] explains the levels at which they are set.
