Files
bitvid/docs
thePR0M3TH3AN 1b2362d234 fix: cancel final-owner active torrent probes (client-reliability-9)
Preserve shared owners and standalone probe callers. Clear obsolete timers and defer temporary torrent destruction until event unwind, holding the queue slot through teardown. Guard cache and replacement inflight identity.

Spec correction: previous queued-only active reuse/cache expectations are replaced by equally strict final-owner cleanup and fresh-request assertions, with independent live/shared/cache controls retained. See unique spec and Test Integrity Note.

Saved focused checks: six files, 60 scenarios, zero failures/cancelled; 19 distinct mutants killed. Remaining full lint/full/build/browser and normal landing require a resource slot. No submission.
2026-10-26 15:08:05 -04:00
..
2026-01-23 02:27:15 -05:00
2026-01-23 02:27:15 -05:00
2026-01-30 09:13:54 -05:00

Documentation Index

Welcome to the bitvid documentation. This directory contains detailed architectural guides, API references, and system overviews.

Core Systems

  • BitUnlock Permission Layer: Architecture and phased plan for purchases, rentals, creator memberships, platform subscriptions, bundles, events, and short-lived playback authorization using BitUnlock as BitVid's permission layer.
  • Application Coordinators: Overview of the coordinator pattern used to manage app-wide state and services.
  • Data-Flow Refactor — Dev Plan & Spec: The incremental plan to put all subsystems on a shared, governed relay/data foundation (SubscriptionManager, stores, unidirectional flow).
  • Known Bugs (deferred): Confirmed defects/limitations found during the refactor, queued to fix later.
  • Feed Algorithm ↔ Lists Audit: Read-only audit of whether the For You feed is actually driven by the user's follows/hashtags/watch-history, with the gaps and a fix order.
  • Authentication Architecture: How session management, login flows, and signer integration work.
  • Feed Engine: The pipeline for fetching, filtering, scoring, and sorting video feeds.
  • Playback & Fallback: The URL-first playback strategy with WebTorrent fallback orchestration.
  • Watch History System: Encrypted watch history synchronization and storage.

Nostr Protocol

Moderation & Safety

  • Moderation Service: How content moderation, reporting, and admin lists function.
  • Logging Strategy: Guidelines for using devLogger vs userLogger and production logging policies.

Design & UI

Testing

Lessons & Incident Writeups

Operations

Active plans

  • Performance & Efficiency Plan: A measurement-first staged plan for reducing client CPU, memory, and network work without degrading Nostr discovery, feed freshness, moderation, or playback. Tracked as TODO #34.
  • BitUnlock Permission-Layer TODO: Ordered implementation checklist for the BitUnlock-backed media permission and subscription work.

For more details on contributing, please see CONTRIBUTING.md.