Project profile

Owned by this project. Written by init (new project) or adopt (existing code). Kit updates never replace this file.

Section 0 is updated by the playbooks as work moves on; changing it does not undo the approval of the profile.

Status: Approved · Approved by: Luca Lanzano (project owner) · Date: 2026-12-02

Written with NodFirst kit version: 0.4.0

0. Current state

  • Active feature: none
  • Working profile: Guided
  • Git: used

1. Product summary

BuddySplit is a single-page web page for flatmates to split shared expenses: enter names, record who paid what, see who owes whom, with the fewest possible payments. No accounts, no server; data stays in the browser of the phone. Mobile-first. User-facing text is Italian, amounts are in euro. The human is not a developer.

  • Modules: web (nodfirst/modules/web.md)
  • Modules not fully proven, accepted by the human: web (partly proven; unproven parts: all three browser engine families in the gate, a keyboard and screen-reader pass by a person, offline and installable behaviour, the design-system playbook, right-to-left and translated layouts), confirmed 2026-12-02
  • Proving ground for the kit: yes

2. Way of working

  • Who approves: Luca Lanzano (project owner) approves every phase.
  • Language of conversation: Italian
  • Language of specs and project documents: English; “What you are approving” in Italian (C12)
  • Git checkpoints: the agent commits after each approval (constitution, Section 4); nothing is ever pushed unless the human asks
  • Branches and review (Team): N/A – Guided profile

3. v1 scope

In scope

  • One screen, used by one group of flatmates on one phone.
  • Add and remove people by name.
  • Record an expense: who paid, amount in euro, who shares it (everyone, or a chosen subset), split equally.
  • Show each person’s balance and the smallest list of payments that settles all balances.
  • Data kept in the browser (no account, no server); italian text only.

Out of scope for v1

  • Unequal splits (for example 70/30), currencies other than euro.
  • Sharing between different phones, accounts, synchronisation.
  • Export or import of data.
  • Offline use and installation as an app (PWA).
  • Other languages.

4. Technical profile

Area Decision
Language / runtime (with minimum version) Plain HTML, CSS and JavaScript in the browser; no framework. Node.js 22 or newer for development tools and tests only (installed: v22.23.5).
Framework / main libraries None for the page. Test tools: DECIDE (D1).
Data storage In the browser of the phone only (no server, no account).
Hosting / distribution DECIDE (D2). A free static hosting service; creating an account needs the human’s permission.
Language of messages and documentation vs identifiers Messages: Italian (from a text catalogue, W4). Documentation: English. Identifiers and machine values: English.

Supported browsers (W7): Chrome (Chromium) and Safari (WebKit), current version; smallest viewport 360 px wide, largest 1280 px. Performance target (W8): the page is usable in under 3 seconds on a mid-range phone on a normal connection.

5. Commands

  • Set-up: npm install then npx playwright install chromium webkit (test browsers go to the user’s cache; no account needed).
  • Single quality command (runs every gate below): npm run check (lint, unit tests, end-to-end tests in Chromium and WebKit, dependency audit). Extended by later tasks; no production build exists.
  • Other: npm run lint · npm run test:unit · npm run test:e2e · npm run audit · node scripts/serve.js (local server on 127.0.0.1:4173, used by the end-to-end tests).

6. Quality gates (a task is done only if all pass)

  1. Unit tests of the calculation (balances, minimal payments, cents rounding) pass.
  2. End-to-end test of the main flow (add people, record expenses, read the result) passes in Chromium and WebKit.
  3. Automated accessibility check (WCAG 2.2 AA, W2) has no violations, plus a manual keyboard check for new UI.
  4. Lint passes.
  5. Production build or packaging step succeeds (if the plan has one).
  6. Dependency audit: no known high-severity issue (W9).
  7. Performance target in Section 4 is met (W8).
  8. One local command runs all of the above (Section 5), since there is no CI.

7. Design system rules (only if there is a UI)

  • W3 applies: mobile-first (360 px first), touch targets at least 44×44 CSS px, empty/loading/error states, light and dark theme following the phone, tokens only (no hard-coded colours, spacing or font sizes), motion off under reduced motion.
  • The design system (project/design-system.md) is created inside the first feature’s tasks.

8. Data, privacy and security specifics

  • No accounts, no server, no analytics or third-party scripts. Names and expenses stay in the browser of the user and never leave the device.
  • Personal data: first names of flatmates, entered by the user. Minimum needed; the user can delete everything from the page.
  • Stored data is untrusted when read back (it may be edited or corrupted): validate it on load (C6, try-to-break inputs).
  • Input limits (name length, amount range, number of people and expenses) are set in the spec.
  • Known limit, accepted by the human: data lives on one phone and one browser; clearing browser data or using another phone loses it.

9. Feedback loop (only if the project is a proving ground)

  • Keep project/lessons.md: where an agent misunderstood, improvised or skipped a gate; which template section was missing or useless; which rule was vague. Review after each feature.

10. Exceptions to the constitution

  • W1 (trusted side) — no server exists; input is validated in the page and on reading stored data. Reason: product has no server by design. Approved by: Luca Lanzano (project owner), 2026-12-02.
  • W7 (all engine families) — Firefox is not in the gate; Chromium and WebKit only. Reason: the human’s choice, Firefox may not start on this machine. Approved by: Luca Lanzano (project owner), 2026-12-02.

11. Open decisions

# Decision When Candidates / criteria
D1 Test tools (unit, end-to-end, accessibility) In the plan of the first feature Must run on Node 22, drive Chromium and WebKit, one local command
D2 Where the page is published Before the first release Free static hosting (GitHub Pages, Netlify, Cloudflare Pages); needs an account, human permission required
D3 Rounding rule for cents (for example 10 € among 3) In the spec of the first feature Who receives the extra cent; must keep the total exact

Back to top

NodFirst is released under the MIT licence. These pages are generated from the files in the repository.

This site uses Just the Docs, a documentation theme for Jekyll.