Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a unique ID generator that's ~60% faster than nanoid

jet-id is a tiny, zero-dependency unique ID generator for JavaScript and TypeScript. IDs are 28-character Crockford base32 strings, with optional timestamps so they sort by creation time. import jetId from ' jet-id ' ; jetId (); // '9Q8SWWBTY-7NVXM-FT9S6-XB4R3M' jetId . timed (); // '1KKNTQ2CN-606ZG-8VF48-76B6F3' (sorts by creation time) seanpmaxwell / jet-id An extremely fast unique ID generator…

jet-id is a fast, zero-dependency unique ID generator for JavaScript and TypeScript. It produces 28-character Crockford base32 strings with optional timestamps to keep IDs sortable by creation time. The library is ~60% faster than nanoid, generating ~83 million IDs per second compared to nanoid's ~52 million on the same machine. jet-id uses the Crockford alphabet, which excludes confusing characters like I, L, O, and U. It offers readable IDs, zero runtime dependencies, a small size of 6.4 kB when packed, and works in Node.js and modern browsers.

The generator operates by pooling, using 256 IDs at a time, and employing lookup tables and bit-shifting for efficiency. Benchmarks show jet-id is faster than nanoid, even when configured to match nanoid's dash-separated format.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

My Journey in Python: Week 1 with Akwannya Hub Skill Pod (Cohort 1)

Throughout my tech journey, I always thought computers were complicated systems. I knew they could do amazing things (in Akan, we would say "ԐyԐ nwanwa"), but I did not know how they worked inside.

  • Python's syntax and semantics form the foundation of any programming language
  • Python was named after Monty Python's Flying Circus, not the serpent
  • Collaborative learning with peers accelerates Python mastery

Your Cypress Retry Passed - But the Test Is Still Telling You Something

Attempt one fails. Attempt two passes. CI turns green. Did the system recover from harmless noise, or did the retry hide an intermittent product defect?

  • Cypress test retry can signal underlying issues
  • Experimental strategies allow stricter policies
  • Preserve failed attempts and details for diagnosis

Service Startup API Key Identity Logs — Bounded Healthtech Incident Attribution

Record one authenticated startup event that binds a non-reversible API-key fingerprint to an immutable build identifier, workload identity, and deployment attempt.

  • Healthtech startup securely logs API key identity at initialization
  • Four invariants ensure sensitive secrets remain protected
  • Compact event structure balances billing attribution and audit correlation

Flutter OTA Updates with Shorebird

Flutter OTA Updates with Shorebird Why We Needed OTA Updates We pushed a build with a small logic error. It was a one-line fix.

  • Flutter developers discovered OTA updates needed after logic error caused crashes.
  • Shorebird tool enables sending Dart code updates directly to users' devices.
  • Shorebird patches fix issues without store review, speeding up bug fixes.

504 vs 503: What Actually Triggers Each in nginx, ALB, and Cloudflare

You're staring at a 5xx in your logs at 2am. Is it a 503 or a 504, and does the difference actually change what you do next? Yes — a lot.

  • 503 error indicates upstream server actively refusing request
  • 504 error signifies upstream server processed request but failed to respond in time
  • Each platform (nginx, ALB, Cloudflare) has distinct settings and triggers for these errors

More from Saturday 19 September →