Selected work / 08—08
Four public repositories; keepline and Ultimate Widget maintained
Open source
Four small tools for problems that keep coming back.
- 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' },
})- 01 / Connected
- 02 / Network dropped
- 03 / Retrying with backoff
- 04 / Recovered · subscriptions replayed
01 / The story
What had to work.
A WebSocket connection is not a request. It is a thing that dies quietly on a hotel network at three in the morning and comes back wrong. keepline is that layer, written once instead of a fourth time: reconnection with jittered backoff, so a thousand clients do not stampede a server the moment it recovers; heartbeats that catch the half-open socket the operating system still swears is fine; schema validation at the boundary, so a bad frame is a typed error and not a crash three components later; and events you can actually put 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.
Alongside it is Ultimate Widget: six native macOS utilities in one quiet Swift app — launcher, clipboard history, window snapping, keep-awake, meeting countdown and disk explorer — plus two published scroll-to hooks for Framer Motion and react-spring.
02 / Evidence
What can be checked.
- 010 core runtime dependencies
- 026 native macOS utilities
- 032 published scroll-to hooks
03 / Delivery
The released shape.
- 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
Have something that has to work?
Start with one sentence