hsworks

Small libraries that do one thing well.

Focused, fully typed, zero-dependency utilities for JavaScript/TypeScript and Python. Every library ships with the same behaviour in both languages, tested against shared test vectors.

npmnpm install @hsworks/<name>
pippip install hsworks-<name>
50libraries planned
0available now
2languages
0runtime dependencies

slugifyIn progress

Convert any string into a URL-safe slug with Unicode transliteration.

npm install @hsworks/slugify
pip install hsworks-slugify
text · JavaScript + Python

args-litePlanned

Minimal command-line argument parser with flags and positionals.

dev · JavaScript + Python

business-daysPlanned

Add and count business days with custom weekends and holidays.

time · JavaScript + Python

case-convertPlanned

Convert strings between camelCase, PascalCase, snake_case, kebab-case and more.

text · JavaScript + Python

checksum-idsPlanned

Validate Luhn (card), IBAN and ISBN check digits.

validation · JavaScript + Python

chunkifyPlanned

Split sequences into chunks, windows and partitions.

data · JavaScript + Python

circuit-breakerPlanned

Circuit breaker for unreliable calls with half-open probing.

async · JavaScript + Python

color-convertPlanned

Convert colors between hex, RGB, HSL and HSV.

dev · JavaScript + Python

cron-nextPlanned

Parse cron expressions and compute next and previous run times.

time · JavaScript + Python

debounce-throttlePlanned

Debounce and throttle functions with leading/trailing options.

async · JavaScript + Python

dedupe-byPlanned

Remove duplicates by key function, keeping first or last.

data · JavaScript + Python

deep-mergePlanned

Deep merge objects with configurable array strategies.

data · JavaScript + Python

dotenv-validatePlanned

Parse .env files and validate required keys.

dev · JavaScript + Python

email-checkPlanned

Practical email address syntax validation and normalization.

validation · JavaScript + Python

env-configPlanned

Load typed configuration from environment variables with defaults.

dev · JavaScript + Python

filesizePlanned

Format and parse byte sizes in SI and IEC units.

dev · JavaScript + Python

flatten-keysPlanned

Flatten nested objects to dotted keys and back.

data · JavaScript + Python

fuzzy-scorePlanned

Score and rank fuzzy matches of a query against candidate strings.

text · JavaScript + Python

glob-matchPlanned

Match paths against glob patterns without touching the filesystem.

dev · JavaScript + Python

group-by-multiPlanned

Group records by one or more keys into nested maps.

data · JavaScript + Python

humanize-durationPlanned

Format milliseconds as human-readable durations like "2h 5m".

time · JavaScript + Python

id-genPlanned

Generate UUID v4/v7, ULID and nanoid-style IDs.

validation · JavaScript + Python

lru-litePlanned

A small, fast least-recently-used cache.

async · JavaScript + Python

mask-sensitivePlanned

Mask emails, card numbers, phone numbers and tokens in text.

text · JavaScript + Python

md-tablePlanned

Generate aligned Markdown tables from rows of data.

dev · JavaScript + Python

memo-ttlPlanned

Memoize functions with time-to-live expiry and max size.

async · JavaScript + Python

money-formatPlanned

Format and do exact arithmetic on money in minor units.

dev · JavaScript + Python

object-diffPlanned

Compute structured differences between two objects.

data · JavaScript + Python

parse-durationPlanned

Parse strings like "1h30m" or "2 days" into milliseconds.

time · JavaScript + Python

password-scorePlanned

Estimate password strength with actionable feedback.

validation · JavaScript + Python

path-accessPlanned

Get, set, has and delete nested values by dot/bracket path.

data · JavaScript + Python

pluralizePlanned

Pluralize and singularize English words, with irregulars.

text · JavaScript + Python

progress-barPlanned

Simple terminal progress bar with ETA.

dev · JavaScript + Python

promise-poolPlanned

Run async tasks with a concurrency limit and ordered results.

async · JavaScript + Python

rate-limitPlanned

Token bucket and sliding window rate limiters.

async · JavaScript + Python

reading-timePlanned

Estimate word count and reading time for text.

text · JavaScript + Python

relative-timePlanned

Format dates relative to now: "3 days ago", "in 2 hours".

time · JavaScript + Python

retry-backoffPlanned

Retry functions with exponential backoff and jitter.

async · JavaScript + Python

safe-jsonPlanned

Parse and stringify JSON safely: no throws, circular refs, BigInt.

data · JavaScript + Python

schema-litePlanned

Minimal runtime schema validation with readable error paths.

data · JavaScript + Python

semver-comparePlanned

Parse, compare and sort semantic version strings.

validation · JavaScript + Python

smart-truncatePlanned

Truncate text at word boundaries with a configurable ellipsis.

text · JavaScript + Python

sort-by-keysPlanned

Stable multi-key sorting with per-key direction.

data · JavaScript + Python

strip-ansiPlanned

Remove ANSI escape codes from terminal output.

text · JavaScript + Python

template-miniPlanned

Tiny safe {{variable}} string templating with nested paths and defaults.

text · JavaScript + Python

text-diff-litePlanned

Line and word diffs between two strings using Myers diff.

text · JavaScript + Python

tiny-loggerPlanned

Leveled, structured logger with JSON and pretty output.

dev · JavaScript + Python

tz-offsetPlanned

Time zone offset helpers using the platform time zone database.

time · JavaScript + Python

url-normalizePlanned

Normalize URLs for comparison: case, ports, slashes, query order.

validation · JavaScript + Python

with-timeoutPlanned

Wrap async operations with a timeout and cancellation.

async · JavaScript + Python

No libraries match your search.