Skip to content

Instantly share code, notes, and snippets.

View enachb's full-sized avatar

Erich Nachbar enachb

  • Stuffy Lab
  • San Francisco
View GitHub Profile
@enachb
enachb / grpc-data-stream-routing.md
Created March 17, 2026 23:07
gRPC Data Stream Routing Layer — SenseMesh data fabric

gRPC Data Stream Routing Layer

The gRPC Data Stream Routing Layer exposes the data fabric's partition-routed streaming model over gRPC. Clients request a stream by naming a provider group and a partition key. The system uses a consistent hash ring to route the request directly to the node holding that partition — no broker or proxy in the hot path.


Concepts

Provider group

A named collection of nodes that together serve a stream type, e.g. "camera-feed". All nodes in the group share a common hash ring stored in NATS KV.

@enachb
enachb / gemini-2026-03-09-webrtc.md
Created March 9, 2026 22:42
Gemini Review — WebRTC Historical Playback Design + TDD Plan

Gemini Review — WebRTC Historical Playback Design + TDD Plan

Date: 2026-03-09 Reviewed: docs/plans/2026-03-09-webrtc-playback-design.md, docs/plans/2026-03-09-webrtc-tdd-phases.md Against: existing video-service codebase


Findings

@enachb
enachb / 2026-03-09-webrtc-tdd-phases.md
Last active March 9, 2026 22:49
WebRTC Historical Playback — TDD Implementation Phases

WebRTC Historical Playback — TDD Implementation Phases

Each phase: write failing test, minimal code to pass, refactor. No production code without a red test first.

Date: 2026-03-09 Parent design: webrtc-playback-design.md Test framework: testify (matches existing codebase) Test location: cloud/video-service/internal/webrtc/*_test.go


@enachb
enachb / 2026-03-09-webrtc-playback-design.md
Last active March 9, 2026 22:49
WebRTC Historical Video Playback — Design Document

WebRTC Historical Video Playback — Design Document

Serve historical video from video-service to browsers via WebRTC. Pure Go implementation using pion/webrtc. No CGO, no external processes.

Date: 2026-03-09 Status: Draft — reviewed by Gemini, updated with findings


@enachb
enachb / 2026-03-09-webrtc-playback-design.md
Created March 9, 2026 22:28
SenseMesh WebRTC Historical Video Playback — Design Document

WebRTC Historical Video Playback — Design Document

Serve historical video from video-service to browsers via WebRTC. Pure Go implementation using pion/webrtc. No CGO, no external processes.

Date: 2026-03-09 Status: Draft — reviewed by Gemini, updated with findings


@enachb
enachb / partitioned-config-design.md
Created March 7, 2026 18:49
Distributed Configuration Orchestration Layer - Design Document

Design Document: Distributed Configuration Orchestration Layer

1. Overview

This architecture replaces the standard Dapr Configuration Store component with a custom, high-performance Go SDK. It enables dynamic, partitioned processing of large configuration lists across a cluster of Go workers.

CockroachDB (CRDB) serves as the strict System of Record (SoR). To ensure security and decoupling, Go worker nodes possess zero database access. All configuration state, cluster topology, and event signaling are routed exclusively through NATS (JetStream, KV, and Core Request/Reply). The client SDK exposes an API identical to github.com/dapr/go-sdk/client to minimize developer friction.

2. Design Goals & Constraints

@enachb
enachb / infographic-prd.html
Created March 7, 2026 18:10
Pepper — PRD Visual Explainer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pepper PRD — Product Requirements at a Glance</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #080d14; color: #e2e8f0; min-height: 100vh; }
@enachb
enachb / infographic-product-spec.html
Created March 7, 2026 18:10
Pepper — Product Spec Visual Explainer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pepper Product Spec — Visual Overview</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #07111e; color: #e2e8f0; }
@enachb
enachb / infographic-feasibility.html
Created March 7, 2026 18:10
Pepper — Feasibility Analysis Visual Explainer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pepper Feasibility Analysis — Visual Summary</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #07101a; color: #e2e8f0; }
@enachb
enachb / infographic-app-landscape.html
Created March 7, 2026 18:10
Pepper — App Landscape Visual Explainer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pepper — App Landscape Research Visual</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #080c14; color: #e2e8f0; }