
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A library for generating secure shared, traceable, and country-aware IDs for users, wallets, and transactions.
SRID is a library that provides a simple and consistent way to generate linked, traceable, and country-aware unique IDs for users, wallets, and transactions. Ideal for remittance platforms, fintech products, and audit-oriented systems.
SRID establishes a common root identifier that ties together all related entities (user, wallet, transactions) in your system. It’s lightweight, deterministic, and designed for traceability.
npm install srid
import SRID from 'srid';
const srid = new SRID('KE');
console.log(srid.getSharedId()); // e.g., KE250326-A7K2Z9
console.log(srid.generateUserId()); // e.g., USR-KE250326-A7K2Z9
console.log(srid.generateWalletId()); // e.g., WLT-KE250326-A7K2Z9
console.log(srid.generateTransactionId()); // e.g., TXN-KE250326-A7K2Z9-001
console.log(srid.generateTransactionId()); // e.g., TXN-KE250326-A7K2Z9-002
| ID Type | Format Example |
|---|---|
| Shared ID | KE250326-A7K2Z9 |
| User ID | USR-KE250326-A7K2Z9 |
| Wallet ID | WLT-KE250326-A7K2Z9 |
| Transaction ID | TXN-KE250326-A7K2Z9-001 |
Format:
[Prefix]-[CountryCode][YYMMDD]-[HashChunk](-Sequence)
npm test
Tests are written using Jest.
new SRID(countryCode: string)Creates a new SRID instance using a country code (e.g., "KE").
getSharedId(): stringReturns the core shared ID (used in all other IDs).
generateUserId(): stringReturns a user ID with the shared root.
generateWalletId(): stringReturns a wallet ID tied to the same root.
generateTransactionId(): stringReturns a unique transaction ID with a sequential suffix.
MIT © 2025
FAQs
A library for generating secure shared, traceable, and country-aware IDs for users, wallets, and transactions.
We found that srid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.