@unifeather/dashboard
v0.1.0
Published
Minimal Vue dashboard for unifeather stats — embeddable as an Astro island. Ships the SFC as source plus a typed fetch helper.
Maintainers
Readme
@unifeather/dashboard
Minimal Vue dashboard for unifeather
stats — embeddable as an Astro island. Ships the SFC as source plus a typed
fetchStats helper.
bun add @unifeather/dashboard # or: npm i @unifeather/dashboardPeers: vue, chart.js, vue-chartjs (and @astrojs/vue for the island).
---
import UnifeatherDashboard from "@unifeather/dashboard/UnifeatherDashboard.vue";
---
<UnifeatherDashboard client:load apiUrl="/api/stats" days={30} />Building your own UI instead? Use the typed fetch helper:
import { fetchStats } from "@unifeather/dashboard";
const stats = await fetchStats("/api/stats", { from, to, interval: "day" });See the main README for details.
MIT © Dennis Hendricks
