18.35K
total weekly downloads
1,198 packages
@lowerdeck/anonymize-ip
Mask IP addresses for privacy compliance (GDPR, CCPA). Supports both IPv4 and IPv6 with configurable masking levels.
@lowerdeck/api-key
Create and parse structured API keys with embedded configuration. Supports versioning, type prefixes, and automatic validation for secure key management.
@lowerdeck/api-mux
Route multiplexer for API endpoints. Dispatches requests to different services based on domain, path, and HTTP method with support for fallback handlers.
@lowerdeck/base62
Base62 encoding and decoding utility for converting strings and byte arrays into URL-safe, compact representations. Useful for shortening IDs, creating readable tokens, or encoding binary data.
@lowerdeck/cache
Multi-layer caching with Redis and in-memory LRU cache. Supports tag-based invalidation, dynamic TTL, and local-only caching for optimal performance.
@lowerdeck/canonicalize
Canonicalize JSON according to RFC 8785 standard for deterministic serialization. Ensures consistent JSON representation regardless of key order, essential for signing and hashing.
@lowerdeck/case
String case conversion utilities supporting multiple formats. Convert between camelCase, PascalCase, snake_case, kebab-case, and more.
@lowerdeck/cron
Distributed cron job scheduler using BullMQ and Redis. Schedule recurring tasks with cron expressions that run reliably across multiple instances.
@lowerdeck/delay
Create a promise that resolves after a specified number of milliseconds. Useful for adding delays, timeouts, or implementing retry logic.
@lowerdeck/emitter
Type-safe event emitter with strong typing. Define your event types upfront and get full TypeScript support for event names and payloads.
@lowerdeck/encryption
Encryption utility for securely encrypting and decrypting secrets using entity-specific passwords. Uses SHA-512 for key derivation and provides a simple API for secret management.
@lowerdeck/env
Type-safe environment variable validation. Ensure required environment variables exist and have proper types at application startup.
@lowerdeck/error
Type-safe error handling with structured error objects. Create consistent error responses with status codes, error codes, messages, hints, and descriptions.
@lowerdeck/event
Event-driven architecture framework using Redis Streams. Define typed events, fire them across your system, and process them with task workers. Perfect for building scalable, decoupled microservices.
@lowerdeck/execution-context
Track and manage execution context for requests, scheduled jobs, and background tasks. Provides type-safe context objects for different execution environments with support for parent-child relationships.
@lowerdeck/flatten
Flatten nested objects and arrays into single-level key-value pairs using dot notation for objects and bracket notation for arrays.
@lowerdeck/forwarded-for
Extract client IP addresses from various HTTP headers. Handles X-Forwarded-For, X-Real-IP, CF-Connecting-IP, and custom Metorial headers.
@lowerdeck/hash
Cryptographic hash functions using Web Crypto API. Returns base62-encoded hash strings for compact, URL-safe representations.
@lowerdeck/hono
Create Hono web applications with Metorial defaults. Includes error handling for ServiceError, 404 handling, and CORS configuration.
@lowerdeck/id
Generate various types of unique IDs with prefixes. Supports sorted IDs with timestamps, unsorted random IDs, key IDs with checksums, and Snowflake-style distributed IDs.
@lowerdeck/ip-info
Get geolocation information for IP addresses. Retrieves country, city, timezone, coordinates, ASN, and organization data from the geojs.io API.
@lowerdeck/join-paths
Join URL path segments and query parameters. Handles path normalization, null/undefined filtering, and automatic query string conversion.
@lowerdeck/jwt
JWT signing and verification using the jose library. Supports HS256, RS256, and ES384 algorithms with standard JWT claims.
@lowerdeck/lock
Distributed locking using Redlock for Redis. Ensures atomic operations across multiple instances with automatic lock extension and retry logic.
@lowerdeck/memo
Memoization decorator that caches function results based on arguments. Returns cached results for subsequent calls with the same arguments.