A habit tracker in flat minimal: a centered day strip, a today checklist whose pills fill with the accent, a deep streak card with rolling numbers, year heat-maps, drag-sorted routines, friend challenges, reports and eight palettes.
Web
8 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
Sécurité vérifiée le 28 nov.
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 ›
habits-sprigReact
habits-sprig.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.
challenge.tsxpageOne challenge: its numbers, the leaderboard of you and your friends (Leaderboard tab), your days in it one by one (Days tab) and what it counts (About tab); join or leave, edit and delete sit in the head.
friends.tsxpageThe Friends page: your friends (Friends tab) and the challenges you share with them (Challenges tab); ?new=1 opens the form to start a challenge.
habit.tsxpageOne habit: its streak card and year heat-map, numbers and why it matters (Overview tab); its days to change (History); when it is due and its reminder (Schedule); its notes. Edit, archive and delete sit in the head.
habits.tsxpageThe Habits list: search, filters for status, routine, schedule and reminder, a sort, bulk actions, and the habit form (?new=1 to add, ?edit=<id> to change one). Every filter lives in the address, so Back keeps it.
log.tsxpageThe Log: every check-in, skip and missed day, newest first, with search (habit or note), filters for habit, status, weekday, one day or a date range, and a sort. The Overview and Reports open it filtered (?day=, ?habit=, ?status=, ?weekday=, ?from=&to=).
overview.tsxpageThe Overview: the number tiles, the day's checklist beside the deep streak card and the year heat-map, then this week, the challenge, today's reminders and the 30-day trend.
reports.tsxpageReports: completion by habit, by weekday and by month over 4 weeks, 12 weeks or a year, for all habits or one routine; every bar and row opens the Log filtered to it, and the numbers download as CSV.
routines.tsxpageThe Routines page: the board of routines (morning, evening, any time) with their habits to drag between them, and a form to add a routine, rename it or change its time window; deleting one moves its habits to the first routine left.
settings.tsxpageSettings in tabs: Profile (name and email), Habits (reminders by default, their time, the first day of the week, the weekly summary), Appearance (theme, palette, language) and Data (download every check-in as CSV).
sign-in.tsxpageThe sign-in page (#/sign-in): the form on a flat card beside a deep accent panel with the sprig and a streak, over the backdrop, without the rail and top bar; on a phone the panel sits on top, smaller.
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 theme (System, Dark or Light, each a small preview), the palette (eight swatches, or the default from the Brand settings) and the language (System or one of locales/list.ts).
challenge-form.tsxsectionThe challenge form in a dialog, to start a challenge with friends or change one: its name, the habit it counts, the start day, how many days and who joins.
challenge-list.tsxsectionThe challenges list: search, filters for status (live, upcoming, finished) and whether you joined, a sort, deleting several at once (with Undo), and each challenge's progress and friends.
checklist.tsxsectionThe day's checklist, grouped by routine: each habit is a pill that fills with the accent from its start edge when checked off; skip it, or add a note once it is checked or skipped. It shows the day picked in the day strip.
day-strip.tsxsectionThe day strip in the middle of the top bar: a week of days, each with a ring of how much got done; a solid block glides to the picked day, which sets the day the whole app shows. Swipe or the arrows move a week; future days wait.
friend-list.tsxsectionThe friends list: search, a filter for friends in a challenge with you, a sort, removing several at once (with Undo), and the invite form.
habit-form.tsxsectionThe habit form in a dialog, to add a habit or change one: its name, icon, routine, schedule (every day, Monday to Friday, a number of times a week or chosen days), a reminder and why it matters.
habit-history.tsxsectionOne habit's days, newest first: what happened each day (done, skipped, missed, open), its note, and buttons to change the day or write the note. The notes tab shows only the days with a note.
habit-table.tsxsectionThe habits list: a row per habit with its routine, schedule, streak, 30-day rate and reminder, a check box each for bulk actions, and the bar of those actions while some are picked.
log-table.tsxsectionThe Log's rows: a habit on a day, what happened and its note; check boxes for clearing several check-ins at once (with Undo), and the note editor.
overview-cards.tsxsectionThe Overview's smaller cards: the number tiles, this week's completion bars, the challenge you lead in, the reminders still to come today and the 30-day trend; each clicks through to the list behind it.
rail.tsxsectionThe narrow icon rail at the start edge (each page an icon, its name on hover, the current one under a gliding accent block) and, on a phone, the same links as a bar along the bottom.
routine-board.tsxsectionThe routines board: a column per routine with its time window and habits, which move by dragging their handles or by keyboard (Space picks one up, arrows move it, also to the next routine, Space drops, Escape puts it back), each move read out and undoable.
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.
streak.tsxsectionThe Overview's signature pair: the deep streak card (a big hand-drawn number that rolls up on every check-off, the best run and this week) and a year heat-map whose weeks fade in one after another.
top-bar.tsxsectionThe top bar: the sprig wordmark (its leaves fill as today's habits get done), the day strip in the middle, and search, the theme, New habit and the account menu at the end. On a phone the day strip takes its own row under it.
ui.tsxsectionThe small pieces every page is built from: the page head, a card and its head, segmented controls with the gliding block, a search box, a check box, a progress ring, a thin meter and a page's loading skeleton.
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.
flip.tspartThe flip row motion: each row on screen tilts up from its bottom edge, 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 from Settings → Appearance and the page around it, and the palette picked there.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe backdrop: two tall drawn sprigs, still, in the ground and panel shades behind the pages (their strength is the Glow setting); with followBackground it paints your background instead.
book.tspartThe book every page reads (habits, routines, check-ins, friends, challenges, settings), the day picked in the top bar's day strip, and the names seeded items take from the locale files.
bulk-bar.tsxpartThe bar over a list while rows are picked: how many, the list's own actions, and a way to unpick them all.
charts.tsxpartThe charts: bars of completion rates (each bar a link to the list behind it; the best one in the accent) and a smooth rate line that redraws in place when its range changes.
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 ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
glider.tspartThe current-place marker shared by the icon rail, the day strip and every segmented control: a solid block that glides to the picked item.
icons.tsxpartThe sprig logo and the line icons, drawn on a 24-unit grid with round ends; every habit's icon too.
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).
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.
palettes.tspartThe eight palettes (the same as meta.json's presets): one accent (Primary), one neutral hue (Tint) and a deep neutral for second chart series (Secondary). theme.ts works every shade out of them.
roll.tsxpartThe big streak number: each digit is a column of 0-9 that rolls to its place, the ones first, so a check-off rolls 46 up to 47.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
routine-drag.tspartDragging habits between routines by their handles: the held row follows the pointer (mouse, pen or touch: the handle takes no scroll gestures) under the point grabbed, the rows of the list it hovers part to show where it lands, the window scrolls near its edges, Escape puts it back, and a drop glides it into its place. Any other change of order (a keyboard move, Undo) slides the rows there (FLIP).
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.
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 palette (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.
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.
dates.tsdataCalendar days as ISO dates ("2026-11-27"), read at noon UTC so no time zone moves them a day.
rules.tsdataThe rules every page and the fake API count by: what is due on a day, a day's state, streaks, completion rates and the heat-map levels.
seed.tsdataThe pretend data: the habits, routines and a year of check-ins of one person, their friends and shared challenges, made around today so the demo always looks lived in.
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}).
habits-sprig.tsx
The page: the sections in order.
Chargement…
Idéal pour
One person building daily habits, alone or with a few friends: checklists, streaks, routines, shared challenges and reports.
Fonctionnement
Check a habit off and its pill fills with the accent while the streak rolls up; heat-map weeks fade in; drag habits between routines.
Utilisation
Edit words in locales/, colors in theme.ts (or pick a palette in Settings), and swap the bodies in data/api.ts for your backend.
Aucun paquet en plusReact seulement, rien d’autre
106,3 ko gzippé · 73 fichiersLe téléchargement complet