Prefixed API Key Generator

JSON →
library 1.1.1 ·javascript
verified May 27, 2026

The `prefixed-api-key` package, currently at version 1.1.1, provides a robust solution for generating 'Seam-style' API keys in JavaScript and TypeScript environments. These keys incorporate a user-defined prefix, a short token for identification and blocklisting, and a long token that is never stored directly, only its hash. This design enhances security by reducing the server's attack surface and enables features like GitHub secret scanning due to the predictable prefix format. The library leverages standard cryptographic practices, including Base58 encoding (RFC-compliant) for the token components, offering advantages such as shorter keys compared to hex/base32, double-click selection, and high entropy comparable to UUIDv4. It ships with TypeScript types and is suitable for both Node.js and browser environments, focusing on a secure and developer-friendly approach to API key management.

total hits 19
actors 8 distinct systems
last hit 4d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇳🇴 Norway · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany