Distilled from WanderSync v3.10.16 — shipping in prod

The four patterns that ship WanderSync,
portable to any project.

ARM · RRSS · KafCa · KafCade — packaged as an npm SDK, a CLI, and a Claude Code skill bundle. Same patterns we use to ship ~150 LOC features end-to-end through an 8-axis quality gate.

Install in 30 sec View source
v0.1.0 · MIT npm · @wandersync/dna Claude Code · 4 skills Node ≥ 18

Four ways to install

Pick the surface you work in. Same four patterns underneath.

npm package

SDK for any Node / browser project. ESM + CJS.

npm i @wandersync/dna

Global CLI

RRSS audit · KafCa lint · ARM scaffold · KafCade plan.

npm i -g @wandersync/dna

Claude Code skills (sh)

Install all 4 patterns into ~/.claude/skills/.

curl -fsSL https://www.wandersync.life/install.sh | bash

Claude Code skills (ps1)

Windows PowerShell one-liner.

iwr -useb https://www.wandersync.life/install.ps1 | iex
Proven in production. WanderSync ships features end-to-end through these four patterns — Beta Feedback Collector (+152 LOC), Post-Export Rating (+86), Promoter-Aware Smart Recs (+18). Same gates run before every commit.

What you get

Each pattern is independent. Use them together or one at a time.

ARM

Acquisition · Retention · Monetization

State-gated FAB feature with NPS-banded routing. NPS ≥ 8 → refer · ≤ 4 → mailto · 5–7 → silent log. ~150 LOC end-to-end.

RRSS

8-axis quality gate

Robust · Reliable · Solid · Stable · Resistant · Scalable · Secure · Systematic. Static audit before commit. Exits 1 on findings.

KafCa

Token-efficiency discipline

Karpathy + fixClaude + Caveman. Strips openers, closers, filler, ceremony. One concept per line. Overlay on any workflow.

KafCade

Multi-channel ship workflow

Auto-detects project type · CI stack · deploy target · distribution channels. Plans the ordered ship sequence in one pass.

Three lines of code

Gate any feature behind an ARM quota and route the response.

import { arm, rrss, kafca, kafcade } from "@wandersync/dna";

// 1) ARM gate — block free users at limit
const gate = arm.gate({ key: "ws:feedback:usage", limit: 5, isPro: () => false });
if (!gate.check()) return;
gate.bump();

// 2) Route NPS into A / R / M band
arm.band(nps, {
  promoter:  () => openReferKit(),
  passive:   () => toast("thanks"),
  detractor: (n) => location.href = `mailto:hello@example.com?subject=NPS${n}`,
});

// 3) RRSS audit any source string
const { findings, score } = rrss.audit(sourceCode);
console.log(rrss.report({ findings, score }));

Or use the CLI:

# Scaffold a ready-to-paste ARM-band feature
dna scaffold feedback ws:feedback:usage > feedback.js

# RRSS audit (CI-friendly, exits 1 on findings)
dna audit app.js

# Detect project + print KafCade ship plan
dna kafcade --goal=distribute