pbi-doc-generator
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 35 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Power BI Service & Local (.pbix, .pbip, .xlsx) Documentation Portal, Star-Schema Viewer, Live Lineage Explorer & MCP Server
Power BI Documentation & Live Lineage Studio (pbi-doc-generator v1.0)
Turn Power BI Service Workspaces and local .pbix / .pbip / .xlsx files into clean, searchable HTML documentation with interactive Star-Schema diagrams, auto-formatted DAX catalogs, visual Power Query pipelines, 3-panel end-to-end Live Lineage, and a built-in local Model Context Protocol (MCP) server for AI assistants.
👉 Explore the Live Interactive v1.0 Demo Portal in your browser (no installation required)
Quick Start
Option 1: Portable Windows Download (No Python Required - Recommended for Business Users)
- Click here to download
PBI_Doc_Generator_Windows_Portable.zipdirectly (or view the Release page). - Right-click the downloaded ZIP file and choose Extract All...
- Open the extracted folder and double-click
PBI_Doc_Generator.exe-> your browser openshttp://127.0.0.1:8765automatically.
(If Windows SmartScreen asks for confirmation on first launch: click More info -> Run anyway.)
Option 2: Install via pip (Python 3.10+ on Windows, macOS & Linux)
pip install "git+https://github.com/djrien-ai/pbi-doc-generator.git"
Launch the local Web Studio from anywhere:
pbi-doc-generator
(Or clone/download the source repository on Windows and double-click Start_Studio.cmd - it automatically installs requirements.txt on first launch.)
[!IMPORTANT]
Power BI Service Workspace Role Prerequisite (Contributoror higher)
To extract full semantic model definitions (tables, relationships, DAX measures, and Power Query M) from Power BI Service workspaces, your Microsoft account must have at least the Contributor role (Contributor, Member, or Admin) in each workspace you want to document.
- Workspaces where you only have the Viewer role will list basic workspace and report inventory, because Microsoft's Fabric
getDefinition(TMDL) API blocksViewer-only accounts (HTTP 403).- Documenting local
.pbix,.pbip, and.xlsxfiles works 100% offline and requires no Power BI Service permissions.
What Is Inside v1.0
- Power BI Service Multi-Workspace Scanner (Zero Azure Admin Setup Required)
- Sign in with your normal Microsoft account (
Sign in with MicrosoftOAuth 2.0 PKCE in your default browser, plus a fallbackPower BI Web Windowmode for locked-down corporate tenants, Azure CLI, and Service Principal support for CI/CD). - Document 1 or 50+ workspaces into one searchable, 100% offline HTML portal with Grid, List, and By Workspace views, Workspaces & Reports Mapping (highlighting Cross-Workspace Shared Datasets / Thin Reports and Orphan Models), Interactive Live Lineage, and Governance & Health Checks.
- Sign in with your normal Microsoft account (
- Unified Local File Support (
.pbix,.pbip,.xlsx)- Drop or select any local
.pbixfile,.pbipproject (automatically resolves its companion.SemanticModelfolder), or Excel PowerPivot.xlsxworkbook directly in the browser.
- Drop or select any local
- Effortless-to-Read Model Documentation
- Interactive Star-Schema Diagram: Automatically classifies Fact vs. Dimension tables with zoom, pan, fullscreen, and click-to-pin relationship highlighting (contributed by
@jakubpokusa). - Visual Power Query Pipelines: Displays an easy-to-scan transformation step ribbon (
1. Source -> 2. Filtered Rows -> 3. Typed Columns) above collapsible syntax-highlighted M code, recognizing 28+ enterprise connectors (SAP HANA, SAP BW, Snowflake, Databricks, Microsoft Fabric, SQL Server, SharePoint, Excel, BigQuery, and more). - Auto-Formatted & Structured DAX Catalog: Defaults to a fast Compact Table overview with a 1-click toggle to Formatted Cards organized by
Table -> Display Folder -> Dependency Tier, pretty-printing single-line DAX formulas and linkingReads:/Used by:dependencies.
- Interactive Star-Schema Diagram: Automatically classifies Fact vs. Dimension tables with zoom, pan, fullscreen, and click-to-pin relationship highlighting (contributed by
- Interactive 3-Panel Live Lineage Explorer
- Click any upstream database/view, Power Query table, column, DAX measure, or Power BI report to trace live upstream origins and downstream impact with smooth SVG connectors.
- Built-In Local Model Context Protocol (MCP) Server for AI Assistants
- Tab 3 of the Web Studio (
pbi-doc-generator mcp) exposes 8 read-only MCP tools to VS Code GitHub Copilot, Claude Desktop, Cursor, or Antigravity across all your scanned workspaces and imported local.pbix/.pbip/.xlsxmodels, with automatic secret masking.
- Tab 3 of the Web Studio (
Command-Line Usage (CLI & CI/CD)
# Launch the interactive Web Studio (default)
pbi-doc-generator
# Scan specific workspaces incrementally and generate the offline HTML portal
pbi-doc-generator scan --workspace "Supply Chain"
# Generate an anonymized portal safe for external sharing (hides personal/owner names)
pbi-doc-generator portal --anonymous
# Import a local .pbip, .SemanticModel, .pbix, or .xlsx into the multi-model catalog
pbi-doc-generator import-local ./SalesModel.pbip
# Generate a single standalone HTML file for one .pbix / .pbip / .xlsx
pbi-doc-generator file ./Report.pbix
# Start the stdio MCP server for AI assistants
pbi-doc-generator mcp
Security & Privacy by Design
- 100% Local Execution: Metadata, TMDL definitions, and generated HTML files stay on your machine (
127.0.0.1). Zero telemetry or external CDN calls. - Enforced Read-Only API Guard:
PowerBiReadOnlyClientblocksDELETE,PATCH,PUT, and mutatingPOSTrequests in code, allowing onlyGETmetadata calls and the read-only FabricgetDefinitionendpoint. - In-Memory Tokens Only: OAuth access tokens live strictly in Python RAM for the active session and are never written to disk.
- Automatic Secret Redaction: Connection passwords, SAS tokens, API keys, and bearer tokens are automatically masked in both HTML pages and MCP responses. See SECURITY.md for details.
Enterprise Integrations & Architecture Audits
The core of pbi-doc-generator is and remains 100% free and open-source under the MIT License. Organizations looking for custom enterprise integrations (automated CI/CD lineage publishing to SharePoint, Confluence, or Microsoft Purview, historical semantic-model drift monitoring, or white-label governance portals) or an independent Power BI Estate & Semantic Model Architecture Audit can inquire via Bohan VOF (connect with Rien Scheerlinck on LinkedIn).
Community & Support
Special thanks to community contributors @jakubpokusa (interactive Mermaid relationship viewer), @okiyuki99 (Xpress9 pbixray support), and @nblankes (TMDL table doc-comment bug report).
If pbi-doc-generator saves your BI team hours of manual documentation or impact analysis, consider starring the repository or supporting ongoing open-source development via GitHub Sponsors on this repository.
License
MIT License - Copyright (c) 2024-2026 Rien Scheerlinck. See LICENSE for full text.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi