npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

odgs

v1.0.0

Published

The Open Data Governance Schema (ODGS) - A vendor-neutral standard for business definitions.

Readme

🏛️ The Open Data Governance Schema (ODGS)

What is it?

🧩 Why now, why this?

Infographic

The Open Standard for Headless Data Governance
Decouples Business Logic from BI Tools

Build Status Standard Maintained by

License JSON

📉 The Problem: Definition Drift

In the modern data stack, business logic is fragmented. The definition of Gross Margin in dbt often conflicts with the DAX formula in Power BI, which differs from the calculation in Tableau.

Result: Executives don't trust the dashboard, and Data Engineers spend 40% of their time debugging "why the numbers don't match."

🚀 The Solution: Write Once, Sync Everywhere

Headless Data Governance

graph TD
    subgraph PROBLEM ["❌ The Problem: Definition Drift"]
        A[CFO: 'Gross Margin' in Excel] -->|Disconnect| B[dbt: SQL Logic]
        A -->|Disconnect| C[Power BI: DAX Logic]
        B -.-|Mismatch| C
    end

    subgraph SOLUTION ["✅ The Solution: Open Governance Schema"]
        D[("JSON Schema (OGS)
        Single Source of Truth")] 
        
        D -->|Auto-Sync| E[dbt / Snowflake]
        D -->|Auto-Sync| F[Power BI / Tableau]
        D -->|Auto-Sync| G[Data Catalog / Collibra]
    end

    style D fill:#f9f,stroke:#333,stroke-width:4px,color:black
    style PROBLEM fill:#ffcccc,stroke:#333,stroke-width:1px
    style SOLUTION fill:#ccffcc,stroke:#333,stroke-width:1px

The Open Data Governance Schema (ODGS) is a vendor-neutral JSON protocol that acts as the "API" for your business definitions. By decoupling the Definition (The "What") from the Tool (The "How"), you achieve Headless Governance.

How it works

// example: standard_metrics.json
{
  "metric_id": "KPI_102",
  "name": "Gross_Margin",
  "domain": "Finance",
  "calculation_logic": {
    "abstract": "Revenue - COGS",
    "sql_standard": "SUM(gross_sales) - SUM(cost_of_goods)",
    "dax_pattern": "[Total Sales] - [Total Cost]"
  },
  "owner": "CFO_Office",
  "quality_threshold": "99.5%"
}

📂 The Protocol Structure

This repository contains the core schemas that define the "Alphabet" of Data Governance:

| File | Purpose | | :--- | :--- | | standard_metrics.json | The "Golden Record" for KPIs. Define logic, ownership, and sensitivity here. | | standard_dq_dimensions.json | The 60 industry-standard dimensions of data quality (Accuracy, Timeliness, Completeness, etc.). | | standard_data_rules.json | Technical validation rules (Regex patterns, null checks, referential integrity). | | root_cause_factors.json | A standardized taxonomy for why data breaks (e.g., Process_Gap vs Integration_Failure). | | business_process_maps.json | Maps how data entities flow through the business lifecycle. |

✅ Validation & CI/CD Integration

The repository includes a validator script that enforces the governance schema:

python3 validate_schema.py

Output:

🔍 Running Open Governance Schema Validator...
✅ Loaded 72 metrics.
✅ Loaded 50 data rules.
🎉 All Governance Checks Passed!

CI/CD Integration

Add this to your GitHub Actions workflow to enforce governance standards:

- name: Validate Governance Schema
  run: python3 validate_schema.py

This ensures that all metrics and rules have:

  • Unique IDs
  • Assigned owners
  • Defined domains
  • Clear calculation logic

📦 Installation

NPM (Node.js)

npm install odgs

Usage:

import { standardMetrics } from 'odgs';
// or
const { standardMetrics } = require('odgs');

PyPI (Python)

pip install odgs

Usage:

from odgs import standard_metrics

🛠 Usage & Implementation

Option A: Build your own Sync Engine

Fork this repository. Use these JSON files as the configuration layer in your CI/CD pipeline. Write Python/Node parsers to inject these definitions into your tools (dbt schema.yml, Power BI XMLA, etc.).

Option B: The Reference Implementation

If you prefer a managed "Headless Governance" layer that natively supports ODGS and handles the sync to Power BI/dbt automatically, feel free to see the art of possible with these end-state applications built with the same data:

These examples demonstrate the end outcome for the business user of what the Open Data Governance Schema can do.

Commercial Managed Service Partners

For commercial managed services, please visit:


📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Copyright © 2025 Authentic Intelligence Labs


Contributing: We welcome Pull Requests to expand the dq_dimensions or refine the root_cause_factors taxonomy.