Fabio Spampinato
@fabiospampinatoAuthor
Trying to write good software.
- Published tools
- 81
- Total stars
- 9,735
- Weekly downloads
- 229,394,047
- GitHub followers
- 1,977
- Public repos
- 429
- Avg security
- 100/100
Published tools
voby
by fabiospampinato
A high-performance framework with fine-grained observable/signal-based reactivity for building rich applications.
watcher
by fabiospampinato
The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.
fast-string-width
by fabiospampinato
A fast function for calculating the visual width of a string once printed to the terminal.
khroma
by fabiospampinato
A collection of functions for manipulating CSS colors, inspired by SASS.
jsonc-simple-parser
by fabiospampinato
A simple JSON parser that supports comments and optional trailing commas.
specialist
by fabiospampinato
A library that helps you write tiny, fast and beautiful CLI apps that can automatically check for updates.
base256-encoding
by fabiospampinato
Base256 encoding, a.k.a. latin1 encoding, the most memory-efficient encoding possible in JavaScript.
grammex
by fabiospampinato
A tiny, PEG-like system for building language grammars with regexes.
fast-string-truncated-width
by fabiospampinato
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
pioppo
by fabiospampinato
A tiny isomorphic batched logger. ~3x faster than regular logging in Node.
skex
by fabiospampinato
A modern schema validation and filtration library with great TypeScript support.
base128-encoding
by fabiospampinato
Base128 encoding, the intersection of latin1 and utf-8, which is basically ASCII, the most memory-efficient string encoding that can be written to disk as utf-8 without ballooning in size.
json-sorted-stringify
by fabiospampinato
Alternative JSON.stringify function with sorted keys, so the output is stable.
tiny-encryptor
by fabiospampinato
A tiny opinionated isomorphic library for encrypting and decrypting with ease.
tiny-parse-argv
by fabiospampinato
A tiny function for parsing process.argv, a modern rewrite of minimist.
toygrad
by fabiospampinato
A toy library for building simple neural networks which can be serialized to compact JSON.
zeptoid
by fabiospampinato
A tiny isomorphic fast function for generating a cryptographically random hex string.
amuchina
by fabiospampinato
A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.
graphmatch
by fabiospampinato
A low-level utility for matching a string against a directed acyclic graph of regexes.
zstandard-wasm
by fabiospampinato
A fast and small port of Zstandard to WASM. (Decompress-only for now).
css-simple-parser
by fabiospampinato
A (S)CSS parser that's tiny, blazing fast and (too) simple.
fava
by fabiospampinato
A wannabe tiny largely-drop-in replacement for ava that works in the browser too.
mime2ext
by fabiospampinato
Convert a mime type to a file extension. It works only with popular mime types and it's super lightweight.
minipacco
by fabiospampinato
A little bundler for resolving dependencies graphs into a single concatenated file.
css-flatten
by fabiospampinato
Flattens a nested (S)CSS string, '&' placeholders are supported too.
promise-make-counter
by fabiospampinato
A simple function that makes a counter-based promise, which can be incremented and decremented, and it resolves once its counter reaches zero.
radix64-encoding
by fabiospampinato
Radix64 encoding, a.k.a. Base64 encoding. An extremely fast and synchronous JS implementation.
hex-encoding
by fabiospampinato
Hex encoding. An extremely fast and synchronous JS implementation.
dotenv-jsonc
by fabiospampinato
Simple library for loading your .env.json file containing JSONC.
ionstore
by fabiospampinato
A very simple isomorphic key-value store with a Map-like API for persisting session data.
ext2mime
by fabiospampinato
Convert a file extension to a mime type. It works only with popular file extensions and it's super lightweight.
radix64url-encoding
by fabiospampinato
Radix64url encoding, a.k.a. Base64url encoding. An extremely fast and synchronous JS implementation.
uint-rng
by fabiospampinato
A tiny isomorphic Random Number Generator for generating 1/8/16/32/64-bits unsigned integers.
uint8-encoding
by fabiospampinato
Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.
bigint-encoding
by fabiospampinato
BigInt encoding, a simple way to convert Uint8Arrays into BigInts, and vice versa.
crypto-random-bigint
by fabiospampinato
Generate a cryptographically-random BigInt with the given number of bits of entropy.
crypto-random-prime
by fabiospampinato
Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.
stubborn-utils
by fabiospampinato
A small collection of utilities for making functions somewhat resilient against errors.
tiny-cursor
by fabiospampinato
A tiny library for hiding and showing the cursor in the terminal.
tiny-truncate
by fabiospampinato
A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.
crypto-pbkdf2-hmac
by fabiospampinato
Isomorphic wrapper for the PBKDF2-HMAC key derivation function.
crypto-random-uint8
by fabiospampinato
Generate a cryptographically-random Uint8Array with the given number of bytes of entropy.
find-up-json
by fabiospampinato
Find, read and parse the first matching file found walking the filesystem upwards.
find-up-path
by fabiospampinato
Find the path of the first file matching a given name, walking the filesystem upwards.
promise-make-naked
by fabiospampinato
A simple function that makes a promise that can be resolved, rejected or introspected from the outside.
utf16le-encoding
by fabiospampinato
UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.
zeptomatch-explode
by fabiospampinato
A little utility for exploding a zeptomatch-flavored glob into its dynamic and static parts.
int32-encoding
by fabiospampinato
Int32 encoding, a simple way to convert 32-bit signed integers to Uint8Arrays, and vice versa.
lomemo
by fabiospampinato
Lodash's memoize function, but in a much smaller package than lodash.memoize's.
node-buffer-encoding
by fabiospampinato
A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.
promise-concurrency-limiter
by fabiospampinato
Tiny scheduler for functions returning promises that can limit their concurrency.
crypto-random-in-range
by fabiospampinato
Pick a cryptographically-random integer within a range.
svelto
by fabiospampinato
Modular front end framework for modern browsers, with battery included: 100+ widgets and tools.