Skip to content

M4iKZ/captable-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

mUI Cap Table & Charts Demo

A full Cap Table Manager with live equity dilution analytics β€” built in C++ using native HTML/CSS rendering.

No Electron. No WebView. No browser engine. ~5MB binary.


πŸ“Έ Screenshots

Cap Table Preview


✨ What this demo shows

This is a showcase for the mUI framework β€” specifically its Chart.js-inspired native chart widgets. The Cap Table app was built as a real-world stress test for the charting system and ended up being a fully functional tool.

  • Native chart widgets β€” Pie, Doughnut, Line (with area fill + bezier tension), and Stacked Bar charts, all rendered natively in C++ with a Chart.js-inspired API
  • Live recalculation β€” equity, dilution, and valuation update in real time as you edit any field
  • Full dilution model β€” founder ownership tracked across multiple funding rounds with per-round investor series
  • Color pickers per founder β€” charts update live as colors change
  • JSON import / export β€” save and reload your cap table state
  • Double-click inline editing β€” round titles and company name editable directly in the UI
  • Tab state restoration β€” switching tabs preserves all live state

πŸ“ Chart API

Charts are driven by a clean data-first API inspired by Chart.js:

auto chart = m_orch->getChart("valuationChart");

chart->configureStyle([](ChartStyle& s) 
{
    s.showTooltip = true;
    s.beginAtZero = true;
    s.fill        = true;
    s.tension     = 0.4f;
});

ChartData data;
ChartSeries s;
s.label  = "Post-Money";
s.values = { 0.f, 5'000'000.f, 25'000'000.f };
data.series.push_back(s);

chart->setData(data);

No browser. No JavaScript. Pure C++.


πŸ”’ About mUI

mUI is a high-performance UI framework designed for efficiency and flexibility.

Note

mUI is currently a private framework. If you are interested in the framework or have any questions about this showcase, please contact me for more information.


πŸš€ More Demos

Check out these other projects built with the mUI framework:

  • mUI Showcase: A collection of 3 examples focusing on:
    • Standards: Essential UI components and layout patterns.
    • Inputs: Advanced form handling and interactive inputs.
    • Image Viewer: High-performance image rendering and manipulation.
  • mUI Sudoku Demo: A simple and fun Sudoku game demonstrating game logic integration with mUI.

About

A comprehensive showcase for the mUI framework featuring Chart.js-inspired widgets, real-time equity calculations, and a functional Cap Table simulation with JSON data import/export.

Topics

Resources

Stars

Watchers

Forks