Skip to content
belgattitudePublic

About

Collection of libs: http exceptions, dsn-parser...

Topics

Resources

Code of conduct

Contributing

Stars

21 stars

Watchers

1 watching

Forks

Latest commit

 

History

3,299 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"do one thing" collection.

All packages are ESM only and built with tree-shaking in mind. CommonJS code can still load them with require() on Node 20.19+/22.12+ (require(esm)), bun and bundlers.

LRU cache optimized for performance and low memory usage. 2x-4x times faster on get() than quick-lru without memory overhead and 6 times smaller than lru-cache. Less than 1Kb.

npm changelog codecov bundles downloads

Speeds up Intl operations up to 50x. LRU-based memoizer for Intl.NumberFormat,Intl.DateFormat and other Intl constructors. Less than 1kb.

npm changelog codecov bundles downloads

Fast and lightweight utility functions to check if a value is a plain object.

npm changelog codecov bundles downloads

HTTP status errors with default message, instanceof, stack and nested error cause support. Lightweight, typical usage between 500b and 1300b. Includes convenience typeguards, optional contextual info and a built-in serializer to cover cross-environments challenges (RSC, SSR...).

npm changelog codecov bundles downloads

DSN & JDBC string parser with query params support in a light and modern package.

npm changelog codecov bundles downloads

One of the fastest md5 hash function optimized for small strings (<8Kb). Less than 1.2Kb in browser usage. Automatically uses the native crypto module on node, bun for the best performance.

npm changelog bundles downloads

Fast and lightweight utilities to work with trees.

npm changelog codecov bundles downloads

Lightweight assertions and typeguards starting at ~60b.

npm changelog codecov bundles downloads

Create keys or hashes from javascript values, useful for memoization or cache key generation.

npm changelog codecov bundles downloads

String and Uint8Array compression utilities (gzip)

npm changelog codecov bundles downloads

Base encoding

npm changelog codecov bundles downloads

Barcode utilities

npm changelog codecov bundles downloads

In-memory cache for async functions, with optional compression, statistics, deduplication and a hono integration.

npm changelog codecov bundles downloads

Collection of hash functions, starting with a fast wasm-based xxhash64 implementation (~780B).

npm changelog codecov bundles downloads

Verify JSON Web Tokens (JWT) with OIDC discovery support and payload validation through any standard-schema compatible library (zod, valibot...).

npm changelog codecov bundles downloads

Basic typescript helpers to work with json-api.

npm changelog codecov bundles downloads

Contributors

Contributions are welcome. Take a look to the CONTRIBUTING docs or skip and try

# make a fork and clone it, then
pnpm install
pnpm g:test-unit
pnpm g:lint
pnpm g:typecheck

Support

Don't hesitate and open an issue.

Sponsors

If my OSS work brightens your day, let's take it to new heights together! Sponsor, coffee, or star – any gesture of support fuels my passion to improve. Thanks for being awesome! 🙏❤️

Special thanks to

Jetbrains logo
JetBrains

License

MIT © belgattitude and contributors.

About

Collection of libs: http exceptions, dsn-parser...

Topics

Resources

Code of conduct

Contributing

Stars

21 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages