Skip to content

Ruixoris/mimo-token-orbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŒ MiMo Token Orbit

Track every token. Visualize every dollar. Optimize every prompt. A clean, dark-mode usage analytics dashboard for Xiaomi MiMo API developers โ€” daily, weekly, monthly, and yearly token tracking with cost estimation.

MiMo Orbit Banner

License: MIT Built for MiMo Orbit Vanilla JS Tailwind CSS Chart.js Status


๐ŸŽฏ The Problem

You're hacking with MiMo V2.5 Pro, Reasoner, VL, and TTS across 5 different projects. By Friday, you have no idea:

  • How many tokens did I burn today?
  • Which model is eating my budget?
  • Is my weekly trend going up or down?
  • What's my projected monthly cost?

The MiMo Platform shows you raw usage. MiMo Token Orbit shows you the story.


โœจ Features

Feature Detail
๐Ÿ“Š 4-Tier Aggregation Daily ยท Weekly ยท Monthly ยท Yearly โ€” switch with one click
๐Ÿ’ธ Cost Estimator Per-model rate config; defaults match MiMo Platform pricing
๐ŸŽฏ Per-Model Breakdown Doughnut chart: see which model dominates your spend
๐Ÿ“ˆ Trend Chart Bar chart adapts to selected period (24h hourly ยท 7d daily ยท 30d daily ยท 12m monthly)
๐Ÿ“ Recent Logs Table Last 30 entries with timestamp, task tag, total, cost
๐Ÿ’พ CSV Export / JSON Import Move data freely across machines or pipelines
๐Ÿ”Œ MiMo API Sync (beta) Direct pull from MiMo Platform โ€” bring your own key, stored locally only
๐ŸŽจ Cyberpunk Dark UI Built for late-night debugging
๐Ÿ”’ 100% Local All data in localStorage โ€” no backend, no telemetry, no cloud
โšก Zero Build Step Just serve index.html. No webpack, no node_modules, no headache.

๐Ÿš€ Quick Start

1. Clone

git clone https://github.com/kapetot/mimo-token-orbit.git
cd mimo-token-orbit

2. Run

# any static server works
python3 -m http.server 8080
# or
npx serve .

3. Open

http://localhost:8080

That's it. Sample data seeds on first load โ€” explore, then click Clear All when you're ready to track real usage.


๐Ÿ“ธ Screenshots

๐Ÿช Dashboard Overview

Dashboard

๐Ÿ“Š Weekly Trend

Weekly

๐Ÿ—“๏ธ Monthly Breakdown

Monthly

๐ŸŒ Yearly Overview

Yearly

๐Ÿ“ Recent Logs + Pricing Config

Logs


๐Ÿงฎ How Cost Is Calculated

cost_USD = (input_tokens / 1,000,000) ร— input_rate
        + (output_tokens / 1,000,000) ร— output_rate

Default rates based on MiMo platform pricing snapshot. Edit them in the Pricing Config card.

Model Input ($/1M) Output ($/1M)
MiMo V2.5 Pro 0.50 2.00
MiMo V2.5 Flash 0.10 0.40
MiMo V2.5 VL 0.30 1.20
MiMo V2.5 TTS 0.05 0.05
MiMo Reasoner 1.20 4.80

๐Ÿ”Œ MiMo API Sync

To pull usage automatically from MiMo Platform:

  1. Get your API key from platform.xiaomimimo.com
  2. Paste it into the Live API Sync card
  3. Click Sync from MiMo Platform

Production Note: Direct browser-to-MiMo calls require a CORS proxy. Recommended pattern:

Browser โ†’ your-cloudflare-worker โ†’ MiMo API

A reference Worker template is provided in /docs/cf-worker.md.


๐Ÿ›ฃ๏ธ Roadmap

  • Daily / Weekly / Monthly / Yearly aggregation
  • Multi-model cost estimator
  • CSV export
  • JSON import for cross-device sync
  • Per-model doughnut chart
  • Adaptive trend chart per period
  • MiMo Platform live sync (Cloudflare Worker template)
  • Multi-team workspace mode
  • Budget alerts (notify when projected monthly cost exceeds threshold)
  • PWA install (offline-first)
  • Telegram bot integration (/usage today, /cost month)
  • DuckDB-Wasm for million-row queries

๐Ÿ—๏ธ Tech Stack

  • HTML5 + Vanilla JS โ€” zero build, zero dependencies in package.json
  • Tailwind CSS (CDN) โ€” utility-first dark cyberpunk theme
  • Chart.js 4.4 โ€” trend bars + model doughnut
  • localStorage โ€” offline-first persistence

๐Ÿค Contributing

PRs welcome. For major changes, open an issue first.

# fork โ†’ branch โ†’ commit โ†’ PR
git checkout -b feat/your-feature
git commit -m "feat: add budget alerts"
git push origin feat/your-feature

๐Ÿ“œ License

MIT โ€” do whatever, just keep the credit.


๐ŸŒŸ Why I Built This

I'm part of the Xiaomi MiMo Orbit 100T Creator Program โ€” a 30-day initiative giving 100 trillion free tokens to AI builders worldwide.

When I started racking up usage across MiMo Pro, Reasoner, and VL simultaneously, I realized I had no clean way to see my consumption pattern. The platform dashboard is functional but generic. I wanted something that:

  1. Speaks to developers โ€” quick keyboard input, no clicks-to-add
  2. Shows the story โ€” not just numbers, but trends
  3. Stays fast โ€” single HTML file, no install
  4. Stays mine โ€” no telemetry, my data on my machine

So I built MiMo Orbit. If it helps another MiMo dev see their patterns clearer โ€” mission accomplished.


Built with ๐Ÿ”ฅ for the Xiaomi MiMo community

Try the demo ยท Report bug ยท Request feature

About

๐ŸŒŒ Track Xiaomi MiMo API token usage across day, week, month, year. Built-in cost estimator, multi-model breakdown, CSV export. Built for the MiMo Orbit 100T Creator Program.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors