Skip to the case story

Selected work / 09—09

Four public repositories; keepline and Ultimate Widget maintained

Open source

I needed four tools. So I built them.

  • npm
  • GitHub
  • macOS
import { createSocket, exponentialBackoff } from 'keepline'

const line = createSocket({
  url,
  heartbeat: { message: ping },
  reconnect: { backoff: exponentialBackoff({ jitter: 'equal' }) },
  schema: serverMessage,
  onEvent: observe,
})

const releaseOrders = line.subscription({
  subscribe: { type: 'subscribe', topic: 'orders' },
  unsubscribe: { type: 'unsubscribe', topic: 'orders' },
})
CLIENTSERVER
  1. 01 / Connected
  2. 02 / Network dropped
  3. 03 / Retrying with backoff
  4. 04 / Recovered · subscriptions replayed
STATUSConnected
Queue: 00 FLUSHED

01 / The story

What I built. — Open source

I wrote keepline for WebSocket connections that drop, hang or return bad data. It reconnects with jittered backoff, detects half-open sockets with heartbeats and validates incoming frames at the boundary. Typed errors and connection events make failures visible on a dashboard.

The core has zero runtime dependencies and ships ESM and CJS builds. Optional React 18+ bindings sit beside it, so the core remains framework-free.

I also built Ultimate Widget, a native Swift app with six macOS utilities: launcher, clipboard history, window snapping, keep-awake, meeting countdown and disk explorer. Two published scroll-to hooks complete the set, one for Framer Motion and one for react-spring.

02 / Evidence

The proof. — Open source

  1. 010 core runtime dependencies
  2. 026 native macOS utilities
  3. 032 published scroll-to hooks

03 / Delivery

What I delivered. — Open source

Role
Author — all four repositories
Platforms
npm / GitHub / macOS
Current status
Four public repositories; keepline and Ultimate Widget maintained
Built with
TypeScript / Swift 6 / AppKit + SwiftUI / ESM / React bindings / Zero runtime dependencies

Let’s get yours shipped.

Talk about your project