Herd & life cycle
animals · barns · births · pedigree · weight-service
Animals, barns, births, deaths, pedigree, weight and status services — with a dedicated life-cycle model rather than free-text notes.
Client workBuilt for an external organization under a paid engagement.
Architecture, system rules, decisions & documented evidence.
BEYAN EL-MAZRAA / FARM CONSOLE
A livestock operation in one place: 37 pages covering herd, health, breeding and finance — built with no bundler, running offline, and audited by its own 672-test suite.
37
HTML pages
672
Unit test cases
56
Browser spec files
00
Build steps
Data path
HTML pages → Firebase RTDB → Offline shell
Counts were taken from the repository, not from a marketing description.
Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.

01 / The challenge
On most farms the animal's record lives in a notebook, a WhatsApp thread, or the owner's head. A vaccination is missed, a due date is estimated, and the cost of a cycle is never totalled — so the decision is made by feel.
The harder constraint is the environment: a shed, weak connectivity, one hand free, and an operator whose working vocabulary is Arabic. A React dashboard with an elegant onboarding flow is the wrong answer to that constraint.
So Bayan is a vanilla, buildless multi-page app: plain HTML and global-scoped JavaScript loaded with <script> tags, talking to Firebase Realtime Database over its REST API. There is no bundler, no framework, no build step — you edit a file and it ships as-is.
Core decision: the record is the unit. Every one of the 37 pages is a different view of the same animal, not a separate feature with its own data.
02 / Modules
The module set below is the one the repository actually ships, read from its page inventory and test domains.
animals · barns · births · pedigree · weight-service
Animals, barns, births, deaths, pedigree, weight and status services — with a dedicated life-cycle model rather than free-text notes.
health · vaccine · breeding · tasks
Vaccination scheduling, treatment records, breeding cycles and expected dates, surfaced where the work happens instead of in a spreadsheet.
finance · cost · production · reports
Entries, periods, per-animal and A/P views, and reports — one accounting model behind every financial screen, covered by its own rules test suite.
users · settings · notifications · bayan-offline
Users, roles, permissions and settings, plus an offline shell, notifications, an import path and a read-only assistant.
HTML pages
Global-scoped JS, no bundler
Firebase RTDB
REST — rules-tested
Offline shell
Clone survives a dead signal
Simplified data path from the repository's architecture notes; the app is a multi-page build with no framework layer between the pages and the database.
03 / Product decisions
Vanilla HTML plus global-scoped JS, shipped as-is. Any developer who can edit a file can change the product, and nothing breaks because a bundler version drifted.
Operational data about someone's livelihood is not a brochure. The deployment opens on an access-code screen that states, in the interface, that no name or role renders before the code verifies.
All UI text, comments and many identifiers are Arabic, and the repo's own instructions say to preserve Arabic strings exactly. This is not an English app with a translation layer.
One phase of work was purely visual: thirty near-duplicate font sizes (five between .71 and .76rem doing one job) collapsed into eight named steps, documented in DESIGN-TOKENS.md before any feature touched them.
A static command (`npm run scan`) guards against permission and single-source-of-truth regressions, and access-policy drift is checked against the rules with a script — plus XSS-hardening and hermetic browser suites.
The repository ships an ENGINEERING-CERTIFICATE.md that scores the project 75/100 and labels it "production candidate" with the explicit line that it is not yet fully production ready. That honesty is the strongest signal in the repo.
05 / Evidence
37
HTML pages in the build
from repo
672
Unit test() cases across 30 suites
from repo
56
Browser spec files
from repo
75/100
Engineering certificate (self-assessed)
declared scope
The 672 figure counts test() calls in the 30 unit suites; the browser suite is inventoried as 56 spec files and needs a local Chromium install to run.
The certificate is the project's own document, dated 2026-07-17 and tagged baseline-v2-production-candidate. It is quoted, not re-scored here — and it explicitly lists medium-severity items still open.
No herd count, user count or revenue figure appears in this file, because none was present in the repository.
06 / Technology stack
The test toolchain is the only npm dependency set — three devDependencies for the suite. The application itself has none.
HAND-OFF / 007
Next: closing the medium-severity items its own certificate lists, then promoting the tag past production-candidate.
Want the practical business breakdown—what this project does, how it runs, and its core advantages?
Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.
NEXT CASE ↳ FROM THE FILES