Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Updating a public counter every 5 minutes on a free plan

ARLTS has a public "impact board" at arlts.org/impact: how many people have visited, and how many were active today, this week, and this month. The numbers come from our analytics tool (PostHog). The board used to update once an hour. Now the user counts update every 5 minutes, and it costs nothing extra. How it worked A timer in the database ( pg_cron ) calls a little cloud function once an…

The ARLTS public "impact board" now updates every 5 minutes instead of hourly, with no additional cost. This was achieved by modifying a cloud function that retrieves visitor statistics from the analytics tool PostHog. The function can operate in "quick mode," requesting only the two lightest questions about all-time visitors and active users, which reduces the load. The updated board displays visitor numbers within about 11 minutes, a significant improvement from previous updates that took up to an hour.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

ruflo's default MCP bridge exposed terminal execution to the network

ruflo's default MCP bridge exposed terminal execution to the network ruflo is an agent meta-harness with a Model Context Protocol bridge.

  • Ruflo's default Docker Compose deployment exposed unauthenticated endpoints
  • CVE-2026-59726 allowed remote code execution in versions before 3.16.3
  • Upgrading to version 3.16.3 or later remediated the vulnerability

How to Manage API Changes Without Breaking Frontend Applications

Most frontend outages caused by APIs are not dramatic. Nobody deletes the database. Someone renames user_name to username, ships it on a Friday, and every customer on an older mobile build sees a…

  • Backend and frontend teams deploy independently, leading to unnoticed API changes
  • Non-nullable field changes to nullable can cause runtime errors in frontend
  • Adding new enum values without default branches can crash frontends

A website chat that only answers from what you approve

Most website chatbots fail in a boring way. They answer confidently, and they answer wrong. If a visitor asks "Do you serve Whitefield on weekends?" and the bot makes something up, you have created a…

  • BPAI's chatbot only responds with business owner-approved information
  • Visitors can ask questions in their own words, AI provides approved answers
  • Human team members can take over when AI lacks specific information

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length The n2n peer-to-peer VPN uses supernodes to help edges find each other and exchange control messages.

  • n2n VPN uses supernodes for communication
  • CVE-2026-136404 allows supernode registration with oversized tokensize
  • Mitigation involves patching, restricting UDP access, and monitoring

How to run your test suite in a clean microVM with sandscale sandbox run

Sometimes you want to know whether your tests pass on a clean machine, not on the laptop that has accumulated three years of global packages.

  • Use sandscale sandbox run command to run test suite in clean microVM.
  • --sync . flag copies current folder to sandbox's /workspace directory.
  • --keep flag preserves sandbox for further inspection upon failure.

More from Friday 27 November →