BIcraft
Health Warn
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Open-source Rust toolkit, parser and writer for Power BI files: PBIX, PBIT, PBIP, PBIR, TMDL and TMSL. Create, read, edit, validate and convert reports and semantic models, generate reports from AI agents (MCP server), DAX validation, CLI, desktop and browser app. Power BI Desktop is not needed.
BIcraft
Open-source Rust toolkit, parser and writer for Power BI files: PBIX, PBIT, PBIP, PBIR, TMDL and TMSL. Create, read, edit, validate and convert reports and semantic models, generate reports from AI agents (MCP server), DAX validation, CLI, desktop and browser app. Power BI Desktop is not needed.
Create, read, modify, validate and convert PBIX, PBIT and PBIP files, their TMDL and TMSL models
and their PBIR reports, and check every DAX expression against the model. Two programs share
one engine: bicraft, the desktop app, and bicraft-cli, both a CLI and
an MCP server, so people, scripts and agents use the same commands. Native on Windows and Linux;
files it writes open in the free Power BI Desktop.
BIcraft's own app (bicraft) with a synthetic dashboard open, built by the recipe examples/ridgeline-cycles.json and drawn by bicraft --render; every value is made up.
What sets it apart · What works · Getting started · Agents, CLI and MCP · Server · How it is built · Roadmap · Downloads · Interoperability · The Crafting Apps · License
What sets BIcraft apart
- Its own report app, on the desktop and in the browser.
bicraftand the browser
app run the same Rust UI (egui), draw the same pixels and reach every engine command from a
button: model, Data and Report views, the Format pane, Power Query, DAX with a formula bar.
Native on Windows and Linux, no web engine inside (docs/desktop.md,
docs/webui.md). - A server for teams, with a Kubernetes deployment (preview).
bicraft-cli servehosts
workspaces for many users over MCP Streamable HTTP, with API tokens or OIDC sign-in,
per-workspace access control and a sandboxed root. A static container image, a Helm chart and a
controller that creates workspaces on demand. Tested so far in a local kind cluster and against
a test identity provider only (docs/kubernetes.md,
docs/server-mode.md). - Fourteen visuals of its own, for the charts people keep asking Power BI for. Org chart,
Waterfall+ (horizontal, subtotals), histogram, bullet chart, box plot, Venn, Marimekko,
dumbbell and slope, calendar heatmap, Sankey, Scatter+, Line / Area+, Gauge / KPI+, and the
Spec visual (a chart described in a few lines of JSON). They ship as standard custom visual
packages that open in Power BI Desktop, draw the same in BIcraft and in Power BI, follow the
report's language, and still draw when the visual is very small
(docs/community-visuals.md,
docs/formats/bicraft-visuals.md). - An engine built for large volumes. A columnar storage engine over the VertiPaq segments
answers the 22 queries of its star-schema bench at every size from 10 k to 100 M fact rows;
measured on the maintainers' laptop, a 100 M-row model opens in under half a second (0.48 s
for the 1.05 GB file BIcraft built itself on 2026-12-01, one run) and most repeated queries come
back from its caches in under a millisecond. Aggregations derived from the report, distinct
counts included, are kept between sessions, and models larger than memory are read by windows
(docs/benchmarks.md, docs/storage-engine.md,
docs/beyond-ram.md). - Its own Power Query engine. Refresh, previews and the Power Query editor run on an M
evaluator written in Rust, with folding to SQL Server, PostgreSQL, MySQL, Snowflake and Databricks
and the privacy firewall, so a model can be refreshed on a Linux server with no Power BI installed
(docs/formats/data-sources.md). - Made for AI agents and pipelines. Every operation is a command that the CLI, the MCP
server and the UI share, so an agent can do anything a person can;bicraft-cli testgates a
project in CI.
What works today
BIcraft is pre-1.0 and under active development (see the roadmap). Today it can:
- Read every Power BI file format: PBIX and PBIT packages (including the XPress9-compressed
DataModel, its ABF backup,metadata.sqlitedband VertiPaq column data), PBIP projects with
TMDL or TMSL (model.bim) models, PBIR reports and legacyReport/Layout/report.json
reports. - Author semantic models: tables, columns, measures, relationships, hierarchies, calculation
groups, roles, perspectives and translations, with byte-stable TMDL and TMSL writers. Renames
rewrite the DAX that uses them; undo/redo and all-or-nothing batches. - Author reports: pages and visuals with every formatting option checked against a catalog,
themes, filters, conditional formatting, and declarative, idempotent report building
(report.apply). - Validate DAX: measures, calculated columns and tables, row filters and DAX queries
(DEFINE/EVALUATE), with a typed catalog of 472 functions, type and context checks and
circular-reference detection. Its verdicts are calibrated against the Analysis Services engine. - Write full PBIX files: edits of an existing PBIX (metadata, structure and data), and new
PBIX files built from a model, a PBIT or a PBIP project, with data encoded by a pure-Rust
VertiPaq encoder and compressed with XPress9. Tables go up to the format's 1,999,999,997 rows;
a 20 M-row table BIcraft built opens in Power BI Desktop with the same answers. - Load and refresh data with its own Power Query engine: an M evaluator in Rust refreshes a
model from CSV, Excel, JSON, XML and folders, and, when the caller allows it, from SQL Server,
PostgreSQL, MySQL, Snowflake, Databricks, Web, OData and SharePoint, with query folding, sign-in with a Microsoft
Entra ID account or Windows authentication, privacy levels and the privacy firewall. The
Power Query editor, the Navigator and.pbidsfiles lead to the same queries; DirectQuery
tables can be read live from allowed sources (docs/formats/data-sources.md,
docs/sign-in.md). - Convert: PBIX → PBIP/PBIT, PBIT ↔ PBIP, TMSL ↔ TMDL, PBIP/PBIT/new model → PBIX. Every
conversion goes through one in-memory model. - Query and preview: run DAX queries over a file's data, render report pages to PNG, and watch
a project in a live web viewer while an agent builds it.bicraftreads the same reports
natively (Windows and Linux, no web engine), from a file or a BIcraft server. Readers can
cross-filter, drill, follow drillthrough (also to another report), see report-page tooltips
and the records behind a value, and export a page to PDF (tagged for accessibility) or a
visual's data, from the app and frombicraft-cli view's HTML viewer, in light, dark or high
contrast. - Redact a file before sharing it:
file.redactreplaces server and database names, URLs,
paths, connection strings and credentials in the model, the report and the Power Query text,
and withdatathe stored text values too (docs/formats/import-sources.md). - Find what is used and what is not:
bicraft-cli usagelists every place a table, column or
measure is used (DAX, row-level security, relationships, visuals, filters, bookmarks), andbicraft-cli unusedlists, or removes, what nothing uses. - Gate a project in CI:
bicraft-cli testruns DAX assertions over the data, best-practice and
declarative model rules and report rules from abicraft.tests.yaml, with JUnit or SARIF
output for the pipeline (docs/ci-tests.md).
What is not finished or not tested
- Not a full Analysis Services engine. BIcraft's DAX evaluator serves previews, calculated
data and refresh, and a few DAX forms are left (G30). DirectQuery tables are read live only
from sources the session allows; only visuals of simple aggregates are grouped at the source,
the rest read rows (capped), and none of it has been compared with Desktop (G10). - Data sources: connectors tested against fake and test servers only. SQL Server (with
Entra ID and Windows NTLM logins), Web, OData and SharePoint are tested only against local
test servers and a local sign-in provider, never a real tenant, Azure SQL, SharePoint Online
or a domain server; no Kerberos. Databricks has not been tried against a real workspace,
Snowflake against one trial account only and PostgreSQL and MySQL against one local test server each. The privacy firewall has not been compared with
Desktop's. Other connectors are reported, not run, and a connector runs only when the caller
allows it: building a new PBIX without a data cache does not compute those tables. - Server and Kubernetes are a preview. OIDC is tested only against a local test provider,
never a real identity provider; the Helm charts and the controller only in a local kind
cluster, never on a managed cluster or under load; one controller replica. - Platforms. Windows and Linux on x86-64, and macOS (Apple silicon and Intel) built and
tested on GitHub's macOS runners only: nobody has run BIcraft on a Mac by hand; macOS
archives since v0.3.0 (G133). - Power BI. Files and visuals are checked in Power BI Desktop; the Power BI service and
Report Server are not tested. BIcraft's visuals are not certified, so they cannot be exported
to PowerPoint or PDF from the service. - Large tables. A 20 M-row table BIcraft built opens in Desktop; a refresh of more than
16.7 M rows has not been opened in Desktop, sources other than CSV are loaded whole in memory,
and the 100 M-row bench file BIcraft builds itself was measured once, not checked against
reference results (G31, G50). - Unsigned binaries. The release archives are not code-signed (Windows SmartScreen may warn on
first run; the macOS programs are not notarized, see Downloads), and the Linux
desktop app has not been run in a full desktop session.
Every known shortfall is listed in docs/gaps.md; the plan is in
ROADMAP.md.
Getting started
Download a release archive (Downloads) or build from source with Rust 1.95 or
newer (the CLI is not on crates.io yet):
git clone <this repository> bicraft
cd bicraft
cargo build --release -p bicraft-cli # target/release/bicraft-cli (bicraft-cli.exe on Windows)
cargo build --release -p bicraft-desktop # target/release/bicraft, the desktop app (bicraft.exe)
cargo xtask dist builds the Windows x64 and Linux x64 release archives locally, with an
install script, the licences, the notices and SHA256SUMS (docs/releasing.md).
Every subcommand prints JSON to stdout and errors to stderr. Exit codes: 0 success or valid,1 invalid or a command failed, 2 usage or I/O error.
bicraft-cli new-project out Sales --format tmdl # a new PBIP project
bicraft-cli inspect Sales.pbix # kind, parts, model, pages, visuals
bicraft-cli validate-model out/Sales.pbip # every measure and calculated column
bicraft-cli validate-dax "DIVIDE(SUM(Sales[Amount]), COUNTROWS(Sales))" --model out/Sales.pbip --table Sales
bicraft-cli validate-report out/Sales.pbip # PBIR schemas, structure, bound fields
bicraft-cli usage out/Sales.pbip "[Total Amount]" # where a field is used (DAX, RLS, visuals, filters...)
bicraft-cli unused out/Sales.pbip --remove --dry-run # what nothing uses; then --remove --save
bicraft-cli test out/Sales.pbip --format junit --output bicraft-junit.xml # CI quality gates (docs/ci-tests.md)
bicraft-cli convert Sales.pbix out/Sales.pbip --format pbip-tmdl
bicraft-cli diff Sales.pbix out/Sales.pbip # semantic diff across formats (docs/diff.md)
bicraft-cli diff --git main HEAD out/Sales.pbip --markdown # a project between git revisions, for a PR
bicraft-cli dax-query Sales.pbix "EVALUATE SUMMARIZECOLUMNS(Sales[Region], \"Total\", [Total Amount])"
bicraft-cli view out/Sales.pbip --open # live viewer in the browser
bicraft out/Sales.pbip # native desktop app, no browser (docs/desktop.md)
bicraft-cli licenses # licence and third-party notices
An example dashboard
examples/ridgeline-cycles.json builds the dashboard of the
screenshots above from nothing: a model of made-up sales for a fictional bike shop (a date table,
a sales table, measures with TOTALYTD, SAMEPERIODLASTYEAR and DIVIDE), BIcraft's own theme,
and one report page with built-in visuals and three of BIcraft's own (Gauge / KPI+ as KPI cards
and a bullet gauge, Bullet, Dumbbell as a slope chart). Every step is an engine command, so an agent can do the same over MCP.
bicraft-cli run --file examples/ridgeline-cycles.json # writes ridgeline-cycles.pbip
bicraft-cli render ridgeline-cycles.pbip --page 0 --scale 1.25 --out dashboard.png
bicraft ridgeline-cycles.pbip --render app.png --size 1920x1080 --set '{"ribbonTab": "home", "theme": "dark"}'
The page alone, drawn by bicraft-cli render (no window, no Power BI Desktop).
The same app in its dark theme ("theme": "dark" in --set).
Agents, CLI and MCP
Every operation in BIcraft is an engine command with a stable id, so people, scripts and AI
agents use the same verbs:
bicraft-cli commands measure # list commands
bicraft-cli describe measure.add # parameters of one command
bicraft-cli run --open out/Sales.pbip \
--cmd 'measure.add={"table":"Sales","name":"Total Amount","expression":"SUM(Sales[Amount])"}' \
--save # DAX is validated before it is applied
bicraft-cli mcp # MCP server over stdio
bicraft-cli setup # register `bicraft-cli mcp` with your agents
Register the MCP server with any MCP client:
{ "mcpServers": { "bicraft": { "command": "bicraft-cli", "args": ["mcp"] } } }
bicraft-cli setup writes this entry for Claude Code, Claude Desktop, VS Code, Cursor and Codex.
docs/mcp.md lists the tools (list_commands, run_command, batch,open_file, inspect_file, validate_*, model_usage, model_unused, remove_unused, save,save_as, convert, …), the editing rules, undo/redo, the live viewer and a typical agent
workflow.
Agent skills. skills/ holds guides for coding agents, in the SKILL.md format
(frontmatter name and description, with optional references/):
bicraft-visual-authoring takes an agent from "make
me a visual that…" to a packaged Power BI visual. It picks a built-in BIcraft visual, a Spec
visual or a scaffolded TypeScript visual, then checks, packs and exports it. Copy the folder into
your agent's skills directory (for Claude Code, .claude/skills/ or ~/.claude/skills/).
Server and Kubernetes
bicraft-cli serve exposes the same engine over MCP Streamable HTTP, one workspace per folder, with
authentication (API tokens or OIDC), per-workspace access control and a sandboxed workspace
root. A static container image and a Helm chart run one workspace per pod; a controller creates
workspaces on demand. See docs/kubernetes.md,
docs/server-mode.md, docs/auth.md and
docs/web-deployment.md.
How it is built
A Rust workspace (edition 2024) of layered crates: primitives (OPC, XPress9, SQLite, ABF,
VertiPaq) → model and report → DAX → serializations (TMSL, TMDL, PBIR, legacy layout) →
containers (PBIX, PBIP) → engine → MCP server and viewer → bicraft-cli. A crate depends
only on lower layers (cargo xtask layers), and conversions always go through the model.
Input files are treated as hostile: no unsafe, no panicking calls, checked arithmetic, capped
allocations, bounded recursion, and fuzzed readers. BIcraft never calls Power BI Desktop, Analysis
Services or any Windows DLL at run time. docs/architecture.md describes
the layers, AGENTS.md has the rules and CONTRIBUTING.md the
development setup.
Roadmap
Every item of milestones M0–M12 is done: PBIP models, PBIR reports, PBIT and PBIX writing, theDataModel reader and writer, DAX validation, distribution, the live viewer, languages, the one
egui UI and BIcraft's fourteen Power BI visuals. ROADMAP.md says what is left, with
the headline numbers and readiness by audience; docs/roadmap.md has the core-workflow gate
and the plan to the next release; docs/FEATURES.md lists the supported formats,
visuals, connectors and engines; docs/gaps.md lists the open gaps, the top 15
ranked; CHANGELOG.md has the changes by release and
docs/history/roadmap-log.md is the progress log;
docs/benchmarks.md has BIcraft's performance numbers.
Downloads
The current release is v0.3.0, the first with macOS archives (v0.1.0 came out on 2026-11-28,
v0.2.0 on 2026-12-02). Its archives are
on the releases page, with SHA256SUMS, one
checksum per archive. Each archive holds both programs: bicraft, the desktop app, andbicraft-cli, the command-line tool and MCP server.
| Platform | Archive | Holds |
|---|---|---|
| Windows x64 (Windows 10 or later) | bicraft-0.3.0-windows-x64.zip |
bicraft.exe, bicraft-cli.exe and install.ps1 at the top; the README, docs/mcp.md, the visuals, the licences and the notices |
| Linux x64 (glibc) | bicraft-0.3.0-linux-x64.tar.gz |
bin/bicraft, bin/bicraft-cli and install.sh; under share/, the menu entry, icons, file types (.pbix, .pbit, .pbip) and AppStream metadata of the app, the README, the MCP reference, the licences and the notices (share/doc/bicraft/) and the visuals (share/bicraft/visuals/) |
| macOS, Apple silicon or Intel | bicraft-0.3.0-macos-arm64.tar.gz, bicraft-0.3.0-macos-x64.tar.gz |
bin/bicraft, bin/bicraft-cli and install.sh; the README, the MCP reference, the licences and the notices (share/doc/bicraft/) and the visuals (share/bicraft/visuals/) |
Both run from the extracted folder. install.ps1 copies the two programs to%LOCALAPPDATA%\bicraft\bin; install.sh copies bin/ and share/ under ~/.local (or a
prefix you give), so the app gets its menu entry and file types. Neither changes PATH, the
registry, default applications or client configurations. BIcraft's fourteen Power BI visuals come
as .pbiviz files in each archive.
The Linux programs are linked against glibc (dynamically, built on Ubuntu 22.04); the archive's
README states the oldest glibc they need. The desktop app needs a graphical session (Wayland or
X11) and a Vulkan or OpenGL driver. It has been built and checked in WSL Ubuntu (its offscreen
render of a project, bicraft FILE --render), but not yet run in a full Linux desktop session.
macOS. The macOS archives are built and smoke-tested on GitHub's macOS runners only; nobody
has run them on a Mac by hand. They are not signed with an Apple Developer ID nor notarized, so
macOS (Gatekeeper) refuses the first run of a downloaded program. Allow it once, either way:
- in Terminal, in the extracted folder:
xattr -dr com.apple.quarantine .(removes the download
mark from every file); - or run
bin/bicraft-cli --version, open System Settings › Privacy & Security, click Open
Anyway, and run it again (the same forbin/bicraft); before macOS 15, a right click › Open on
the file in Finder does the same.
install.sh copies bin/ and share/ under ~/.local (or a prefix you give). There is no.app bundle yet: start the desktop app from Terminal (bicraft Sales.pbix).
The archives are built by cargo xtask dist, locally or by the GitHub workflow.github/workflows/release.yml for a v* tag; docs/releasing.md describes
both. You can also build from source, as in Getting started.
From crates.io. Not published yet. Once it is, the command-line tool and MCP server will also
install with Cargo (Rust 1.95 or newer):
cargo install bicraft-cli
Only bicraft-cli and the library crates it uses are published; the desktop app is not. Abicraft-cli built from crates.io has no browser app (its /app/ page says so) and usually no
commit in --version; use a release archive for the desktop app and the browser app
(docs/releasing.md).
Interoperability
BIcraft is an interoperability implementation. It builds on Microsoft's public specifications
([MS-XLDM] and the Open Specifications), Microsoft's published schemas (PBIR/PBIP JSON, report
themes) and the TMDL/TMSL documentation, open-source code and data under their licences (MIT, Apache-2.0,
BSD-3-Clause, CC0, the SIL Open Font License and others, listed in
THIRD_PARTY_NOTICES.md) and black-box testing with Power BI
Desktop on our own synthetic files. The format notes are in docs/formats/.
The XPress9 codec (crates/xpress9) is a Rust port of the C source Microsoft published under the
MIT licence in microsoft/Extensible-Storage-Engine.
The PBIR and report theme schemas, the best-practice rules and the Selawik fonts are Microsoft
releases under MIT or the SIL Open Font License, vendored unmodified with their licences. The
repository holds no other Microsoft code and no Power BI files authored by others; test
fixtures are generated by the project.
docs/interoperability.md describes the sources, the black-box testing
and the rules contributors follow.
Trademarks. Power BI, Power BI Desktop, Analysis Services and Microsoft are trademarks of the
Microsoft group of companies. BIcraft is an independent open-source project. It is not affiliated
with, endorsed by or sponsored by Microsoft. The names are used only to describe the file formats
BIcraft works with.
The Crafting Apps
BIcraft follows the development method of the Crafting Apps, the free, open-source Rust
tools of the ArtCraft team, in particular
DeckCraft: the same rules for agents, the same
"everything is a command" engine, one egui UI for the desktop and the browser, and the same
quality gate. docs/method.md compares the two and lists where BIcraft keeps a
stricter rule of its own. BIcraft is a separate project: it is not made, endorsed or supported
by the ArtCraft team, and it does not use the ArtCraft name or marks.
| App | What it's for | Code |
|---|---|---|
| PhotoCraft | Image editing: layers, masks, type and real PSD files | GitHub |
| VectorCraft | Vector illustration | GitHub |
| FilmCraft | Video editing, color and sound | GitHub |
| LightCraft | Photo library and raw development | GitHub |
| PdfCraft | Reading, organizing and protecting PDFs | GitHub |
| EffectCraft | Motion graphics and visual effects | GitHub |
| DesignCraft | Page layout and publishing | GitHub |
| FigCraft | Interface design and prototyping | GitHub |
| WordCraft | Word processing and documents | GitHub |
| SoundCraft | Audio recording and editing | GitHub |
| DeckCraft | Presentations and slide decks | GitHub |
| CADCraft | Computer-aided design | GitHub |
| GridCraft | Spreadsheets and data | GitHub |
| TextureCraft | 3D texture painting | GitHub |
| Craft Anything | Agent tooling for driving and checking applications | GitHub |
| BIcraft (this repository, independent) | Power BI files from the command line and from AI agents | GitHub |
License and credits
BIcraft is dual-licensed under MIT or Apache-2.0, at your option.
Copyright (c) 2026 the BIcraft contributors. Required notices are in NOTICE.
Embedded third-party material keeps its own licence: each component is described in
THIRD_PARTY_NOTICES.md, every asset is listed with its author, source
and licence in ATTRIBUTION.md, and the licence texts are underlicenses/. bicraft-cli licenses prints them.
BIcraft's icons, themes, custom visuals, screenshots, sample reports and test files are its own
work, drawn or generated in code on synthetic data. Apart from the open-licensed Microsoft
releases listed in THIRD_PARTY_NOTICES.md (the XPress9 source, JSON schemas, best-practice rules
and the Selawik font), no Microsoft icons, logos, themes, templates, sample reports or files saved
from someone else's content are included.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in
the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without
any additional terms or conditions.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found