Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: update documentation indexes, feature references, and inline comments

[._.]/ Adam Eivy57e023401057
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
new file mode 100644
index 0000000000..34df8ac2b2
--- /dev/null
+++ b/.changelog/NEXT.md
@@ -0,0 +1,4 @@
+# Unreleased
+
+## Documentation
+- **Updated documentation index and feature references.** Added missing feature deep dive links for Quota-burn automation (`QUOTA-BURN.md`), Three.js procedural 3D models (`THREEJS_MODELS.md`), Stacker News stewardship (`stacker-news.md`), and the PortDeck native companion app API contract (`COMPANION_APP_API.md`) across `README.md` and `docs/README.md`. Improved inline JSDoc comments for client and server utility modules.
diff --git a/README.md b/README.md
index 020fb8d523..3aebb240fb 100644
--- a/README.md
+++ b/README.md
@@ -102,6 +102,7 @@ A full creative studio for taking an idea from blank page to finished media. Eac
- **Collections / History / Models / LoRAs** — Browse generated assets, install Civitai LoRAs by URL, and manage installed model weights
- **Music Studio** — Artists, albums, and tracks with AI music generation, plus Rounds (musical rounds / quodlibets)
- **Mood Boards** — Collect reference imagery into shareable boards that feed generation work
+- **Three.js Models** — Procedural 3D model generator from gallery assets with disassembly and part picking ([Three.js Models docs](./docs/THREEJS_MODELS.md))
- **Catalog** — The creative-ingredients graph (characters, places, objects, lore) shared across every Create surface
- **Importer** — Drop in an external manuscript (short story, novel, screenplay, comic script). The importer analyzes the text, suggests an arc shape, classifies characters/locations/scenes, and commits the result as either a new Writers Room work or a Pipeline series with a pre-filled bible
- **Sharing** — Cross-network share buckets via cloud-synced folders (Dropbox / iCloud / etc.). Register a bucket, pick `auto-merge` or `inbox` mode, and outgoing PortOS records (universes, series, characters, media) propagate to friends running their own PortOS instance. Live subscription indicators surface when the sender is actively editing
@@ -152,6 +153,7 @@ Unified inbox for everything that talks back at you — email, chat, agent-gener
- **Inbox / Drafts / Sync** — Aggregated message inbox with AI-generated drafts you can approve, edit, or discard before sending
- **OpenClaw** — In-app chat with external operator agents (computer-use, Anthropic operator, etc.) with app context, attachments, and streaming responses ([OpenClaw docs](./docs/features/openclaw-operator-chat.md))
- **Social Agents** — Personality-driven agents that handle specific accounts/personas
+- **Stacker News** — Territory management, untrusted content safety, and account stewardship ([Stacker News docs](./docs/features/stacker-news.md))
### Calendar
@@ -196,6 +198,7 @@ Everything you need to manage your dev environment without leaving the browser.
- **Loops** — Schedule recurring work (cron-style) for any PortOS action or agent task
- **Action History** — Searchable log of all executed actions with filtering and statistics
- **Usage** — Token spend and cost tracking across all configured AI providers
+- **Quota Burn** — Automated spending of subscription-backed CLI quota before expiry (`/devtools/quota-burn`) ([Quota Burn docs](./docs/QUOTA-BURN.md))
- **CyberCity** — 3D voxel city visualization of your apps and agents in real-time ([CyberCity V2 docs](./docs/features/cybercity-v2.md))
- **Browser Control** — Remote Chrome DevTools Protocol integration for headless browser management ([Browser docs](./docs/features/browser.md))
- **Code Runner** — In-app code execution with syntax highlighting
@@ -355,10 +358,13 @@ Full catalog (including design plans, ADRs, and research notes): [docs/README.md
### Architecture & Operations
- [Architecture Overview](./docs/ARCHITECTURE.md) — System design, data flow, and service diagram
- [API Reference](./docs/API.md) — REST endpoints, full route-domain index, and WebSocket events
+- [Companion App API](./docs/COMPANION_APP_API.md) — PortDeck native mobile client discovery and HTTP API contract
- [Storage Classification Contract](./docs/STORAGE.md) — when data belongs in PostgreSQL vs the filesystem, plus the new-data-store checklist
- [Backup & Restore](./docs/BACKUP.md) — filesystem snapshots + mandatory PostgreSQL dumps and how to restore them
- [Port Allocation](./docs/PORTS.md) — Port conventions (5553-5561) and allocation guide
- [PM2 Configuration](./docs/PM2.md) — PM2 patterns and best practices
+- [Quota Burn Automation](./docs/QUOTA-BURN.md) — Subscription quota spending loop and window rules
+- [Three.js Models](./docs/THREEJS_MODELS.md) — Procedural Three.js scene generation and trust boundary
### Development
- [Contributing Guide](./docs/CONTRIBUTING.md) — Development setup and code conventions
@@ -392,6 +398,7 @@ Full catalog (including design plans, ADRs, and research notes): [docs/README.md
- [JIRA Sprint Manager](./docs/features/jira-sprint-manager.md) — Autonomous JIRA triage and implementation
- [Writers Room](./docs/features/writers-room.md) — Prose-to-media writing environment with explicit AI passes
- [OpenClaw](./docs/features/openclaw-operator-chat.md) — In-app operator-agent chat
+- [Stacker News](./docs/features/stacker-news.md) — Territory management and content stewardship
- [Error Handling](./docs/features/error-handling.md) — Centralized error normalization and recovery
## Contributing
diff --git a/client/src/utils/formatters.js b/client/src/utils/formatters.js
index b52288969a..0a56fef02c 100644
--- a/client/src/utils/formatters.js
+++ b/client/src/utils/formatters.js
@@ -123,12 +123,6 @@ export function timeUntil(dateStr, fallback = 'now') {
return `in ${Math.floor(days / 365)}y`;
}
-/**
- * Format bytes as a human-readable string
- * @param {number} bytes - Size in bytes
- * @param {number} decimals - Number of decimal places
- * @returns {string} Formatted size (e.g., "1.5 KB", "2.3 MB", "4.2 TB")
- */
/**
* Compact decimal count: 950 → "950", 1200 → "1.2K", 3400000 → "3.4M".
* @param {number} n - Count to abbreviate
@@ -141,6 +135,12 @@ export function formatCompactCount(n) {
return String(n);
}
+/**
+ * Format bytes as a human-readable string
+ * @param {number} bytes - Size in bytes
+ * @param {number} decimals - Number of decimal places
+ * @returns {string} Formatted size (e.g., "1.5 KB", "2.3 MB", "4.2 TB")
+ */
export function formatBytes(bytes, decimals = 1) {
if (!bytes || bytes === 0) return '0 B';
diff --git a/docs/README.md b/docs/README.md
index 23f545cf4d..306f56c4d3 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -8,10 +8,13 @@ Index of everything under `docs/`. Start with the [root README](../README.md) fo
|-----|--------|
| [ARCHITECTURE.md](./ARCHITECTURE.md) | System design: React client, Express server, PM2 satellites, PostgreSQL + `data/` files |
| [API.md](./API.md) | REST endpoints, complete route-domain index, Socket.IO events |
+| [COMPANION_APP_API.md](./COMPANION_APP_API.md) | PortDeck native iOS companion client discovery and HTTP API contract |
| [STORAGE.md](./STORAGE.md) | Storage classification contract — PostgreSQL vs filesystem, new-data-store checklist |
| [BACKUP.md](./BACKUP.md) | Filesystem snapshots + PostgreSQL dumps, restore semantics |
| [PORTS.md](./PORTS.md) | Port allocation (5553–5561) and how 5555/5553/5554 relate |
| [PM2.md](./PM2.md) | Recommended PM2 ecosystem patterns for sub-projects |
+| [QUOTA-BURN.md](./QUOTA-BURN.md) | Quota-burn automation — spending subscription-backed CLI quota before expiry |
+| [THREEJS_MODELS.md](./THREEJS_MODELS.md) | Three.js procedural 3D model generation and trust boundary |
| [CONTRIBUTING.md](./CONTRIBUTING.md) | Dev setup (PostgreSQL required), code conventions |
| [GITHUB_ACTIONS.md](./GITHUB_ACTIONS.md) | CI and release workflows |
| [VERSIONING.md](./VERSIONING.md) | SemVer + release process (`/do:release`) |
@@ -35,7 +38,7 @@ Knowledge: [brain-system](./features/brain-system.md) · [messages-security](./f
Create: [writers-room](./features/writers-room.md) · [cybercity-v2](./features/cybercity-v2.md) · [sprite-export-contract](./features/sprite-export-contract.md)
-Comms & voice: [openclaw-operator-chat](./features/openclaw-operator-chat.md) ([pre-build audit](./research/2026-03-31-openclaw-operator-chat-audit.md)) · [voice](./features/voice.md)
+Comms & voice: [openclaw-operator-chat](./features/openclaw-operator-chat.md) ([pre-build audit](./research/2026-03-31-openclaw-operator-chat-audit.md)) · [stacker-news](./features/stacker-news.md) · [voice](./features/voice.md)
## Point-in-time records