Files
plugins/packages/day-card/package.json
T
yetone cbb58f654a day-card 0.1.0: a day of your usage drawn as a card, copied or saved as a PNG
A new page plugin, @magpie-community/page-day-card, for JungleyYeh on X,
who asked for a "daily AI statement".

- It shows a chosen day (today by default, others from a date menu): its
  tokens, cost, calls and errors, then each agent with its models and
  icons. Below them come the streak, the average active day and the last
  two weeks.
- Copy puts the card on the clipboard as an image; Save writes it as a
  PNG.
- The design is quiet, with no gradients and no coloured accents, in
  light and dark. It speaks en, zh, zh-TW, ja and de.
- It asks for one read, usage:day, and needs magpie 0.1.3427 (623e797fd)
  for that read and for magpie.image.copy/save.

What was run (mote):
- bun test packages/day-card: 11 pass, 0 fail. Before engines.magpie
  was set, the guard test was red on the placeholder.
- bun scripts/check.mjs: exit 0.
- Real use: the page in magpie's real GUI server with a sandbox HOME
  holding a copy of real usage, in Chromium and WebKit, light and dark,
  en/zh/zh-TW/ja/de, at 420 and 1100 px, with an earlier day picked and
  Copy pressed. No page errors (magpie 623e797fd's body has the rest).
2026-11-09 23:23:24 +08:00

20 lines
870 B
JSON

{
"name": "@magpie-community/page-day-card",
"version": "0.1.0",
"description": "A page in magpie's window that draws a day of your AI usage as a card: tokens, cost, each agent and its models, your streak and your average day. Copy it as a picture or save it as a PNG",
"files": ["page", "README.md"],
"keywords": ["magpie", "magpie-page", "usage", "tokens", "cost", "card"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/day-card" },
"engines": { "magpie": ">=0.1.3427" },
"magpie": {
"page": {
"title": "Day card",
"titles": { "zh": "每日用量卡", "zh-TW": "每日用量卡", "ja": "1日の使用量カード", "de": "Tageskarte" },
"file": "page/index.html",
"icon": "page/icon.svg"
},
"permissions": ["usage:day"]
}
}