Book a call
Choose how to read this case

Client workBuilt for an external organization under a paid engagement.

Architecture, system rules, decisions & documented evidence.

← All workProduct case file / 007
Livestock operationsPWA · OfflineArabic-firstProduction candidate

BEYAN EL-MAZRAA / FARM CONSOLE

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.

System snapshotBAYAN / RTL

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.

Role: Product & buildDomain: Agri-tech2025–26

Have a similar product or workflow in mind?

Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.

Discuss your project →
Farm Console — herd, health and finance dashboard
Operations dashboard — herd, indicators, financeRTL / 2026

01 / The challenge

Forty years of paper, replaced by a page that works without signal.

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

Four domains, thirty-seven pages.

The module set below is the one the repository actually ships, read from its page inventory and test domains.

01

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.

02

Health & breeding

health · vaccine · breeding · tasks

Vaccination scheduling, treatment records, breeding cycles and expected dates, surfaced where the work happens instead of in a spreadsheet.

03

Finance

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.

04

Operations & access

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

The constraints were the design.

01↗

No build step, on purpose

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.

02↗

The gate is part of the product

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.

03↗

Arabic is the source language

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.

04↗

Tokens before features

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.

05↗

Safety is a scan, not a promise

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.

06↗

Its own certificate says it is not done

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

Counted in the repository, not estimated.

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

Light, installable, and audited.

Vanilla HTMLGlobal-scoped JSFirebase Realtime DB (REST)Service Worker / PWAPlaywrightjsdomcss-treeArabic RTL

The test toolchain is the only npm dependency set — three devDependencies for the suite. The application itself has none.

HAND-OFF / 007

A paper trail that survives a dead signal.

Next: closing the medium-severity items its own certificate lists, then promoting the tag past production-candidate.

Switch Reading Lens · 02

Want the practical business breakdown—what this project does, how it runs, and its core advantages?

Have a similar product or workflow in mind?

Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.

Discuss your project →

NEXT CASE ↳ FROM THE FILES

Speech to Text Studio