A home energy app for a house with solar, a battery and smart devices: frosted glass over a soft drawn golden-hour sky, a live power flow with streaming dots, rooms, rules, usage and cost, and a battery charge plan.
Web
9 pages
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Clair et sombreUtilise les couleurs de votre thème
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec cette application ? Envoyer un avis ›
energy-aerialReact
energy-aerial.tsxpageThe page: the sections in order.
content.tscontentEvery word and number: brand, nav links, each section's copy and lists.
theme.tsthemeThe colors as CSS variables, and the shared class strings.
README.mdreadmeHow to install it, and where to change the text, colors and form.
pagespagesOne file per page: the sections it shows, in order.
alerts.tsxpageAlerts: what needs a look (high use, devices offline, a low battery), with search, filters by status and kind, newest or oldest first, and picking several to mark seen, resolve or reopen with Undo; a second tab holds the alert rules.
automations.tsxpageRules: the automations in the order they run, with search, a state filter and sort, picking several to turn on, off or delete with Undo, dragging to change the order, and each rule's editor on its own page.
battery.tsxpageBattery: the charge now and what it's doing, the backup reserve (a slider shown live on the gauge), how it spends its charge, grid charging, the 24-hour charge plan and its health; each change saves with Undo.
devices.tsxpageDevices: every device with search, filters by room, type, state and group (kept in the address, so Back returns to them), sorting, picking several to switch, move, group or delete with Undo, and adding one; a device opens its own page.
overview.tsxpageOverview: a greeting, the live power flow in one big glass panel with the rooms around it, today so far, today hour by hour beside the battery, then the rules, alerts and biggest loads.
rooms.tsxpageRooms: every room as a glass tile you can search, filter by what's on, sort, pick several to switch together, drag into your own order (with Undo), edit and delete; a room opens its own page.
settings.tsxpageSettings in four tabs: the tariff (its own editor), the home system the app reads from, Appearance (style, theme and language) and the signed-in account.
sign-in.tsxpageThe sign-in page (#/sign-in): the form on a glass card over the house at golden hour, and beside it on wide screens a glass note with what the home did today.
usage.tsxpageUsage and cost: a day by hour, a month by day or a year by month, stepping back in time, showing use, solar, the grid or cost, with totals, the split by room, the biggest users, the tariff and a CSV export; every choice lives in the address.
sectionssectionsOne file per page section.
account-menu.tsxsectionThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
alert-rules.tsxsectionThe alert rules: what you want to be told about (high use, a device offline, a low battery, the export limit), each with its threshold, how you're told and a switch; the editor previews the alert it would send and checks the threshold.
appearance.tsxsectionSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
charge-plan.tsxsectionThe battery's charge plan: 24 hour cells you paint with a mode by dragging across them (mouse, pen or finger) or with the arrow keys and Space, Undo for each stroke, and a live preview of the charge it would give over today.
device-bulk.tsxsectionWhat the device list does to the picked devices: switch them on or off, move them to a room, set their group or delete them, each said in a toast with Undo.
device-detail.tsxsectionA device's own page: a big power switch and what it draws, its details and the rules that switch it, then tabs for its schedule, the last two weeks of use and who switched it when.
device-form.tsxsectionThe device editor in a dialog: name, room, type, draw and group, checked as you go, with the device's row previewed live; adding or saving offers Undo.
dock.tsxsectionThe dock: the floating glass bar at the bottom that is the app's whole navigation. A bead of light glides under the page you are on, icons lift as the pointer passes, alerts carry their count; on a phone the last pages open from More.
flow.tsxsectionThe live power flow: solar, the house, the battery and the grid as glass discs, with dots of power streaming along the lines between them at a speed set by how many kW flow; each disc opens its list.
overview-lists.tsxsectionThe Overview's last row: the rules with their switches and whether each is ready, the open alerts, and the devices drawing the most right now; every row opens its own page.
overview-today.tsxsectionThe Overview's middle rows: four tiles for today so far (each opens its report), today hour by hour, and the battery with its reserve and what the plan does next.
room-detail.tsxsectionA room's own page: its name and what it draws now, then tabs for its devices (each switchable), their schedules, and this month's use split by device.
room-forms.tsxsectionThe room dialogs: add or edit a room (its name and kind, with the tile previewed live as you type) and delete one, moving its devices to another room, both with Undo.
room-tile.tsxsectionA room as a glass tile: its kind, name, how many devices are on and what they draw, and one switch for the whole room; while something in it is on, a warm glow breathes softly behind it.
rule-editor.tsxsectionThe rule editor, its own page: when (a trigger and allowed hours), then (a device and how long), checked as you type, an Undo for each change, and a live preview of whether it would run now and when it would have run today.
rule-fields.tsxsectionThe rule editor's cards: the trigger and its allowed hours, the action, and the live preview that reads the meter and today's solar to say whether the rule would run now and when it would have run today.
schedules.tsxsectionThe schedules of one device or one room's devices: each with its days, its hours drawn on a day bar, a switch, edit and delete with Undo; the editor previews the hours live as you set them and checks them before saving.
sign-in-form.tsxsectionThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
tariff-form.tsxsectionThe tariff editor: currency, the peak and off-peak rates, what exports earn, the daily charge and the peak-hour windows, checked as you type, with Undo for each change and a live preview of the day under it.
top-pills.tsxsectionThe two glass pills floating in the top corners: the logo and the home on one side; the live clock with its pause, search, the theme switch and the account menu on the other.
usage-breakdown.tsxsectionThe Usage page's lower row: the period's use split by room (each opens its room), the devices that used the most (each opens its usage), and the tariff the costs come from.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
burst.tspartThe burst card style: cards spread out from the middle of the page, the nearest first.
rowsrowsWhat several sections share.
rise.tspartThe rise row motion: each row on screen rises 8px from faint.
core.tsxpartThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
index.tspartThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
appearance.tspartHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe backdrop: a drawn mesh of four big soft color clouds behind the glass (sunlight amber, sky blue and warm earth), dusky in dark and near-white pastel in light, drifting very slowly; with followBackground it paints your background instead.
chart-path.tspartA chart's line and area paths in each curve Chart Studio has (straight, smooth, step), and the classes that let a Chart Studio curve swap them in CSS.
charts.tsxpartThe charts: an area chart for a day hour by hour, grouped bars for months and years, and a donut for shares; each draws itself in, follows your Chart Studio, and answers the pointer and the arrow keys.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
csv.tspartExport CSV: turns rows into a CSV file and hands it to the browser to save.
dialog.tsxpartA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
format.tspartHow numbers and dates are written: by Intl, the current language's way ("2.4 kW", "2,4 kW"; "Nov 19", "19 nov."), money in the tariff's currency.
home.tspartThe loads most pages share (rooms, devices, the tariff), the words for a rule's sentence and an alert's line, and an action that saves through the fake API and offers Undo.
icons.tsxpartThe logo and the line icons, drawn on a 24-unit grid; every stroke reads the icon variables, so they follow your Icon Studio.
language.tspartThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
liquid-glass.tsxpartLiquid glass: frosted panels in plain CSS. A panel is .energy-aerial-glass (theme.ts PANEL), tinted flat with a fixed bright rim; data-lens frosts the shell and two or three key panels a page; a hovered card brightens its rim.
liquid-marker.tspartThe selected marker that moves like a drop of liquid: shared by every segmented control, tab row and the nav droplet.
list-view.tspartWhat a list does with its rows, whatever it looks like: the sort kept in the address (?sort=name&dir=asc), picked rows with shift-click ranges, pick all shown, and Show more.
live-clock.tsxpartOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
live.tspartThe one live clock: every two seconds the meter is read and the automations run, only while something on screen listens, the tab shows and live isn't paused (the pause in the top bar also stills the backdrop and the flow).
moments.tspartThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
motion.tspartMotion helpers: the reduced-motion check, live, and run-once-in-view.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
scroll-to-view.tspartScrolls an element into view moving only its own scroll container, never the page around it.
select-box.tsxpartA native select dressed to match the app: no browser arrow, a drawn chevron instead.
session.tspartWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
sheet.tsxpartThe phone sheet: a modal panel that rises from the bottom with the rest of the dock; Escape, a tap outside or its close button slides it away.
sortable.tspartDrag to reorder, for a list or a grid: grab the handle with a mouse, pen or finger, the item lifts at the grab point and follows, the others slide aside (FLIP), the page scrolls at the edges, Escape puts it back, and the keyboard path is Space, arrows, Space, read out for screen readers.
states.tsxpartThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
store.tspartThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
ticker.tsxpartA number that counts up while its page builds in, and rolls to its new value whenever it changes.
toasts.tsxpartThe toasts: short notes that confirm what just happened, stacked above the dock.
ui.tsxpartThe app's small controls: the switch whose knob springs across, a pill switch whose marker flows to the pick like a drop (buttons or links), a checkbox, a page's heading row and a level bar.
use-api.tspartLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
use-dialog.tspartOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
datadataThe pretend data and the fake API: swap it for your backend.
account.tsdataThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
api.tsdataThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
db.tsdataThe fake backend's store: what the API reads and changes this visit. A reload starts it over from data/home.ts.
history.tsdataThe household's past readings: hour by hour for any day, and day by day back a year, made from one seed so every visit shows the same history. A real backend returns these from its meter store.
home.tsdataThe pretend household: rooms, devices, schedules, automations, the tariff, the battery and alerts. Names are words (no translation needed: people name their own rooms); kinds are ids the locale files name.
live.tsdataThe live meter: every two seconds it works out solar, the house, the battery and the grid from the sun and the devices that are on, and runs the automations whose trigger is met. A real backend streams these readings from the inverter.
localeslocalesEvery word the app shows, one JSON file a language; list.ts names them.
en.jsoncontentOne language's words, with the keys of en.json.
es.jsoncontentOne language's words, with the keys of en.json.
list.tscontentThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
energy-aerial.tsx
The page: the sections in order.
Chargement…
Idéal pour
Households and home-energy startups with solar panels, a home battery and smart plugs who want one calm place to run them.
Fonctionnement
Power dots stream from the sun to the house at live speed; switch rooms, write rules like run the dishwasher on sunshine, paint a charge plan.
Utilisation
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.
Aucun paquet en plusReact seulement, rien d’autre
124,3 ko gzippé · 80 fichiersLe téléchargement complet