A soft neumorphic bar app for specialty coffee: grind and dose dials, a shot timer, the shot log, beans, machines and the counter queue.
Web
11 páginas
$69
Endereço da página: /
Mais abaixo ↓
Já incluído
O que você recebe
Claro e escuroUsa as cores do seu tema
Desktop, tablet e celularAs telas para as quais foi feito
Pacotes…
Tamanho do código…
Leve para a bateria30 fps, em repouso quando parado
Pausa quando ocultoFora da tela ou em outra aba
Reduzir movimentoCalmo para quem pede
Verificado a cada mudança
Segurança verificada em 28 de nov.
Verificação de tiposTypeScript strict
Lint e formataçãoESLint · Prettier
Testes e buildCapturas de tela claras e escuras
Auditoria de segurançaSem alertas de gravidade alta ou crítica
Idade dos pacotesToda versão pública há 7+ dias
CPU em repousoMenos de meio núcleo em repouso, ≤ 30 fps
Código
Algo errado com este app? Enviar feedback ›
espresso-tamperReact
espresso-tamper.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.
beans.tsxpageBeans: stock by coffee with Reorder, the bags filtered by status and coffee in the address, and the reorders on the way.
coffee.tsxpageOne coffee: its recipe on dials, its shots and its details with the bags in stock, as tabs in the address; edit and delete it.
coffees.tsxpageCoffees: every coffee as a raised card with its roast, rest, recipe and stock, filtered by status in the address; Add opens the form.
home.tsxpageOverview: the grind and dose dials, the shot timer and the bean stock up top, then the counter, machines, today's numbers, recent shots, bags coming off rest and machine care.
machine.tsxpageOne machine: its boiler setpoint on a dial and its service, its care log filtered by kind, and its water filter, as tabs in the address.
machines.tsxpageMachines: each espresso machine's boiler, steam, water filter, last backflush and service, then the recent care log; log care from here.
orders.tsxpageThe counter: orders as tickets on a board from queued to served; drag one along or press Next, with Undo; add, edit and delete orders.
reports.tsxpageReports over 7, 14 or 30 days: shots pulled, coffee binned and good shots, a chart of each day, the best recipe per coffee to use, and each barista's shots.
settings.tsxpageSettings: the bar's name, target ratio, rest days and reorder line; the baristas on the rota; then Appearance (style, theme and language).
shots.tsxpageThe shot log: every shot in a flat table, filtered by coffee, result and barista in the address, 30 at a time; log, edit and delete through the form.
sign-in.tsxpageThe sign-in page (#/sign-in): a drawn counter of two soft dials and a tamper on its puck beside the form card, without the top bar.
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.
appearance.tsxsectionSettings → Appearance: the style (Soft or Flat) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
bag-form.tsxsectionThe add and edit form for a bag of beans, and the reorder form that sends a coffee's bags to the roaster.
bag-table.tsxsectionA flat table of bags: coffee, roast date, rest, opened and grams left, with open, finish, edit and delete on each row.
care-form.tsxsectionThe form that logs machine care: which machine, what was done, who did it and a note.
care-table.tsxsectionA flat table of machine care: when, which machine, what was done, by whom and the note, with delete on each row.
coffee-form.tsxsectionThe add and edit form for a coffee: name, roaster, origin, process, roast, roast date, status and tasting notes.
order-form.tsxsectionThe add and edit form for a counter order: the name to call, the drink, milk, single or double and the barista on it.
overview-hero.tsxsectionThe Overview's first row: the grind and dose dials for the coffee on the dials, the shot timer that logs what it pulls, and the bean stock in sunk slots.
overview-rows.tsxsectionThe Overview's lower rows: the counter now, the machines, today's numbers, then recent shots, bags coming off rest and the next machine care; each card clicks through to its list.
recipe-dials.tsxsectionA coffee's recipe on four dials (dose, yield, time, grind) and a brew temperature track, the ratio against the bar's target, and what the shot log says.
shot-form.tsxsectionThe log and edit form for a shot: coffee, barista, the numbers, good or bad, sour to bitter and the tastes.
shot-table.tsxsectionA flat table of shots: when, coffee, barista, grind, in and out, time, tastes and good or bad, with edit and delete on each row.
sidebar.tsxsectionThe phone menu's content: the logo, search and the page keys stacked, the picked one sunk with a clay dot.
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.
top-bar.tsxsectionThe top bar: the logo, a sunk tray of page keys (the picked one sinks, with a clay dot), search, the theme switch, Settings and the account menu. Clear at rest; a soft ground fade comes in once the page scrolls under it.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
iris.tspartThe iris card style: each card opens as a circle from its center.
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 Soft style's backdrop: a faint, still dot grid pressed into the ground at the top of the page, gone in Flat; with followBackground it paints your background instead.
bar-chart.tsxpartA bar chart in a sunk well: raised pill bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
bar.tspartThe bar's small sums every page shares: a bag's rest, a coffee's stock, a brew ratio and the good share of some shots.
board-model.tspartA board as data: every card's place (one order) and column, and how a move changes them.
board.tsxpartA board of columns and cards: drag a card (mouse, pen or a short press on touch) with a lift and a gap where it will land, or pick it up with Space and move it with the arrow keys; the other cards glide out of the way.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
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.
drag-board.tspartThe board's drag engine: mouse, pen and touch drags with a lift, a gap where the card will land, auto-scroll near the edges, and a drop or Escape that settles the card into place.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
flip.tspartFLIP: when cards change place, each one glides from where it was to where it is now instead of jumping.
format.tspartHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
icons.tsxpartThe logo (a tamper seen from above, pressed into a puck) and the line icons, drawn on a 24-unit grid with round ends.
keyboard-move.tspartMoving a board card with the keyboard: Space picks it up, the arrow keys move it, Space or Enter drops it, Escape puts it back; each step is read out.
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).
line-chart.tsxpartA line chart in a sunk well with a soft area under it, in the primary: the glowing line draws itself in, its points are small raised dots, the latest one marked, and new values roll the line to its new shape.
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.
neu.tsxpartThe bar's soft controls: a round dial that clicks from step to step (a real slider: turn it, arrow keys, Page Up/Down, Home/End), the shot timer ring, a sunk gauge slot, an LED, a tray of keys and a switch (the taste slider is track.tsx).
page-head.tsxpartA page's head: its title, one line under it and its actions on the end side; and the confirm dialog every delete asks through.
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 springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
shot-clock.tspartThe shot timer on one shared clock: it redraws at most 30 times a second, rests in hidden tabs and while its ring is off screen, and keeps true time (it stores when the shot started, not a tick count).
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, at the bottom end.
track.tsxpartA short horizontal slider (sour to bitter): a sunk track, a raised thumb; tap or drag along it, or the arrow keys.
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.
seed-coffee.tsdataThe pretend coffees, baristas, shot log and daily counter numbers, laid out around today so the demo always looks current.
seed-ops.tsdataThe pretend bags of beans, reorders, machines with their care log, today's counter orders and the bar's settings.
types.tsdataThe shapes the fake API answers with: coffees and their recipes, shots, bags of beans, machines and their care log, counter orders, baristas and the bar's settings.
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}).
espresso-tamper.tsx
The page: the sections in order.
Carregando…
Ideal para
Specialty coffee bars with a few baristas and two machines that dial in, log shots and keep beans and machines in check.
Como funciona
Turn the grind and dose dials, pull with the ring timer, log good or bad, then move tickets along the counter board.
Como usar
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.
Nenhum pacote extraSó React, nada mais
108,0 kB com gzip · 77 arquivosO download completo