Urgent.News

What's breaking now, across thousands of outlets.

Tech

Clew: a URL shortener with SQLite click counts

Clew is a small URL shortener with a JSON API. Send a destination to /api/links and it returns a short URL. Following that URL sends a 302 redirect and records the visit. For concurrent visits, each redirect starts a BEGIN IMMEDIATE transaction before updating the total and storing the click time. Clew keeps the total count and the newest 20 timestamps. A HEAD request checks the destination…

We haven't written up this one. Dev.to has the full story — the link below goes straight to it.

Read the original at dev.to →

More in Tech

Node.js Healthtech Event Alerts After Email and SMS Timeouts (Cron Status Reconciliation)

TL;DR: Treat an email or SMS request timeout as an unknown submission result, not a failed notification. Persist the external message ID when one exists, poll for a terminal status on a bounded…

  • Timeout in email/SMS notifications treated as unresolved submission
  • Detailed ledger of events replaces simple success/failure outcome
  • Reconciliation worker implemented in TypeScript with state management

More from Tuesday 29 September →