Reusable building blocks extracted from real projects, pulled across boundaries, composed into the next thing you ship.
Not a component library. A working yard. Primitives at the foundation. Components torn from production codebases. Blueprints that hold the shape of an entire system. yapFM — a full call-in radio network — was built on these primitives in seven days.
◆ BLDBLextract · compose · seal◆ CMPSBLcomposable wiki engine◆ CLPSBLcollapsible state runtime◆ yapFMcall-in radio · built in 7 days on PRM-001..033◆ BLDBLnot a component library — a working yard
◆ BLDBLextract · compose · seal◆ CMPSBLcomposable wiki engine◆ CLPSBLcollapsible state runtime◆ yapFMcall-in radio · built in 7 days on PRM-001..033◆ BLDBLnot a component library — a working yard
ZONE 01 · THE YARD
Crates on rails.
Every block is a crate. Pull what you need into the manifest. Provenance is stamped on every label.
000m024m048m072m096m120m144m168m192m216m
PRIMITIVE
PRM-001
0.4kb
0 deps
Seeded RNG
math/prng
Mulberry32 deterministic PRNG. Same seed, same sequence, forever. The engine under every procedural visual in XCTBL.
from XCTBL³ Space · src/lib/starGenerator.ts
sealed at src/blocks/prm/seeded-rng/index.ts
PRIMITIVE
PRM-002
2.1kb
0 deps
Device Orientation
hooks/sensor
useDeviceOrientation with low-pass smoothing, iOS 13 permission flow, and calibration. The hard part, sealed.
from XCTBL³ Space · src/hooks/useDeviceOrientation.ts
sealed at src/blocks/prm/device-orientation/index.ts
PRIMITIVE
PRM-003
0.7kb
0 deps
Presence State
logic/temporal
Active / idle / dormant classifier + inactivity opacity decay. Pure functions. Bring your own transport.
from XCTBL³ Space · src/hooks/usePresence.ts
sealed at src/blocks/prm/presence-state/index.ts
COMPONENT
CMP-001
5.2kb
1 deps
Seed Avatar
ui/identity
Deterministic glowing avatar from any seed. Identicon energy, star-field aesthetic. Repointed from procedural stars.
from XCTBL³ Space · src/components/ProceduralStar.tsx
sealed at src/blocks/cmp/seed-avatar/index.tsx
COMPONENT
CMP-002
1.8kb
0 deps
Pulse Layer
ui/ambient
Full-bleed glow pulse, triggerable via ref. Decoupled from backend — fire it from any event.
from XCTBL³ Space · src/components/AmbientPulse.tsx
sealed at src/blocks/cmp/ambient-fx/pulse-layer.tsx
COMPONENT
CMP-003
3.4kb
0 deps
Shooting Stars
ui/ambient
Lightweight CSS shooting stars. Configurable rate, max count, disabled flag for mobile.
from XCTBL³ Space · src/components/galaxy/ShootingStars.tsx
sealed at src/blocks/cmp/ambient-fx/shooting-stars.tsx
COMPONENT
CMP-004
2.6kb
1 deps
Glow Cloud
ui/ambient
Soft animated radial gradients for atmospheric depth. Pass your own HSL palette.
from XCTBL³ Space · src/components/galaxy/NebulaCloud.tsx
sealed at src/blocks/cmp/ambient-fx/glow-cloud.tsx
COMPONENT
CMP-005
2.1kb
1 deps
Drift Particles
ui/ambient
Slow drifting dust particles. Wraps around viewport, accepts parallax offset.
from XCTBL³ Space · src/components/galaxy/CosmicDust.tsx
sealed at src/blocks/cmp/ambient-fx/drift-particles.tsx
COMPONENT
CMP-006
2.4kb
0 deps
Portal
ui/transition
Concentric event-horizon rings. Idle = subtle; warping = expand. Use as background or modal anchor.
from XCTBL³ Space · src/components/spacewalk/BlackHolePortal.tsx
sealed at src/blocks/cmp/transition-veil/portal.tsx
COMPONENT
CMP-007
6.8kb
1 deps
Warp Veil
ui/transition
Full-screen 'going somewhere' transition. Use before a hard nav, SSO handoff, or heavy load. Configurable copy.
from XCTBL³ Space · src/components/spacewalk/WarpSplash.tsx
sealed at src/blocks/cmp/transition-veil/warp-veil.tsx
COMPONENT
CMP-008
4.5kb
1 deps
Terminal Stream
ui/feed
Transmission/log renderer in three variants: minimal, banner, archive. No router, no story engine — pass items.
from XCTBL³ Space · src/components/story/TransmissionTerminal.tsx
sealed at src/blocks/cmp/terminal-stream/index.tsx
COMPONENT
CMP-009
3.0kb
0 deps
Floating Dock
ui/nav
Two-row fixed top dock. Fully prop-driven — no auth/router branching baked in. Pass items.
from XCTBL³ Space · src/components/space/FloatingSpaceDock.tsx
sealed at src/blocks/cmp/floating-dock/index.tsx
PRIMITIVE
PRM-004
3.6kb
0 deps
Pan/Zoom
hooks/viewport
Mouse + touch + wheel pan/zoom for any 2D canvas. Optional gyro adapter — drop in the device-orientation PRM to tilt-pan.
from XCTBL³ Space · src/hooks/useStarmapControls.ts + useGalaxyNavigation.ts
sealed at src/blocks/prm/pan-zoom/index.ts
PRIMITIVE
PRM-005
1.4kb
0 deps
Random Spotlight
hooks/scheduler
Randomly highlights N IDs from a list at intervals. Activity feeds, presence dots, anything that wants to breathe.
from XCTBL³ Space · src/hooks/useTwinkleEffect.ts
sealed at src/blocks/prm/random-spotlight/index.ts
PRIMITIVE
PRM-006
2.0kb
0 deps
Power-On SFX
hooks/audio
Synthesizes a neon power-on crackle entirely in WebAudio. Zero asset files. Respects autoplay policy.
from XCTBL³ Space · src/hooks/useNeonPowerOnSound.ts
sealed at src/blocks/prm/power-on-sfx/index.ts
PRIMITIVE
PRM-007
2.4kb
0 deps
Fade Audio
hooks/audio
Looped audio with smooth fade-in/out on toggle. URL prop, optional localStorage persistence.
from XCTBL³ Space · src/hooks/useAmbientAudio.ts
sealed at src/blocks/prm/fade-audio/index.ts
COMPONENT
CMP-010
3.2kb
1 deps
Status Pill
ui/feedback
Terse system-status pill. ok/warn tones, optional integrity meter, position anchors, show-once. Pass title + lines.
from XCTBL³ Space · SystemVoice.tsx + PreWarpVoice.tsx (merged)
sealed at src/blocks/cmp/status-pill/index.tsx
COMPONENT
CMP-011
1.6kb
0 deps
Viewport Controls
ui/viewport
Floating zoom/reset/focus buttons. Pairs with Pan/Zoom PRM but takes plain callbacks — use with anything.
from XCTBL³ Space · src/components/galaxy/GalaxyControls.tsx
sealed at src/blocks/cmp/viewport-controls/index.tsx
COMPONENT
CMP-012
4.4kb
1 deps
Sensor Toggle
ui/permission
Permission-toggle UI companion for the device-orientation PRM. iOS permission modal, calibrate button.
from XCTBL³ Space · src/components/galaxy/GyroControls.tsx
sealed at src/blocks/cmp/sensor-toggle/index.tsx
PRIMITIVE
PRM-008
1.6kb
0 deps
Relay Preferences
hooks/prefs
Tiny persisted prefs store: sound, haptics, splash-seen, current panel. Auto-syncs prefers-reduced-motion. Namespace per app.
from RCRDBL · src/hooks/useRelayPreferences.ts
sealed at src/blocks/prm/relay-preferences/index.ts
PRIMITIVE
PRM-009
0.9kb
0 deps
Haptics
hooks/sensor
5 preset vibration patterns over the Vibration API. Optional enabled/reducedMotion props — no preference-store coupling.
from RCRDBL · src/components/dream/FractureGlyph.tsx
sealed at src/blocks/cmp/fracture-glyph/index.tsx
COMPONENT
CMP-018
2.7kb
0 deps
Mirror Calibration
ui/splash
Brief atmospheric splash: near-black field, glass smear, one mono line, optional 55Hz sine tone. Randomized 1.6–2.2s dismiss.
from RCRDBL · src/components/dream/MirrorCalibrationSplash.tsx
sealed at src/blocks/cmp/splash/mirror-calibration.tsx
COMPONENT
CMP-019
3.4kb
0 deps
Phased Boot
ui/splash
Multi-phase boot/auth splash: title, sequenced status lines with icons, progress dots, completion slot.
from RCRDBL · src/components/QuantumSplash.tsx
sealed at src/blocks/cmp/splash/phased-boot.tsx
COMPONENT
CMP-020
3.1kb
0 deps
Ambient NPC
ui/character
Idle silhouette character: breathes, types, occasionally speaks a random line on trigger. Pure SVG/box, no assets.
from RCRDBL · src/components/relay-station/Custodian.tsx
sealed at src/blocks/cmp/ambient-npc/index.tsx
PRIMITIVE
PRM-012
1.6kb
0 deps
Text Decay
text/glitch
The engine the user thought was @dreamdecay (it isn't — no such npm package). decayText / glitchText / applyContentDecay. Pure functions, combining-diacritic + replacement-glyph corruption. Markdown-safe variant skips structural chars.
from RCRDBL · src/components/dream/DreamLayout.tsx
sealed at src/blocks/prm/text-decay/index.ts
PRIMITIVE
PRM-013
1.2kb
0 deps
Semantic Drift
text/transform
Case-preserving word-substitution engine. Bring your own DriftMap, or use the dream-state default (verified→remembered, etc). Word-boundary matched, case-aware.
from RCRDBL · src/components/dream/DreamLayout.tsx
sealed at src/blocks/prm/semantic-drift/index.ts
PRIMITIVE
PRM-014
5.4kb
0 deps
Entity Forge
procgen/character
Procedural creature engine v1.2.0. Structural-primitives DSL (coreType / limbBehavior / perceptionOrgan / surfaceState / motionProfile / sigils) + style palettes + name/desc generators. Pure data + pure functions, zero deps. Renderer (CMP) pulled in next pass.
from RCRDBL · src/components/creatures/creatureData.ts
sealed at src/blocks/prm/entity-forge/index.ts
COMPONENT
CMP-021
1.8kb
0 deps
Decaying Text
ui/text
Variant-driven self-decaying text span. 'ambient' = light combining-mark decay; 'transmission' = aggressive glitch bursts + textShadow flash. Reduced-motion safe. Re-exports DecayedText/GlitchingText preset wrappers for back-compat. Consolidation of former CMP-021+CMP-022.
from RCRDBL · src/components/dream/DreamLayout.tsx (DecayedText + GlitchingText merged into one variant component)
sealed at src/blocks/cmp/text-decay/index.tsx
COMPONENT
CMP-023
6.8kb
1 deps
Entity Forge Renderer
ui/svg-renderer
Pure SVG renderer for entity-forge CreatureConfig. coreType/perception/sigils + framer-motion profiles. Honours prefers-reduced-motion. Zero app deps.
from RCRDBL · src/components/creatures/CreatureSVGv2.tsx
sealed at src/blocks/cmp/entity-forge/renderer.tsx
COMPONENT
CMP-024
3.6kb
2 deps
Entity Forge Panel
ui/generator-panel
Drop-in creature generator UI: style picker, quick/enhance buttons, animated card. Stripped of Supabase/sonner. Optional `enhance(cfg)` callback for any LLM. `renderActions` slot for save/export/share.
from RCRDBL · src/components/creatures/CreatureGenerator.tsx
sealed at src/blocks/cmp/entity-forge/panel.tsx
COMPONENT
CMP-025
3.2kb
0 deps
Mirror Veil
ui/overlay
Fullscreen ambient veil that phases in on jittered interval + on scroll-pause. Alternating phrase pair + optional center glyph (via render slot). The atmospheric 'wait, what was that?' moment.
from RCRDBL · src/components/dream/DreamLayout.tsx (MirrorLayer)
from RCRDBL · src/components/dream/DreamLayout.tsx (DreamOverlay)
sealed at src/blocks/cmp/ambient-fx/dream-haze.tsx
COMPONENT
CMP-027
2.4kb
0 deps
Ghost Overlay
ambient-fx/pattern
Generalized Mandela-effect pattern. Phases ghost SVGs in/out at multiple positions with periodic questioning text. BYO ghost via renderGhost render-prop + spot list.
from RCRDBL · src/components/dream/CornucopiaMandela.tsx
sealed at src/blocks/cmp/ghost-overlay/index.tsx
COMPONENT
CMP-028
2.0kb
1 deps
Decayed Grid
ui/grid
Decayed list grid: section title + gradient rule + responsive cards whose labels glitch lightly via DecayedText. Generic items {name, description}. Per-tier decay intensity tunable.
from RCRDBL · src/components/dream/SubstrateRemnantsGrid.tsx
sealed at src/blocks/cmp/decayed-grid/index.tsx
COMPONENT
CMP-029
2.6kb
0 deps
Screen Crack
ambient-fx/impact
Trigger-based screen-impact effect: white flash + N radiating cracks with secondary branches + expanding glow point. Pass any changing `trigger` value to fire. Tint via glowColor.
from RCRDBL · src/components/dream/MandelaTinkerbell.tsx (crack effect)
sealed at src/blocks/cmp/screen-crack/index.tsx
COMPONENT
CMP-030
5.4kb
0 deps
Dream Runtime
dream/runtime
Seeded, deterministic, reversible page-decay engine. Ships imperative API (install/uninstall/fractureElement/fractureText) + React bindings (<DreamRuntime>, useDreamDecay, useDreamRuntimeGlobal). Zero external deps. Same seed → same decay, every time. Provenance markers left on every touched node.
from RCRDBL · DreamLayout.tsx + @dreamdecay/runtime README API
sealed at src/blocks/cmp/dream-runtime/index.ts
PRIMITIVE
PRM-015
4.1kb
0 deps
Iframe Accessibility
a11y/css-engine
Pure CSS-string builder + iframe injector for live accessibility overrides (font size, contrast, dyslexia font, reader mode, reading guide, cursor, motion, etc.). Settings type is the contract; UI lives in CMP-034. Zero deps.
from RNDRBL · src/components/FloatingAccessibilityOverlay.tsx (V3 style engine)
sealed at src/blocks/prm/iframe-accessibility/index.ts
PRIMITIVE
PRM-016
1.5kb
0 deps
Site Memory
storage/per-domain
Privacy-first per-domain preference store w/ TTL, generic over value type. localStorage only — no cross-site correlation. Success/failure counters per host.
from RNDRBL · src/lib/siteMemory.ts
sealed at src/blocks/prm/site-memory/index.ts
PRIMITIVE
PRM-017
2.4kb
0 deps
Offline Cache
sw/cache
Service-worker MessageChannel hook for caching arbitrary HTML pages. Online/offline state + cache CRUD. Toast stripped → onEvent callback. Requires a SW handling CACHE_SITE / GET_CACHED_SITES / DELETE_CACHED_SITE.
Probabilistic interstitial gate. Roll a die on intent; on hit, defer the action until resolve() fires. Pluggable RNG (Math.random or seeded). Pure logic; BYO splash.
from RNDRBL · src/contexts/DreamSplashContext.tsx
sealed at src/blocks/prm/random-gate/index.ts
COMPONENT
CMP-031
3.8kb
0 deps
Splash · Dream Whisper
splash/atmosphere
Short atmospheric interstitial: random whisper, static noise, accent corner pulses. Auto-dismiss + tap. Session storage stripped. Pairs with PRM-019 random-gate.
from RNDRBL · src/components/DreamWhisperSplash.tsx
System-calibrating overlay: triple orbital rings + scanning lines + checked step list + progress bar. Generic — pass title, core icon, sequence of {icon, text, durationMs}.
from RNDRBL · src/components/FirstDiscoveryAnimation.tsx
sealed at src/blocks/cmp/splash/scanning-init.tsx
COMPONENT
CMP-034
10.2kb
1 deps
Accessibility Panel · Orbital
a11y/panel
Floating FAB → expanding orbital panel, 4 category buttons (vision/reading/motor/cognitive). Closes PRM-015 pair: owns settings, drives iframe via applyAccessibilityToIframe + attachReapplyOnLoad. Optional read-aloud slot.
from RNDRBL · src/components/OrbitalAccessibilityPanel.tsx + FloatingAccessibilityOverlay
sealed at src/blocks/cmp/accessibility-panel/orbital.tsx
COMPONENT
CMP-035
1.6kb
0 deps
Expandable Action Menu
ui/fab
Fixed-position FAB that expands into a vertical action stack with backdrop blur. Each action: {icon, label, onClick}. Configurable position + trigger icon.
from RNDRBL · src/components/ExpandableActionMenu.tsx
sealed at src/blocks/cmp/expandable-action-menu/index.tsx
COMPONENT
CMP-036
2.1kb
0 deps
Schematics Grid
ui/grid
Engineering-panel grid: uppercase mono titles, accent corner brackets, scanline hover sweep. Sibling of CMP-028 decayed-grid — same data shape, opposite aesthetic (intact schematic vs decayed remnant).
from RNDRBL · src/components/SubstrateSchematicsGrid.tsx
sealed at src/blocks/cmp/schematics-grid/index.tsx
COMPONENT
CMP-037
1.7kb
0 deps
Inspirational Banner
ui/banner
Top-fixed rotating quote banner. Publishes measured height to a CSS custom property so the rest of the app can offset under it. BYO quotes + icon rotation.
from RNDRBL · src/components/InspirationalBanner.tsx
sealed at src/blocks/cmp/inspirational-banner/index.tsx
PRIMITIVE
PRM-020
5.2kb
0 deps
Host Accessibility
a11y/host
Class-based accessibility engine that styles the HOST document (font size, contrast, dyslexia font, reading guide, cursor size, etc.). Sibling of PRM-015 iframe-accessibility — same vocabulary, different surface. SSR-safe, localStorage-persisted, idempotent CSS injection.
from PTCHBL · src/lib/accessibility-engine.ts
sealed at src/blocks/prm/host-accessibility/index.ts
PRIMITIVE
PRM-021
2.4kb
0 deps
Structured Data
seo/json-ld
Schema.org JSON-LD builder + injector. Pure functions for website / softwareApplication / faqPage / article / organization / breadcrumb. Caller passes all content — zero branding baked in.
from PTCHBL · src/lib/widget-keyboard-shortcuts.ts
sealed at src/blocks/prm/keyboard-shortcuts/index.ts
COMPONENT
CMP-038
3.0kb
0 deps
PWA Install Prompt
pwa/install
Captures `beforeinstallprompt`, surfaces a styled prompt after `delayMs`, remembers dismissals for `cooldownDays`. No shadcn, no toast — caller wires `onInstalled`.
from PTCHBL · src/components/PWAInstallPrompt.tsx
sealed at src/blocks/cmp/pwa-install-prompt/index.tsx
COMPONENT
CMP-039
1.2kb
0 deps
Animated Counter
ui/counter
RAF-based count-up span. Honours prefers-reduced-motion (jumps to end). Custom format / prefix / suffix. Re-animates on `end` change unless locked.
from PTCHBL · src/components/AnimatedCounter.tsx
sealed at src/blocks/cmp/animated-counter/index.tsx
COMPONENT
CMP-040
4.6kb
0 deps
Debug Console
devtool/overlay
On-page floating console: monkey-patches console.log/warn/error, captures window error + unhandledrejection. Bottom-sheet log viewer with clear + error counter. Wire up only in dev or on-device debugging.
from PTCHBL · src/components/MobileDebugConsole.tsx
sealed at src/blocks/cmp/debug-console/index.tsx
COMPONENT
CMP-041
4.0kb
0 deps
Step Flow
ui/wizard
Generic multi-step wizard. Steps are render-prop functions of shared state. Owns progress bar, back/next/skip, per-step validation. No shadcn, no router coupling.
from PTCHBL · src/components/onboarding/OnboardingFlow.tsx
sealed at src/blocks/cmp/step-flow/index.tsx
COMPONENT
CMP-042
9.5kb
0 deps
Transmission Modal
ui/modal-mechanic
Two-stage 'incoming transmission' modal: read → confirm → drag-to-throw → explosion → dismiss. Throwing the modal off-screen IS the confirmation gesture. Render-prop intro body; lore is yours, not ours. Persists dismissal under `storageKey`. Signature interaction.
from PTCHBL · src/components/DiscoveryModal.tsx
sealed at src/blocks/cmp/transmission-modal/index.tsx
COMPONENT
CMP-043
3.4kb
1 deps
Keyboard Shortcuts Help
ui/help-dialog
Self-contained modal listing every shortcut registered with PRM-022. No shadcn Dialog — native overlay with Escape-to-close. Internally or externally controlled.
from PTCHBL · src/components/widget/KeyboardShortcutsHelp.tsx
sealed at src/blocks/cmp/keyboard-shortcuts-help/index.tsx
PRIMITIVE
PRM-023
0.3kb
0 deps
Debounce
hooks/timing
Debounce any value with configurable delay. The lowest-common-denominator search/input primitive.
from CMPSBL · src/hooks/useDebounce.ts
sealed at src/blocks/prm/debounce/index.ts
PRIMITIVE
PRM-024
0.6kb
0 deps
Throttle
hooks/timing
Throttle a value to update at most once per interval. Sibling of debounce — pick by signal shape.
from CMPSBL · src/hooks/useThrottle.ts
sealed at src/blocks/prm/throttle/index.ts
PRIMITIVE
PRM-025
0.2kb
0 deps
Toggle
hooks/state
Boolean toggle hook with explicit setter. Tiny, but pulled because every project rewrites it.
from CMPSBL · src/hooks/useToggle.ts
sealed at src/blocks/prm/toggle/index.ts
PRIMITIVE
PRM-026
0.2kb
0 deps
Previous
hooks/state
Track the previous value of any variable across renders.
from CMPSBL · src/hooks/usePrevious.ts
sealed at src/blocks/prm/previous/index.ts
PRIMITIVE
PRM-027
1.4kb
0 deps
Local Storage
hooks/storage
Persistent state synced to localStorage with cross-tab `storage` event sync. SSR-safe, JSON-serialised, quota-tolerant. Lower-level than PRM-008 relay-preferences.
from CMPSBL · src/hooks/useLocalStorage.ts
sealed at src/blocks/prm/local-storage/index.ts
PRIMITIVE
PRM-028
1.0kb
0 deps
Copy To Clipboard
hooks/clipboard
Copy text + `copied` flag that auto-resets. Falls back to legacy execCommand for non-secure contexts.
from CMPSBL · src/hooks/useCopyToClipboard.ts
sealed at src/blocks/prm/copy-to-clipboard/index.ts
PRIMITIVE
PRM-029
0.8kb
0 deps
Countdown
hooks/timing
1-second-tick countdown with start/pause/reset and isFinished flag.
Open a print-optimized window from markdown + render to print/PDF. Stripped of CMPSBL branding + sonner; caller passes brand + onError/onSuccess. Pluggable markdown renderer.
from CMPSBL · src/components/ui/ContentSkeleton.tsx
sealed at src/blocks/cmp/content-skeleton/index.tsx
COMPONENT
CMP-054
0.8kb
0 deps
Rate Limit Feedback
ui/ratelimit
Global event-bus driven rate-limit banner with retry countdown.
from CMPSBL · src/components/ui/RateLimitFeedback.tsx
sealed at src/blocks/cmp/rate-limit-feedback/index.tsx
COMPONENT
CMP-055
0.6kb
0 deps
Back To Top
ui/scroll-fab
Floating FAB that appears after scroll threshold. rAF-throttled.
from CMPSBL · src/components/navigation/BackToTop.tsx
sealed at src/blocks/cmp/back-to-top/index.tsx
COMPONENT
CMP-056
0.8kb
0 deps
Viewport Modal
ui/modal
Centered viewport modal with scroll lock, backdrop dismiss, and X close.
from CMPSBL · src/components/modal/ViewportModal.tsx
sealed at src/blocks/cmp/viewport-modal/index.tsx
COMPONENT
CMP-057
1.4kb
0 deps
Smart Toast
ui/toast
Anchor-aware toast system — pushes appear near the user's last pointer/key interaction instead of a fixed corner. Store + hook + renderer + tracker in one file. Zero deps beyond React.
from CMPSBL · src/components/toast/* + src/lib/ui/lastInteraction.ts
sealed at src/blocks/cmp/smart-toast/index.tsx
PRIMITIVE
PRM-014
1.5kb
0 deps
Redact Secrets
security/redact
Deep-walks any value masking JWTs, API key prefixes, base64 blobs, UUIDs, sensitive headers, URL params, and error objects. Circular-ref + depth guarded. Drop into any logger.
from CMPSBL · src/lib/defense/redact.ts
sealed at src/blocks/prm/redact-secrets/index.ts
ENGINE
ENG-275
2.2kb
0 deps
Anomaly Detector
defense/anomaly
Rate-spike + temporal + behavioral anomaly classifier fused into a single risk score with recommended action (allow/monitor/challenge/block). Bounded in-memory; pure.
from CMPSBL · src/lib/defense/anomalyDetector.ts
sealed at src/blocks/eng/anomaly-detector/index.ts
ENGINE
ENG-276
1.6kb
0 deps
Bot Fingerprint
defense/bot
Client-side headless/automation detector + non-invasive browser fingerprint + passive interaction tracker. Reporter-agnostic — emits signals, you decide where they go.
from CMPSBL · src/lib/defense/site-guard.ts (supabase reporting stripped)
sealed at src/blocks/eng/bot-fingerprint/index.ts
ENGINE
ENG-260
2.6kb
0 deps
Dream Synthesizer
memory/consolidation
Offline memory consolidation engine — decay → prune → strengthen → merge. The DREAM primitive's heart: turns raw experience traces into compacted long-term memory.
from CMPSBL · src/lib/dream/synthesizer.ts
sealed at src/blocks/eng/dream-synthesizer/index.ts
ENGINE
ENG-261
0.5kb
0 deps
Ring Buffer
substrate/buffer
Fixed-capacity circular buffer. O(1) push, O(n) drain. Zero allocation after warmup.
from CMPSBL · src/lib/substrate/ring-buffer.ts
sealed at src/blocks/eng/ring-buffer/index.ts
ENGINE
ENG-262
0.8kb
0 deps
Bloom Filter
substrate/probabilistic
Space-efficient set membership with tunable false-positive rate. FNV-1a + double hashing.
from CMPSBL · src/lib/substrate/bloom-filter.ts
sealed at src/blocks/eng/bloom-filter/index.ts
ENGINE
ENG-263
0.6kb
0 deps
Semaphore
substrate/concurrency
Async counting semaphore for bounding parallelism. acquire/release with FIFO waiters.
from CMPSBL · src/lib/substrate/semaphore.ts
sealed at src/blocks/eng/semaphore/index.ts
ENGINE
ENG-264
1.0kb
0 deps
Idempotency Keys
substrate/idempotency
withIdempotency() — same key returns cached result, concurrent callers await the in-flight promise. TTL-gc'd.
from CMPSBL · src/lib/substrate/idempotency.ts
sealed at src/blocks/eng/idempotency-keys/index.ts
ENGINE
ENG-265
0.7kb
0 deps
Request Coalescer
substrate/coalesce
Collapses concurrent identical requests into a single in-flight promise. Stampede protection.
from CMPSBL · src/lib/substrate/request-coalescer.ts
sealed at src/blocks/eng/request-coalescer/index.ts
ENGINE
ENG-266
0.8kb
0 deps
Retry Budget
substrate/retry
Token-bucket retry governor. Prevents retry storms by capping retries against a refilling budget.
Normalizes heterogeneous capability outputs into a common shape — strips nondeterminism, unifies error envelopes.
from CMPSBL · src/lib/capability-mesh/output-normalizer.ts
sealed at src/blocks/eng/capability-output-normalizer/index.ts
ENGINE
ENG-269
1.0kb
0 deps
Capability Confidence Tracker
mesh/capability
Bayesian confidence accumulator per capability — tracks success/failure to bias future routing.
from CMPSBL · src/lib/capability-mesh/confidence-tracker.ts
sealed at src/blocks/eng/capability-confidence-tracker/index.ts
ENGINE
ENG-270
1.1kb
0 deps
Capability Invocation Guards
mesh/capability
Pre-flight guards: arg-shape check, rate cap, dependency readiness, kill-switch — blocks bad invocations before they run.
from CMPSBL · src/lib/capability-mesh/invocation-guards.ts
sealed at src/blocks/eng/capability-invocation-guards/index.ts
ENGINE
ENG-271
0.9kb
0 deps
Dream Generation Gate
memory/safety
Enforces generation-depth limits on synthesized memories to prevent semantic drift across dream cycles.
from CMPSBL · src/lib/dream/generation-gate.ts
sealed at src/blocks/eng/dream-generation-gate/index.ts
ENGINE
ENG-272
1.0kb
0 deps
Intent Quality Scorer
mesh/intent
Pure scoring function over intent rows — specificity, completeness, actionability. Rows in, scores out.
from CMPSBL · src/lib/intent-mesh/quality-scorer.ts
sealed at src/blocks/eng/intent-quality-scorer/index.ts
ENGINE
ENG-273
1.2kb
0 deps
Intent Affinity Matrix
mesh/intent
Builds intent × intent co-occurrence matrix with Jaccard similarity for clustering related goals.
from CMPSBL · src/lib/intent-mesh/affinity-matrix.ts
sealed at src/blocks/eng/intent-affinity-matrix/index.ts
ENGINE
ENG-274
1.4kb
0 deps
Intent Pattern Recognizer
mesh/intent
Recognizes recurring intent sequences (workflow templates) from historical row streams. Pure functional pipeline.
from CMPSBL · src/lib/intent-mesh/pattern-recognizer.ts
sealed at src/blocks/eng/intent-pattern-recognizer/index.ts
ENGINE
ENG-277
2.8kb
0 deps
Bayesian Network
oracle/inference
Multi-variable inference engine — define nodes, edges, conditional probability tables, then apply evidence and propagate belief through the DAG via BFS. Self-calibrating confidence.
from CMPSBL · src/lib/oracle/ultimate/bayesianNetwork.ts
sealed at src/blocks/eng/bayesian-network/index.ts
ENGINE
ENG-278
2.4kb
0 deps
Trend Forecaster
oracle/timeseries
EMA + linear regression + Z-score anomaly + daily/weekly seasonality detection. Three-horizon forecasts (5min/1hr/24hr) with confidence intervals.
from CMPSBL · src/lib/oracle/ultimate/trendForecaster.ts
sealed at src/blocks/eng/trend-forecaster/index.ts
ENGINE
ENG-279
2.6kb
0 deps
Scenario Simulator
oracle/montecarlo
Monte Carlo what-if engine with Welford running-variance early termination. Pluggable model fn, seeded PRNG, full distributions + CI90/95/99.
from CMPSBL · src/lib/oracle/ultimate/scenarioSimulator.ts
sealed at src/blocks/eng/scenario-simulator/index.ts
ENGINE
ENG-280
2.0kb
0 deps
Early Warning
oracle/convergence
Multi-source signal convergence detector — when 3+ weak signals from 2+ sources align in a category, issue a graded warning (advisory→imminent) with horizon.
from CMPSBL · src/lib/oracle/ultimate/earlyWarning.ts
from CMPSBL · src/lib/oracle/ultimate/predictionMarket.ts
sealed at src/blocks/eng/prediction-market/index.ts
ENGINE
ENG-284
2.0kb
0 deps
BM25 Engine
brain/retrieval
Okapi BM25 ranked retrieval — term-frequency saturation + IDF + length normalization. BM25Index class, drop-in for any text corpus. Tokenizer + stopwords inlined.
from CMPSBL · src/lib/brain/bm25Engine.ts (shared.ts inlined)
sealed at src/blocks/eng/bm25-engine/index.ts
ENGINE
ENG-285
1.8kb
0 deps
Hebbian Pathways
brain/co-access
Co-access pattern detector — neurons that fire together wire together. EMA-weighted pathway strengthening within a sliding window, predictive pre-fetch, temporal decay.
from CMPSBL · src/lib/brain/hebbianPathways.ts (singleton stripped)
sealed at src/blocks/eng/hebbian-pathways/index.ts
ENGINE
ENG-286
2.4kb
0 deps
Sparse Distributed Rep
brain/encoding
Biologically-inspired SDR encoding — 2048-bit vectors at ~2% sparsity via FNV-1a trigram + word hashing. Noise-tolerant overlap similarity + sub-pattern matching for partial recall.
from CMPSBL · src/lib/brain/sparseDistributedRep.ts (singleton stripped)
sealed at src/blocks/eng/sparse-distributed-rep/index.ts
ENGINE
ENG-287
2.2kb
0 deps
Contradiction Detector
brain/conflict
Three-strategy text conflict detector: semantic negation/antonym asymmetry, numeric divergence (same-unit), temporal supersession. Resolve via supersede/merge/coexist/flag. Tokenizer inlined.
from CMPSBL · src/lib/brain/contradictionDetector.ts (shared.ts inlined, singleton stripped)
sealed at src/blocks/eng/contradiction-detector/index.ts
ENGINE
ENG-288
2.0kb
0 deps
Neural Plasticity
brain/meta-learning
Meta-learning rate governor — tracks outcome success/novelty/impact to flip between exploration / consolidation / balanced / protective modes. Prevents catastrophic forgetting AND stagnation.
from CMPSBL · src/lib/brain/neuralPlasticity.ts (singleton stripped)
sealed at src/blocks/eng/neural-plasticity/index.ts
ENGINE
ENG-289
1.7kb
0 deps
Working Memory
brain/attention
Capacity-bounded attention buffer (Miller's 7±2) with priority-based eviction, time decay, context focus, and rehearsal. The short-term context window every reasoning agent needs.
from CMPSBL · src/lib/brain/workingMemory.ts (singleton stripped)
from CMPSBL · src/lib/oracle/ultimate/prescriptiveEngine.ts (singleton stripped)
sealed at src/blocks/eng/prescriptive-engine/index.ts
ENGINE
ENG-291
2.1kb
0 deps
Prophecy Journal
oracle/calibration
Immutable prediction ledger with Brier-score calibration: bucketed 'when we say 80%, are we right 80% of the time?' analysis, per-category accuracy, best/worst model surfacing.
from CMPSBL · src/lib/oracle/ultimate/prophecyJournal.ts (singleton stripped)
sealed at src/blocks/eng/prophecy-journal/index.ts
ENGINE
ENG-292
1.9kb
0 deps
Capacity Planner
oracle/exhaustion
Resource exhaustion projection via linear regression on usage samples. R²-weighted confidence, growth-per-hour, graded urgency (safe→critical) with scaling recommendation.
from CMPSBL · src/lib/oracle/ultimate/capacityPlanner.ts (singleton stripped)
sealed at src/blocks/eng/capacity-planner/index.ts
ENGINE
ENG-293
1.6kb
0 deps
Oracle Telemetry
oracle/observability
Aggregate health snapshot for any prediction stack — throughput, accuracy EMA, calibration drift, lead time, adoption, model credibility, risk, composite health score.
from CMPSBL · src/lib/oracle/ultimate/oracleTelemetry.ts (singleton stripped)
sealed at src/blocks/eng/oracle-telemetry/index.ts
ENGINE
ENG-294
5.0kb
0 deps
Defense Guardrail Kernel
defense/governance
Composed governance kernel for adaptive defense: proposal gate + threshold clamping (bounds/delta/cooldown/confirmations) + traffic-spike freeze + shadow-mode validation (simulate→approve, auto-rollback on FP degrade) + immunity sandbox + rate-limited logger with pluggable sink. Ships the whole 7-file phase stack as one block — these phases share state by design.
from CMPSBL · src/lib/defense/guardrail/* (logger decoupled from structuredLog, proposal-store spike-state de-duplicated)
sealed at src/blocks/eng/defense-guardrail/index.ts
PRIMITIVE
PRM-036
1.4kb
0 deps
Consonant Skeleton
phonotactics/text
The phonotactic math under brandable naming. Vowel strip, phonetic key, ending extraction, CV-rhythm score, pronounceability (configurable phoneme clusters), ugly-run detection, root-anchor check. Pure, zero deps — the DNA behind CRCKBL / CMPSBL / BLDBL itself.
from CRCKBL · src/lib/domain-utils.ts + scoring-engine.ts (phonotactic core extracted, hardcoded ending lists hoisted to caller)
sealed at src/blocks/prm/consonant-skeleton/index.ts
PRIMITIVE
PRM-037
0.4kb
0 deps
Domain Utils
naming/dns
RFC-ish domain label validation, parse, TLD variant cross-product, DNS-length check. Pure functions for any naming/availability flow.
from CRCKBL · src/lib/domain-utils.ts
sealed at src/blocks/prm/domain-utils/index.ts
PRIMITIVE
PRM-038
2.6kb
0 deps
Speech Baritone
audio/voice
Web Speech utterance dressed in a smoky WebAudio reverb bed. Baritone voice picker (lowest-sounding male English voice the OS exposes), convolved noise-tail wash, sub-rumble. For AI agent voicing, character monologue, ambient narration. Zero assets.
from CRCKBL · src/lib/dons-voice.ts (family-sfx coupling stripped, options exposed)
sealed at src/blocks/prm/speech-baritone/index.ts
COMPONENT
CMP-058
1.0kb
0 deps
Panel Boundary
react/error
Defensive error boundary for dashboard panels. A 20-panel dashboard can't afford one crash to white-screen the page. Catches, contains, retries; pluggable fallback + onError reporter (Sentry/console/etc).
from CRCKBL · src/components/PanelBoundary.tsx (onError + fallback hooks added)
sealed at src/blocks/cmp/panel-boundary/index.tsx
COMPONENT
CMP-059
3.2kb
1 deps
Verdict Flash
react/feedback
Cinematic stamp-and-particles flash for binary verdicts. Two variants — success (solid stamp + rising bills + optional ticker) and fail (struck stamp + drifting ash). Generic label/subline/footnote API, --primary/--destructive tokens, ~1100ms total so it never blocks rapid input. For swipe decks, approval flows, gamified review.
from CRCKBL · src/components/VerdictFlash.tsx (audio coupling stripped, props genericized from made/whacked → success/fail)
from CRCKBL · src/lib/consonant-collapse-generator.ts + scoring-engine.ts (CRCKBL-specific endings hoisted to NamerConfig, supabase-coupled cleaner pipeline cut)
sealed at src/blocks/eng/brandable-namer/index.ts
PRIMITIVE
PRM-039
1.2kb
0 deps
Broadcast Clock
time/station
Single source of truth for 'what time is it on the air' — TZ-anchored station clock with hour/minute, spoken format ('6:04 pm CDT'), daypart bucketing, top-of-hour windows, and per-channel cadence ledger (localStorage). Pure Intl, SSR-safe.
from yapFM · src/lib/clockless-radio/station-clock.ts (Abilene/CST constants + DJ phrase pool extracted to options)
sealed at src/blocks/prm/broadcast-clock/index.ts
PRIMITIVE
PRM-040
0.6kb
0 deps
Quiet Hours Gate
time/window
Wall-clock 'quiet window' check — true iff right now (in a configured TZ) falls inside a [start,end) minute-of-day window. Wraps midnight. Caller owns config loading; block just gates.
from yapFM · src/lib/clockless-radio/quiet-hours.ts (Supabase fetch + ET-locked TZ stripped)
sealed at src/blocks/prm/quiet-hours-gate/index.ts
ENGINE
ENG-296
1.4kb
0 deps
Slot Transitions
media/transitions
Serial transition matrix for sequenced media — (prev, next) slot pair → params (mode + fade times + duck dB + pad). Default ruleset models FM-style handoff (music↔voice↔ad↔bumper↔sweep↔news↔weather); rule table is pluggable for any domain (video editor, game audio, IVR). No overlap mixing by design.
from yapFM · src/lib/clockless-radio/{transitions,slot-scheduler}.ts (merged; canon citations dropped; rules pluggable)
sealed at src/blocks/eng/slot-transitions/index.ts
ENGINE
ENG-297
1.3kb
0 deps
Air Lock
concurrency/mutex
Global 'exclusive air' mutex with pre-roll lockout + post-roll pad. Prevents low-pri output (TTS, ambient bed) from talking over a high-pri owner (ad, callout, emergency). acquire/release + isExclusive + whenAirFree(timeout) promise gate.
from yapFM · src/lib/clockless-radio/air-lock.ts (owner-kind union genericized; pre/post-roll configurable)
sealed at src/blocks/eng/air-lock/index.ts
ENGINE
ENG-298
0.9kb
0 deps
Loudness Trim
audio/gain
Heuristic per-item linear gain so heterogeneous audio sources sit at the same perceived level. Pluggable rule table (id prefix, field match, custom). Returns [0,1] for a GainNode. Per-item gainTrim override always wins.
from yapFM · src/lib/clockless-radio/loudness.ts (track-id prefixes + remixStyle enum hoisted into pluggable rules)
sealed at src/blocks/eng/loudness-trim/index.ts
ENGINE
ENG-299
1.3kb
0 deps
Bucket Mix Enforcer
scheduling/mix
Reorders any list so rolling N-item windows respect a target bucket distribution (e.g. 70/20/10). Greedy: picks bucket furthest below quota. Generic getBucket fn — works for playlist energy mix, feed category mix, ad sponsor mix, search interleaving.
from yapFM · src/lib/clockless-radio/energy-mix.ts (core/elevated/deep hoisted; localStorage layer cut)
sealed at src/blocks/eng/bucket-mix-enforcer/index.ts
ENGINE
ENG-300
2.4kb
0 deps
Deterministic Broadcast
sync/clockless
'Always-on virtual broadcast' kernel — every listener hears the same item at the same position with zero server. Seeded shuffle + wall-clock math against a configurable epoch (default: daily UTC midnight). getBroadcastPosition() returns current item + offset + msToNext, same on every client. Foundation for a radio station, live channel, synchronized demo, virtual event.
sealed at src/blocks/eng/deterministic-broadcast/index.ts
PRIMITIVE
PRM-041
1.0kb
0 deps
Time-Decay Ladder
time/state-machine
Generic time-decay state machine. Items pass through caller-defined stages as they age, with optional touch-pause, slow-event, and score modifiers. Drop-in for ephemeral feeds, expiring listings, ticket SLAs, inventory freshness — anything where 'how stale?' maps to 'what state to render?'. Ships with a 30-day 5-stage preset; pair with PRM-012 text-decay for visual glitch tied to stage.
from RSLVBL · src/lib/decay.ts (transmission/echo/boost vocabulary genericized to touch/slow/score; corruption stripped — already lives in PRM-012)
sealed at src/blocks/prm/time-decay-ladder/index.ts
COMPONENT
CMP-060
0.6kb
1 deps
Animated List
react/motion
Staggered enter/exit list with layout shuffling via Framer Motion's AnimatePresence + popLayout. Pure wrapper — pass children, get motion. Default variants are overridable.
from RSLVBL · src/components/AnimatedList.tsx (any-cast removed, variants made overridable)
sealed at src/blocks/cmp/animated-list/index.tsx
COMPONENT
CMP-061
0.4kb
1 deps
Page Transition
react/motion
Minimal opacity+slide route transition. Wrap route content; pair with <AnimatePresence mode='wait'> at the router level for exit animations.
from RSLVBL · src/components/PageTransition.tsx (variants prop added)
sealed at src/blocks/cmp/page-transition/index.tsx
COMPONENT
CMP-062
0.7kb
1 deps
New-Items Banner
react/feedback
Floating 'N new items' pill for realtime feeds. Renders nothing at count=0. Caller owns the count source (websocket diff, polling delta, realtime subscription) and the refresh action. Zero UI-kit coupling — icon slots only.
from RSLVBL · src/components/NewTransmissionBanner.tsx (shadcn Button + lucide Radio/Chevron decoupled into icon slots; transmission noun → generic)
sealed at src/blocks/cmp/new-items-banner/index.tsx
COMPONENT
CMP-063
1.0kb
0 deps
Search-Filter Bar
react/input
Search input + toggleable tag-chip filter row + clear-all. Fully controlled. Zero shadcn/lucide coupling — accepts optional icon slots and per-tag active/inactive class overrides so the host owns styling.
from RSLVBL · src/components/TransmissionSearch.tsx (Input/Button/Badge/cn dependencies removed; era-specific color maps replaced with caller-supplied per-tag classes)
sealed at src/blocks/cmp/search-filter-bar/index.tsx
ENGINE
ENG-301
1.4kb
0 deps
SSO Handoff Client
auth/satellite
Cross-domain SSO handoff for satellite tools that delegate auth to a hub app. Hub redirects with ?token=… → satellite validates against hub's introspection endpoint → satellite stores a scoped sessionStorage session. No Supabase/Lovable coupling — caller injects authUrl, validateUrl, toolKey. Factory pattern; spin up one client per hub you delegate to.
from RSLVBL · src/lib/xctbl-auth.ts (XCTBL URLs + Supabase Functions URL + tool key all hoisted to config; singleton → factory; SSR-safe window guards added)
sealed at src/blocks/eng/sso-handoff-client/index.ts
PRIMITIVE
PRM-042
0.5kb
0 deps
Use SSO Handoff
react/hook
React hook companion for ENG-301. Wraps an injected handoff client: calls init() once on mount, exposes session/user/loading/isAuthenticated, returns login/logout actions. Client is injected (not constructed inside) so an app can share one client, configure multiple hubs, or swap a mock for tests.
from RSLVBL · src/hooks/useXCTBLAuth.ts (singleton xctblAuth import replaced with injected client param; SSR-safe initial state)
sealed at src/blocks/prm/use-sso-handoff/index.ts
PRIMITIVE
PRM-043
0.9kb
0 deps
Phonetic Degrade
text/degrade
Weighted phonetic-substitution engine. Degrades English via swap table (silent letters, vowel collapse, ending simplification) preserving case and a per-word cap. Default table + injectable swaps + injectable RNG. Useful for dialect/pidgin, settler-talk, distressed signage, procedural typos.
from SPLCBL · src/lib/phonetic-misspell.ts (Martian/lore framing stripped; swap table and RNG hoisted to options)
sealed at src/blocks/prm/phonetic-degrade/index.ts
PRIMITIVE
PRM-044
0.5kb
0 deps
Toast Loading Keys
ui/toast-lifecycle
Keyed loading-toast lifecycle. Each key holds at most one active loading toast; starting a new one for the same key dismisses the previous. Adapter interface — works with sonner, react-hot-toast, or any lib with loading()/dismiss(id).
from SPLCBL · src/lib/splcbl-toast.ts (themed/lore copy stripped; sonner import replaced with injected ToastAdapter)
sealed at src/blocks/prm/toast-loading-keys/index.ts
from SPLCBL · src/contexts/AudioContext.tsx (hardcoded /audio path, branded metadata, and storage key all hoisted to props; SPLCBL branding removed)
sealed at src/blocks/prm/ambient-music-channel/index.tsx
COMPONENT
CMP-064
0.5kb
0 deps
Neon Sign
ui/label
Tiny neon-glow label with eight stock hues, three sizes, optional absolute corner placement, optional pulse-flicker. Tailwind-only, zero deps, zero shadcn coupling. Drops into any React/Vite project.
from SPLCBL · src/components/NeonSign.tsx (cn helper inlined; HSL custom-property fallbacks swapped for raw hex so it works without the SPLCBL theme tokens)
sealed at src/blocks/cmp/neon-sign/index.tsx
COMPONENT
CMP-065
0.7kb
0 deps
Diff Modal
ui/diff-overlay
Unified-diff preview overlay. Color-codes +/- lines, optional download action, optional footer slot for custom actions. Self-contained — no shadcn Card/Button dependencies, just semantic tokens.
from SPLCBL · src/components/FixDiffPreview.tsx (Card/Button/ScrollArea/lucide deps stripped; backdrop-click-to-close added)
sealed at src/blocks/cmp/infinite-ticker/index.tsx
COMPONENT
CMP-067
0.6kb
0 deps
Ambient Quote
ui/fragment
Decorative text fragment pulled from a caller-supplied pool. Five rendering variants (graffiti, scan-note, corrupted, whisper, warning). Deterministic seed or random selection. Fades in on viewport intersect. aria-hidden by default.
from SPLCBL · src/components/district/ProphecyGraffiti.tsx (hardcoded prophecy pools removed; format function injectable)
sealed at src/blocks/cmp/ambient-quote/index.tsx
COMPONENT
CMP-068
1.2kb
0 deps
Signal Heatmap
viz/density-map
Interactive 2D density map. Nodes plotted by % coordinates with pulsing glow rings, hover/focus tooltip, keyboard activation (Enter/Space toggles focus-lock). Generic over level type; caller supplies node list, level→color resolver, optional tooltip renderer.
from SPLCBL · src/components/district/SignalHeatmap.tsx (DreamInfluence context dependency removed; hardcoded intensity color buckets replaced with a levelColor resolver prop)
sealed at src/blocks/cmp/signal-heatmap/index.tsx
PRIMITIVE
PRM-046
1.6kb
0 deps
UI Glitch Engine
react/ui-noise
Generic UI-noise hook. Five glitch types (offset / weight / lag / flash / stereoShift) with timed apply + partial decay, plus ambient auto-glitches driven by an intensity 0-1. Flash symbol pool is caller-injected — no embedded glyphs. Drop into any app that wants computer-going-wrong vibes.
from RCKBL · src/hooks/usePsychologicalEffects.ts (HIDDEN_SYMBOLS hoisted to prop; consumption/exit/watcher-specific trigger helpers dropped — caller composes from applyGlitch)
sealed at src/blocks/prm/ui-glitch-engine/index.ts
PRIMITIVE
PRM-047
1.4kb
0 deps
Use Visit Tracking
react/storage
Local-only visit counter. Tracks total visits, session detection via sessionStorage, abrupt-exit flag (beforeunload + visibilitychange), and a derived 0-1 degradation level. Caller picks storage key + degradation ramp. SSR-safe.
sealed at src/blocks/prm/use-visit-tracking/index.ts
PRIMITIVE
PRM-048
1.3kb
0 deps
Use Edge Shadows
react/ambient
Spawns ephemeral 'presence' entities at screen edges with fade-in / drift / fade-out / despawn lifecycle. Returns positions + stereo balance for sound panning. Pair with CMP-069 edge-shadows renderer.
from RCKBL · src/hooks/useWatcherPresence.ts (entityState/degradation collapsed into a single intensity prop)
sealed at src/blocks/prm/use-edge-shadows/index.ts
PRIMITIVE
PRM-049
1.1kb
0 deps
Use Voice Transcription
react/media
MediaRecorder hook with caller-injected transcription adapter. Webm preferred, mp4 fallback. Adapter is (blob, mime) => Promise<string|null>, so swap any provider (Whisper, Gemini, Lovable AI, local Web Speech).
sealed at src/blocks/prm/use-voice-transcription/index.ts
ENGINE
ENG-302
1.0kb
0 deps
Dialogue Rotator
narrative/lines
Pure mood-keyed line player with no-repeat memory until pool exhausts. Optional mid-thought truncation. Lines, moods, and selection strategy are entirely caller-owned. Zero React; pair with PRM-050 for the React surface.
from RCKBL · src/hooks/useEntityDialogue.ts (DIALOGUE_PACKS extracted to caller; React state/timing split into PRM-050)
sealed at src/blocks/eng/dialogue-rotator/index.ts
PRIMITIVE
PRM-050
0.9kb
1 deps
Use Dialogue Rotator
react/hook
React hook companion for ENG-302. Owns timing, jitter, and visibility lifecycle of a single rotating speech bubble. Caller passes a DialogueRotator instance plus a mood per show() call. Closes the ENG+hook pair.
from RCKBL · src/hooks/useEntityDialogue.ts (React surface)
sealed at src/blocks/prm/use-dialogue-rotator/index.ts
COMPONENT
CMP-069
0.9kb
0 deps
Edge Shadows
ui/ambient-overlay
Fixed-position pointer-blind overlay rendering soft radial gradients at viewport edges, with edge vignette. Renderer for PRM-048. Color themed via --edge-shadow CSS var or color prop.
from RCKBL · src/components/WatcherOverlay.tsx (hsla purple → themed color var; cn/Tailwind → inline style for zero-dep portability)
sealed at src/blocks/cmp/edge-shadows/index.tsx
COMPONENT
CMP-070
0.5kb
0 deps
One Frame Flash
ui/subliminal
Single-frame full-screen glyph/text flash for subliminal triggers. Nothing renders when symbol is null. Color + glow are caller-themed. Self-contained keyframes; zero deps.
from RCKBL · src/components/SymbolFlash.tsx (Tailwind/cn stripped; color and glow hoisted to props)
sealed at src/blocks/cmp/one-frame-flash/index.tsx
COMPONENT
CMP-071
1.0kb
0 deps
Floating Speech
ui/speech-bubble
Fixed-position floating speech text — splits long content into 2 lines, supports jitter offset, optional glitch-style RGB chromatic shadow, configurable vertical anchor. Pairs with PRM-050 for full dialogue UI.
sealed at src/blocks/cmp/floating-speech/index.tsx
COMPONENT
CMP-072
1.5kb
0 deps
Exit Consequence Splash
ui/interstitial
Full-screen interstitial fired on exit attempts. Black flash, vignette compression, vertical distortion sweep, fragmented per-word letter-spacing on the centered text, optional Web-Audio echo. Caller owns the text words + duration. Joins the splash family (RNDRBL family).
from RCKBL · src/components/ExitSplash.tsx (hardcoded 'That one stayed.' → caller words[]; audio echo made opt-out; Tailwind stripped)
sealed at src/blocks/cmp/exit-consequence-splash/index.tsx
PRIMITIVE
PRM-051
1.6kb
0 deps
Ambient Drone
audio/synth
Oscillator-stack ambient drone with per-voice lowpass warmth, detuning, master LFO, fade in/out and a built-in AnalyserNode. Default A1/E2/A2/E3 power-chord voicing; override voices for any sustained pad. Engine owns its AudioContext (or accepts an injected one to share with whoosh-fx).
from CRXBL · src/hooks/usePortalAudio.ts (drone half extracted, hook→factory)
sealed at src/blocks/prm/ambient-drone/index.ts
PRIMITIVE
PRM-052
1.4kb
0 deps
Whoosh FX
audio/oneshot
Profile-driven one-shot whoosh: noise→bandpass sweep + sub-bass pitch drop + shimmer + optional extra layer (ramp or stepped frequency schedule). Ships four named presets (core/social/media/tiktok). Accepts an optional outputNode so an analyser sees the one-shots too.
Accurate 'live now' presence signal. Pings injected `send(payload)` every interval (default 30s) when tab is visible, user has interacted, and not idle (default 60s timeout). Cross-tab session ID via localStorage with private-mode fallback. Listens to mouse/key/scroll/touch + visibilitychange + focus. Caller owns transport (fetch+keepalive, sendBeacon, RPC) and extra payload fields.
from Signal.XCTBL · src/hooks/useHeartbeat.ts (collector URL + domain coupling → injected send fn + extra fields; session key configurable)
sealed at src/blocks/prm/heartbeat-tracker/index.ts
PRIMITIVE
PRM-054
0.6kb
0 deps
Date-Range Presets
time/range
Headless date-range primitive for dashboards. Pure date math — no UI, no shadcn. Preset union (today/yesterday/last7/14/30/90/alltime) → {start,end}, preset → comparison preset, and 'previous period of equal duration' from any range. Bundled full + short labels. Pair with any picker.
from Signal.XCTBL · src/components/dashboard/DateRangeFilter.tsx (shadcn Dropdown UI stripped; presets/labels/range math hoisted; last90days added; getPreviousRange added)
sealed at src/blocks/prm/date-range-presets/index.ts
PRIMITIVE
PRM-055
0.7kb
0 deps
Traffic Source Classifier
analytics/referrer
Bucket a referrer URL into a source category (search/social/community/direct/other) via pluggable hostname-substring rules. Default ruleset covers Google/Bing/DDG, X/LinkedIn/TikTok/Bsky/Mastodon, Reddit/HN/PH/Discord. Pair with any event store: `classifyReferrer(url)` or `aggregateReferrers(list)` → counts-by-type + topHosts.
from Signal.XCTBL · src/hooks/useRealtimeAnalytics.ts (inline regex categorization extracted; rules made pluggable; community/social hosts expanded)
sealed at src/blocks/prm/traffic-source-classifier/index.ts
PRIMITIVE
PRM-056
1.3kb
0 deps
Session Aggregator
analytics/sessions
Compute classic dashboard metrics from a flat event stream `{sessionId, ts, eventName, path?}`: pageviews, uniqueSessions, totalEvents, bounceRate%, avgPagesPerSession, avgSessionDuration (idle-gap aware, default 5-min gap excluded), singlePageSessions, topPages. Pure transform, schema-agnostic. Includes `growthPct(curr, prev)` helper for period comparisons.
from Signal.XCTBL · src/hooks/useDateFilteredStats.ts + useRealtimeAnalytics.ts (space_events schema coupling stripped; identical bounce/duration/topPages logic was duplicated across both hooks — extracted once)
sealed at src/blocks/prm/session-aggregator/index.ts
COMPONENT
CMP-079
1.6kb
0 deps
Comparison Card
ui/dashboard
KPI card with current vs previous side-by-side and a delta pill (▲/▼/—). Pluggable icon component, formatValue fn, and outer className for host design tokens. `invertDelta` flips up/down color semantics (for metrics where lower is better — bounce rate, error count). Custom `renderDelta` slot replaces the pill. No lucide hard-dep.
from Signal.XCTBL · src/components/dashboard/ComparisonCard.tsx (lucide Arrow icons → unicode glyphs; glass-card class → configurable className; invertDelta + renderDelta added)
sealed at src/blocks/cmp/comparison-card/index.tsx
COMPONENT
CMP-073
2.4kb
0 deps
Shadow Creatures
ui/ambient-overlay
Fixed overlay of drifting SVG silhouettes with mouse-parallax, intermittent random pauses (with rotate + scale pulse), and breathing fill opacity. Eight bundled themes (wanderers/runners/creatures/faces/dragons/ghosts/glitch/cosmic) plus inject-your-own paths. Z-index, fill and class all overridable.
from CRXBL · src/components/ShadowCreatures.tsx (theme enum kept as data registry; SVG path pool genericized via paths prop)
sealed at src/blocks/cmp/shadow-creatures/index.tsx
COMPONENT
CMP-074
4.2kb
0 deps
Portal Canvas
ui/canvas-fx
Dual-canvas interactive vortex — spinning chevron ring, four counter-rotating ring layers, gradient event horizon, 3-arm spiral, attracted particle field. Optional analyser-driven frequency-bar ring around the outer edge. Pure presentation: hover/activating are props, palette hues are props, no audio or router coupling. Pair with PRM-051/052 for the full stargate effect.
from CRXBL · src/components/StargatePortal.tsx (countdown / destination / Link / usePortalAudio stripped; analyser feed now a getFrequencyData() prop)
sealed at src/blocks/cmp/splash/glitch-text-portal.tsx
COMPONENT
CMP-076
2.6kb
0 deps
Pixel Time Vortex
ui/splash
16-bit pixel time-travel splash. 320×240 pixelated canvas with warp-speed starfield, perspective tunnel, vortex rings, scanlines, glitch blocks, pixel clock with backward-spinning hands. Year counter ramps from→to (handles both directions). CRT corner markers + pixel progress bar. Distinctive retro-pixel aesthetic in the splash family.
from CRXBL · src/components/TimeTravelSplash.tsx (year range + labels lifted to props; backward/forward direction inferred from from>to)
sealed at src/blocks/cmp/splash/pixel-time-vortex.tsx
COMPONENT
CMP-077
3.0kb
0 deps
KaZaA Player
ui/audio-player
Y2K-skinned floating audio player. KaZaA Media Desktop aesthetic — title bar with min/close, animated 20-bar EQ, marquee track label, seek + volume sliders, 128 kbps / 44100 Hz / STEREO status bar. Minimizes to a chip. Fully self-styled (no Tailwind tokens), drops onto any page. src + title props.
Full-viewport projector screen + floating remote control. State machine (off → loading → on | static) with power/prev/next buttons, status pill, light-beam + dust + ambient glow FX. Caller injects `fetchContent: () => Promise<{video?, image?, text?}>` — works against any source (REST, edge function, static JSON, AI generator). Optional back-slot + remote-footer slots for host chrome. No router, no SEO, no Supabase coupling.
from CRXBL · src/pages/TV.tsx (Supabase URL + Dream shape → injected fetchContent adapter; SEO/ShadowCreatures/react-router stripped; back link → slot)
sealed at src/blocks/cmp/projector-tv/index.tsx
PRIMITIVE
PRM-057
4.2kb
0 deps
Device Fingerprint
browser/detection
Browser device-fingerprinting kernel. Canvas, WebGL, audio, font enumeration, hardware, network, session-state signals plus headless-browser detectors (navigator.webdriver, CDP leak, WebRTC IP leak, SwiftShader, missing chrome obj) and cross-signal consistency checks (UA vs platform, mobile UA + desktop screen, viewport > screen, language mismatch, unrealistic mem/cores). `generate()` returns raw signals; `hash()` SHA-256s the lot into a stable-ish device id. Pure browser APIs, zero deps.
from aetherionshield · src/sdk/fingerprint.ts (brand strings stripped; `any` typing replaced with proper narrow types; broke 580-line class out as standalone primitive — no SDK wrapper)
sealed at src/blocks/prm/device-fingerprint/index.ts
PRIMITIVE
PRM-058
1.6kb
0 deps
Behavioral Tracker
browser/signals
Memory-bounded ring buffers of human-interaction signals: mouse moves (sampled), keystrokes (masked — chars → '*', timing preserved), scroll, clicks, page focus. Passive listeners on document/window. Configurable maxEvents + sample intervals. Use as bot-scorer input, session-replay snippet, or 'is the user actually here' gate. Companion to PRM-057/PRM-059.
from aetherionshield · src/sdk/behavioral.ts (handlers + detach refs added — original leaked listeners on stop; configurable sample intervals exposed)
sealed at src/blocks/prm/behavioral-tracker/index.ts
PRIMITIVE
PRM-059
1.8kb
2 deps
Bot Shield Client
browser/orchestrator
Transport-agnostic orchestrator for client-side bot/abuse protection. Generates a fingerprint (injected fingerprinter PRM-057), collects behavior (injected tracker PRM-058), submits to a caller-supplied `submit(payload)` transport, routes verdict to onBlocked / onChallenge. Fail-open by default. Optional `verifyChallenge` for challenge-response flows. Works with REST, RPC, server functions, in-process scoring, or a test mock.
from aetherionshield · src/sdk/aetherion-client.ts (hardcoded Supabase edge-function URL + X-API-Key header → injected `submit` adapter; tight DeviceFingerprint/BehavioralTracker imports → injected interfaces so swap/mock is trivial; default-block HTML replacement removed — host owns block UX)
sealed at src/blocks/prm/bot-shield-client/index.ts
PRIMITIVE
PRM-060
1.0kb
0 deps
Web Speech Input
browser/stt
Browser-native SpeechRecognition wrapper. Streams interim + final transcripts, configurable lang/continuous/interim, exposes `isSupported` for graceful fallback. Zero-cost, zero-network — STT happens in the browser. Distinct from PRM-049 use-voice-transcription, which is MediaRecorder + injected server STT (Whisper/Gemini). Pluggable `onError` sink — no toast coupling.
from razor-marketing-bot · src/hooks/useVoiceInput.tsx (useToast coupling → onError callback; finalTranscript accumulator added separately from interim transcript; ref-based instance so unmount cleanup is leak-free)
sealed at src/blocks/prm/web-speech-input/index.ts
PRIMITIVE
PRM-061
2.0kb
0 deps
Background Removal
image/segmentation
Client-side image background removal via @huggingface/transformers (segformer-b0-finetuned-ade-512-512, WASM). Auto-resize to 1024px max, invert mask → PNG with transparent background. Heavy peer dep — host installs `@huggingface/transformers` (~MBs of WASM + model on first call). Dynamic-imported behind a string specifier so the block compiles without the dep present.
from razor-marketing-bot · src/lib/backgroundRemoval.ts (console.log noise stripped; peer dep made optional via runtime string-spec import so block ships unblocked; model/device made configurable; loadImage helper kept)
sealed at src/blocks/prm/background-removal/index.ts
COMPONENT
CMP-080
1.2kb
0 deps
Message Actions
ui/chat
Hover-reveal action row for chat messages: copy, share (Web Share API + clipboard fallback), bookmark, regenerate. All handlers optional except copy (always shown). Native button + lucide icons — zero shadcn dep. `onCopied`/`onError` side-channels for host toast wiring. `alwaysVisible` skips the group-hover reveal.
from razor-marketing-bot · src/components/MessageActions.tsx (shadcn Button/DropdownMenu/Toast stripped → native buttons + onCopied/onError callbacks; brand 'Razor AI Response' share title → prop)
sealed at src/blocks/cmp/message-actions/index.tsx
COMPONENT
CMP-081
0.9kb
0 deps
PWA Install Instructions
ui/pwa
Static install-instructions card for iOS Safari + Android Chrome. Companion (not replacement) for CMP-038 pwa-install-prompt: CMP-038 fires on `beforeinstallprompt`; CMP-081 covers iOS Safari, which never fires that event. Pure presentation, configurable appName, overridable step arrays per platform. Caller owns the surrounding Dialog/Sheet.
from razor-marketing-bot · src/components/OnboardingDialog.tsx (extracted the iOS/Android install steps sub-screen; rest of the dialog — hardcoded email-based personalization for 'Chris/Barbi/Kenneth/Burton' + brand copy — discarded)
sealed at src/blocks/cmp/pwa-install-instructions/index.tsx
COMPONENT
CMP-082
0.5kb
0 deps
Buy Me Coffee Button
ui/donation
Renders the official BuyMeACoffee CDN-script button via dynamic <script> injection. Pass `slug` (BMC username) + optional brand overrides (color/emoji/font/fontColor/outlineColor/coffeeColor/text). Cleans up on unmount, re-renders on prop change. Zero React deps beyond useEffect/useRef.
from grail-street-swap · src/components/BuyMeCoffeeButton.tsx (font made configurable; emoji default genericized from 🤟🏼 to ☕; className passthrough added)
sealed at src/blocks/cmp/buy-me-coffee-button/index.tsx
COMPONENT
CMP-083
1.0kb
0 deps
Hidden Easter Egg
ui/easter-egg
Low-opacity clickable trigger (glyph/emoji/node) that opens a full-screen reveal overlay with title + message + dismiss CTA. Five position presets (corner-tl/tr/bl/br + inline). Backdrop click + X button + CTA all dismiss. `onReveal`/`onDismiss` callbacks for host audio/analytics — no built-in audio coupling. Zero shadcn dep — semantic tokens only.
from grail-street-swap · src/components/HiddenEasterEgg.tsx (useSounds hard-dep → onReveal callback; `cipher-glow`/`hieroglyph-text`/`ancient-glow` theme classes stripped → semantic tokens + animate-in utilities; trigger typed ReactNode so emoji/svg/text all work)
sealed at src/blocks/cmp/hidden-easter-egg/index.tsx
PRIMITIVE
PRM-062
0.6kb
0 deps
UI Event Bus
react/pubsub
Typed pub/sub for cross-component UI signals. Backbone for toast-stack, error-shell, rate-limit. Zero deps, SSR-safe.
sealed at src/blocks/prm/ui-event-bus/index.ts
PRIMITIVE
PRM-063
1.4kb
0 deps
Command Registry
input/commands
Typed command registry with keybinding match + scope filtering + fuzzy scoring. Backbone for any ⌘K palette or shortcuts surface.
sealed at src/blocks/prm/command-registry/index.ts
Resumable step state for wizards / onboarding. Persists step + data + completed flag to localStorage under a stable key.
sealed at src/blocks/prm/progress-persist/index.ts
PRIMITIVE
PRM-066
0.4kb
0 deps
Blueprint Context
react/context
Shared context primitive every BLP uses to expose useBlueprint(). Labelled error if used outside Provider. The signature shape of a BLDBL blueprint.
sealed at src/blocks/prm/blueprint-context/index.ts
PRIMITIVE
PRM-067
0.7kb
0 deps
Feature Toggle
config/flags
Per-blueprint feature flags with optional localStorage persistence + server override. Lets a BLP expose enabled / intensity / per-sub-block opt-outs through one shape.
sealed at src/blocks/prm/feature-toggle/index.ts
COMPONENT
CMP-084
0.6kb
0 deps
Panel Grid
ui/layout
Responsive auto-fit panel grid + Panel span helper. Layout substrate dashboard-shell composes on. No drag-resize by design — that's a separate block.
sealed at src/blocks/cmp/panel-grid/index.tsx
COMPONENT
CMP-085
2.4kb
1 deps
Command Palette Shell
ui/palette
The ⌘K surface. Input + grouped results + keyboard nav (↑/↓/Enter/Esc). Wired to PRM command-registry. Caller mounts (Dialog/Portal).
sealed at src/blocks/cmp/command-palette-shell/index.tsx
BLUEPRINT
BLP-001
1.2kb
4 deps
Mandela Mode
atmosphere/wrapper
Signature blueprint. Site-wide 'the room is breathing wrong' wrapper — DreamHaze + MirrorVeil + optional GhostOverlay layered behind one intensity knob.
TactileProvider wires relay-preferences + haptics + web-audio-sfx. One useFeedback({ haptic, ui, scene }) call fires both surfaces, gated by user prefs.
sealed at src/blocks/blp/tactile-ui/index.tsx
BLUEPRINT
BLP-004
0.3kb
3 deps
A11y Shell
a11y/recipe
Recipe: SkipLink + OrbitalAccessibilityPanel + FocusTrap. The host-doc accessibility surface in one import.
sealed at src/blocks/blp/a11y-shell/index.tsx
BLUEPRINT
BLP-005
0.4kb
3 deps
Iframe A11y Shell
a11y/iframe
Recipe: iframe-accessibility helpers + OrbitalAccessibilityPanel + ExpandableActionMenu. Drop-in 'make any iframe'd site accessible' wrapper.
sealed at src/blocks/blp/iframe-a11y-shell/index.tsx
BLUEPRINT
BLP-006
1.0kb
4 deps
Splash Gate
splash/roulette
Boot-time interstitial roulette. Weighted random pick across {whisper, fear, scanning-init}, with showChance + oncePerSession.
sealed at src/blocks/blp/splash-gate/index.tsx
BLUEPRINT
BLP-007
0.3kb
4 deps
Entity Summoner
procgen/recipe
Recipe: entity-forge (generate) + CreatureRenderer + EntityForgePanel + ScreenCrack. The procedural-character app in one import.
sealed at src/blocks/blp/entity-summoner/index.tsx
BLUEPRINT
BLP-008
2.4kb
4 deps
Command Palette
input/⌘K
Full ⌘K palette. Provider + registry + global chord listener + modal-mounted shell. Drop in, register commands, useCommandPalette() anywhere below.
sealed at src/blocks/blp/command-palette/index.tsx
BLUEPRINT
BLP-009
1.1kb
4 deps
Toast Stack
ui/toast-surface
Unified toast surface. SmartToastRenderer + ConnectionStatus + RateLimitFeedback sharing one install + one event bus.