LunivCore: BI As Code

min read

At 175 words per minute.

2025-12-5 Back to posts

LunivCore C/Lua Desktop Workflow Showcase

A lightweight, expressive, efficient, extensible BI language with a Markdown-inspired syntax, powered by a compact C/Lua execution core.

LunivCore: Business Intelligence As Code

Introduction

LunivCore, developed by Luniv Technology, is an innovative Business Intelligence (BI) Engine that fundamentally redefines how analytics and reporting are created and managed.

Billed as “Business Intelligence As Code,” it moves the creation of analytical reports from drag-and-drop graphical interfaces to a developer-first workflow powered by a compact C/Lua execution core.

The core philosophy is to treat analytical reports as code, enabling engineering best practices like version control (Git diffing reports), auditing, and peer review of every calculation and data transformation.


The LunivCore Advantage: Performance Meets Portability

LunivCore is engineered for high performance and extreme portability, making it suitable for modern, distributed data environments.

LunivCore Desktop Workflow

Develop reports, dashboards, and articles all in the terminal.

C-Level Performance and Efficiency

The engine is built around a C core optimized for computationally intensive tasks.

This design allows it to achieve Tens of Millions of Rows per Second throughput, processing billion-row datasets in under 30 seconds on standard hardware.

This speed is attributed to the core’s native memory efficiency.

Deploy Anywhere: Lightweight and Embeddable

The entire C core is exceptionally lightweight (< 5MB) and has zero external dependencies.

This self-contained runtime allows it to be embedded easily into any application—from SaaS platforms to Edge and IoT devices—using a C API or Lua bindings.

There is no database lock-in, offering maximum deployment flexibility.

Version Control for Data Reports

By treating reports as code, LunivCore integrates seamlessly with Git.

This enables teams to:

  • Git diff their analytics to see exactly what changed between report versions.
  • Review changes before deploying new reports.
  • Audit every modification to calculation logic.

Developer-First User Experience (UX)

LunivCore provides two primary ways for developers to interact with the engine: a new domain-specific language and powerful Lua scripting.

The LCore DSL (Domain-Specific Language)

The engine introduces a proprietary .lcore syntax inspired by Markdown. This language is designed to be clean, minimal, and highly readable, allowing engineers to ship analytics faster than traditional BI tools.

For example, a simple report can be written concisely and output a clear text-based chart:

dataset Sales "Q1 Revenue by Region" {
    APAC: 2850000
    Americas: 3450000
    EMEA: 1920000
}

plot Sales as bar

Lua Scripting for Complex Logic

For advanced use cases, Lua scripting is integrated to handle complex logic, dynamic data manipulation, and the creation of reusable analytical components like custom dashboards, value cards, and tables.

The Lua environment communicates directly with the high-speed C core using the Lua C API, ensuring performance is maintained.

The output from both LCore DSL and Lua scripting is auditable, readable text-based visualization, making debugging and inspection simple.

Architecture: C Performance, Lua Flexibility

LunivCore’s architecture is a strategic combination of two languages:

  • Host Language (C): The core engine is written in C. This layer handles the computationally intensive tasks (Lexer, Parser, Executor) and efficiently manages memory for high-speed data processing.

  • Guest Language (Lua): Lua provides a dynamic, developer-friendly scripting interface. It’s used for writing the analytical logic and acts as the user-facing DSL layer.

  • The Glue (Lua C API): A stable, high-speed bridge that securely and efficiently passes data and commands between the C and Lua environments, leveraging the benefits of both.

Conclusion

LunivCore is an open-source, MIT-licensed project built to serve the needs of modern engineering teams.

It provides a unique blend of C-level performance, portability, and developer-first tooling, making it an intriguing alternative to traditional, often proprietary, BI platforms.

Its commitment to treating analytics as version-controlled code is a key differentiator for organizations aiming for higher auditability and data governance.

Nick Stambaugh

Nick Stambaugh

Full Stack Engineer

Entrepreneur & Enterprise Software Engineer

Recent Posts

I Don't Follow, I Subscribe

For over 7 years, I have almost never engaged with social media. I'm sharing my story to help those who are addicted to social media or need direction in their careers.

2026-04-09

Read more →

#SelfHelp #SocialMedia

Why I Let GitHub Actions Maintain My GitHub Profile README

How manually updating your GitHub profile README quietly fails at scale, and how I use GitHub Actions to keep it accurate, current, and maintenance-free.

2026-01-06

Read more →

#Automation #DevOps #Engineering

Why Your Astro JavaScript Works in Chrome but Breaks in Firefox

How browser inconsistencies in JavaScript APIs can silently tank your Astro site, and why engineers often miss them.

2025-12-25

Read more →

#WebDev #Astro #Frontend #JavaScript

Software Can Stop Losing You Money

How engineers can apply software thinking to maximize sales, reduce errors, and improve business outcomes.

2025-12-25

Read more →

#Business #Tech #Opinion

LunivCore: BI As Code

A lightweight, expressive, efficient, extensible BI language with a Markdown-inspired syntax, powered by a compact C/Lua execution core.

2025-12-5

Read more →

#LunivCore #BIAsCode #C #Lua #BusinessIntelligence

Astro/JS Randomized Banner Icons

A guide to creating dynamic, randomized banner icons.

2025-11-18

Read more →

#Astro #TailwindCSS #WebDev