1.48K
total weekly downloads
91 packages
ahocorasickkit
Zero-dependency TypeScript Aho-Corasick multi-pattern string search: find all occurrences of N patterns in O(text+matches) time. Port of Python pyahocorasick. Drop-in for abandoned 'ahocorasick' npm package.
base32kit
Tiny, isomorphic Base32 codec — RFC 4648, base32hex, and Crockford, between string and Uint8Array. Zero dependencies.
@billdaddy/arraykit
Tiny, type-safe array utilities — chunk, groupBy, keyBy, countBy, uniqueBy, partition, sortBy, zip, range, and numeric helpers. Zero dependencies.
@billdaddy/assertkit
Tiny, type-safe assertions — invariant/assert with TypeScript narrowing, assertDefined, assertNever exhaustiveness, ensure, and lazy messages. Zero dependencies.
@billdaddy/cachetools
Zero-dependency multi-strategy cache: LRU, LFU, TTL, TLRu (TTL+LRU). TypeScript port of Python cachetools. Decorator support for memoization.
@billdaddy/casekit
Tiny, type-safe case conversion — camel/snake/kebab/Pascal/CONSTANT/title, acronym-aware word splitting, and deep object-key transformers. Zero dependencies.
@billdaddy/channelkit
Zero-dependency TypeScript Go-style async channels: buffered/unbuffered Channel<T>, select(), close(), for-await iteration, AbortSignal cancellation. Port of Go channels / Python asyncio.Queue / C# Channel<T>.
@billdaddy/cookiekit
Tiny, type-safe HTTP cookie parse and serialize — RFC 6265 with SameSite, Partitioned, and Priority. Zero dependencies.
@billdaddy/cronbuilder
Fluent cron expression builder, parser, validator, human-readable descriptions, and next-fire calculator. Zero dependencies.
@billdaddy/cspkit
Zero-dependency TypeScript Constraint Satisfaction Problem (CSP) solver: backtracking with AC3 arc consistency, MRV heuristic, forward checking, min-conflicts. Like Python python-constraint.
@billdaddy/dagkit
Zero-dependency TypeScript DAG utilities: topological sort, parallel batches, cycle detection. Port of Python graphlib / Go gonum graph.
@billdaddy/dspkit
Zero-dependency digital signal processing: FFT/IFFT, spectrum analysis, FIR filter design (lowpass/highpass/bandpass/bandstop), window functions, signal utilities.
@billdaddy/durationkit
Bidirectional duration parsing and formatting. Parse '2h 30m', '1.5 hours', '2:30:00', ISO 8601. Format ms to compact/long/colon/ISO. Zero dependencies.
@billdaddy/envguard
Validate, coerce, and type your environment variables — fail fast with one clear report. Zero dependencies, full TypeScript inference.
@billdaddy/eventkit
Zero-dependency typed async EventEmitter: compile-time event types, async dispatch (await all handlers), Promise-based once(), event history/replay, wildcard listeners. Port of Java Guava EventBus / Python blinker.
@billdaddy/fmtable
Zero-dependency ASCII/Unicode table formatter — plain, grid, rounded, pipe/Markdown, and minimal styles, per-column alignment, auto-width.
@billdaddy/fsmkit
Lightweight zero-dependency finite state machine with full TypeScript support. Simple alternative to xstate/javascript-state-machine.
@billdaddy/geohashkit
Zero-dependency TypeScript geohash: encode/decode lat-lng, neighbors, bounding box, bboxes coverage, expand, distance, parent/children. Port of Python geohash2 / Go geohash.
@billdaddy/graphkit
Zero-dependency TypeScript graph library: directed/undirected, weighted edges, DFS/BFS, Dijkstra, topological sort, cycle detection, SCC, MST. Modern replacement for abandoned graphlib.
@billdaddy/hsmkit
Zero-dependency TypeScript hierarchical state machine (statecharts): compound states, entry/exit actions, guards, shallow history, internal transitions. Like Python pytransitions / C# Stateless / Ruby AASM.
@billdaddy/idkit
Tiny, secure id toolkit — URL-safe random ids (nanoid-style) and lexicographically sortable ULIDs with a monotonic factory. Zero dependencies.
@billdaddy/iskit
Tiny, type-safe predicates — isString/isNumber/isPlainObject/isEmpty and more, all narrowing TypeScript type guards. Zero dependencies.
@billdaddy/iterkit
Extended iterable utilities for TypeScript/JavaScript — lazy generators + eager reducers. more-itertools for the JS ecosystem.
@billdaddy/jsonlkit
Stream-friendly NDJSON / JSON Lines parsing and serialization for strings, ReadableStreams, and async iterables. Zero dependencies.
@billdaddy/leakybucket
Zero-dependency leaky-bucket rate limiter for Node.js and browsers. Enforces a constant throughput rate — no bursts. TypeScript, ESM+CJS, AbortSignal.