Inspect — bahalaka.com

Sovereign relationship platform • acmedevUS/bahalaka • Cloudflare Pages

What It Is

Intent

Build a mobile-first app for cross-cultural support relationships (Philippines focus) where every message, transaction, promise, and agreement is permanent, cryptographically signed, and tamper-proof.

Purpose

Replace trust-on-faith with trust-by-math. Forward-only communication, transparent finances, structured agreements, GPS-verified status — so both parties have an immutable shared record that neither can alter.

What

Currently: a single-page proposal website live at bahalaka.com on Cloudflare Pages. The proposal defines the full product — chat, status, schedule, finance, agreements, concern detection, stories. The app itself (C/WASM + vanilla JS + Capacitor) is planned but not yet built.

By the Numbers

64
Commits
1,497
Lines (index.html)
26
Artifacts
17
Boards
208
Pts Remaining
21
Pts Done

Structure

PathWhat
index.htmlMain proposal website — 1,497 lines, single-file vanilla HTML/CSS/JS. Five tabs: Proposal, Roadmap, Activity, Dev Artifacts, Release Notes. Comment system built in (localStorage).
site/index.htmlOlder version of the site (1,381 lines) — appears to be pre-nav-dropdown.
deploy.jsonCloudflare Pages config: static deploy, no auth gate.
be/Be folder — boards, plans, builds, tests, ships, retros, telemetry.
be/board.md17 boards. Board 1 done. Boards 2–4 cancelled. Board 5 ready. Boards 6–17 blocked.
be/plans/18 plan/estimate/inspect artifacts.

Stack

LayerTechnology
Website (current)Vanilla HTML/CSS/JS — single file, no frameworks, no build tools
HostingCloudflare Pages — custom domain bahalaka.com
App (planned)C → WASM via Emscripten + vanilla JS UI
Native shellCapacitor (iOS + Android)
Security engineNOUS C SDK (wire.c, crypt.c, journal.c, store.c, policy.c, reason.c)
TransportWebSocket (RFC 6455) via NTRP0001 wire protocol
BackendNOUS relay servers (3 regions) + prime atom verb handlers
AuthEd25519 key pairs + TOTP — no email/phone/password
StorageIDBFS (IndexedDB via Emscripten) on client, encrypted blobs on server

Patterns Found

Strong Foundation

The proposal is comprehensive — every feature is defined with clear rules, forward-only semantics, and cryptographic enforcement. The agreement template system (3-part: Her Ask + His Declaration + His Structure) is unusually well-thought-out for a proposal stage.

Zero Framework

Pure vanilla HTML/CSS/JS for the website. The planned app follows the same pattern: C compiled to WASM, no React/Vue/Angular. Consistent with Joey's "roll your own" philosophy.

NOUS Integration Planned

Plan v2 correctly routes everything through atom verb handlers on prime, not HTTP endpoints. Single channel pattern (from NOUS Desktop). SDK vendored from kastil, not rebuilt.

Scope Is Massive

208 remaining points across 13 boards. Features span: WASM compilation, WebSocket transport, registration, chat (text + photo + voice), GPS status, scheduling, financial engine, sponsorships, agreements with mismatch detection, concern detection, stories, and native app builds. This is a full product.

site/ Folder

The site/ folder contains an older 1,381-line index.html that appears to be a pre-refactor copy. If deploy is root-level, this file isn't served but adds dead weight to the repo.

Comment System

The proposal site has a built-in comment system with replies, edit, and threading. Currently localStorage-backed. Board 17 includes a migration item to move comments to NOUS triple storage.

Board State

BoardNamePtsStatus
1Deploy to Cloudflare Pages21Done
2–4Auth Infrastructure + UI + Comments58Cancelled
5SDK Vendor + WASM Core + App Structure21Ready
6WASM Storage + Auth + Config16Blocked
7Server Infra18Blocked
8Registration + Pairing13Blocked
9Chat Core18Blocked
10Chat Features16Blocked
11Status + Schedule21Blocked
12Finance Core18Blocked
13Sponsorships16Blocked
14Agreements18Blocked
15Concern Detection18Blocked
16Stories + Onboarding13Blocked
17Ship20Blocked

Next up: Board 5 — vendor NOUS C modules, create app/ folder structure, set up Emscripten Makefile, compile wire.c + crypt.c to WASM, build bahalaka.js relay client bridge.

Open Questions