SShortSingh.
Back to feed

shortlink: a self-hosted URL shortener distributed as a single Go binary

0
·3 views

A developer has released shortlink, a URL shortener that runs as one self-contained Go binary and keeps all its data in SQLite. The tool supports custom and random slugs, link expiry, per-day click analytics that exclude IP addresses, and QR code generation, with an admin interface embedded in the binary. It is aimed at clubs, small businesses, conference organisers and developers who want short links on their own domain without sending click data to a third party. Installation is available via Go or prebuilt binaries for Linux, macOS and Windows, and the server is configured with an admin token, a database file and a public base URL.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Guide Shows How to Write a Game Prompt That Gets the Game You Imagine

The article explains that a strong prompt for an AI game engine should specify five elements: the core player action, the pressure or obstacle, the way to win, a concrete visual style, and one defining twist. It argues that vague requests produce generic results, while precise ones give the engine a clear direction, and that a single well-built sentence is enough to start. Weak and strong examples are provided for each element to show the difference. The guide also warns against feature lists, unexplained references to other games, and mood-only descriptions that lack a mechanic. It notes that the game can be refined afterward through conversation with the engine.

0
ProgrammingDEV Community ·

Preventing Duplicate Weekly Digest Webhooks After Queue Lease Timeouts in Node.js

A design guide argues that delayed weekly webhook deliveries should separate scheduling from delivery, using a durable delivery record and a lease shorter than the queue timeout. It recommends a single idempotency key across all retries, since a timeout does not confirm whether the receiver got the request. The author uses a hypothetical 100,000-customer workload with an assumed 2% retry rate to show that duplicate attempts drive costs more than the schedule itself. The guide advises storing only compact delivery outcomes rather than full payloads, accepting that regenerating payloads during investigations will be slower. It also stresses renewing leases with a cap and keeping the HTTP deadline inside the remaining lease window.

0
ProgrammingDEV Community ·

Microsoft Unveils MAI Code 2 and Flash Models Aimed at Lower-Cost Coding

Microsoft has launched MAI Code 2 and its lighter counterpart, MAI Code 2 Flash, two coding models built for different development workloads. The company says Flash matches the performance of GPT-6 Luna and Claude Haiku 5.5 on selected everyday coding tests while costing 65% and 20% as much, respectively. Both models use a sparse Mixture-of-Experts design, with Flash described as having about 12 billion active parameters and a one-million-token context window. Microsoft's cost claims rest on its own benchmark comparisons, and the announcement does not provide dollar prices or individual scores. The company positions the larger MAI Code 2 for demanding tasks and Flash for frequent, high-volume work, and both are available through GitHub Copilot.

0
ProgrammingDEV Community ·

RecipeHub Explains How Structured Data Makes Recipes Easier to Cook

The RecipeHub project, part of a series on building with ARC, argues that a well-designed data model is central to an application's success. The team found that recipes need to support cooking, not just display text, which led them to rethink how recipes are stored. A simple model that treats each ingredient line as one unit makes features like scaling servings difficult, since quantities are tied to names. Separating amounts from ingredient names, and capturing measurements and units, allows the entire recipe to be scaled reliably. The authors note that the best model is the one that fits the product and can evolve, rather than the most complex one.