SShortSingh.
Back to feed

Developer Builds Backend-Free BFF Quiz Maker That Stores Quiz Data Entirely in the URL

0
·5 views

A developer has created BFF Quiz Maker, a friendship quiz tool that requires no account, database, or server-side storage. Each quiz is encoded as a compact base64url string placed directly in the query string, so the whole site can be statically prerendered with Next.js. The design keeps hosting costs near zero and avoids collecting any player data, since deleting a shared link effectively deletes the quiz. Results can be exported as a 1080x1080 score card generated in the browser for sharing on social platforms. The project's source code is publicly available on GitHub, and the developer is seeking feedback on mobile usability and other browser-based game ideas.

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 ·

Most AI Coding Agent Steps Don't Need a Frontier Model, Routing Could Cut Costs

Coding agents spend most of their time reading files, searching code, and summarizing output rather than writing code, yet many use the same expensive model for every step. Research cited in the article found agentic coding consumes over 1,000 times more tokens than a single-turn question, with heavy input-to-output ratios. The author points to OpenAI's pricing, where the flagship model costs 80 times more than the smallest on both input and output. Prior work from Stanford's FrugalGPT and LMSYS/UC Berkeley's RouteLLM showed that routing requests to cheaper models can cut costs substantially while retaining most of the quality. The author proposes assigning cheaper models to lightweight agent roles and escalating to larger models only when needed, while cautioning that routing involves some quality tradeoffs.

0
ProgrammingDEV Community ·

Developer Tries Running PostgreSQL on Android Phone via Termux and Smart IDE

A developer set out to practice with a real database using only an Android phone. Using the Google Play version of Termux, the PostgreSQL client reported version 18.2, but initializing a database cluster failed with a permission denied error. The developer later managed to work with PostgreSQL 18.2 in Smart IDE, creating a database and confirming the connection with a query. The author noted they could not determine the exact cause of the Termux failure or whether another distribution would have worked. The post stresses that verifying initialization, server access, and query execution is needed beyond simply installing software.

0
ProgrammingDEV Community ·

How to crop one headshot that works as both a square profile photo and a round avatar

A square crop can look fine in an editor yet lose details like glasses corners once it is shown in a circular avatar, because the circle hides everything outside its inscribed boundary. The guide explains how to make one square JPEG in GIMP by cropping a portrait you have permission to use, keeping space above the hair and around the shoulders, and framing the eyes near the upper portion of the square. It then shows how to overlay an ellipse selection to check that the hair, ears, glasses and jaw stay inside the circular boundary, and how to scale the result to 512 pixels and export it at quality 90 with metadata removed. Finally, it suggests building a small local HTML proof to view the exported image at two sizes on light and dark backgrounds before uploading.

0
ProgrammingDEV Community ·

Gamepad API checklist for adding controller support to HTML5 browser games

Browser games increasingly need to work with controllers, since players use laptops, TV browsers and handheld PCs with pads already paired. The Gamepad API requires a button press or stick movement before a page sees a pad, so developers should listen for connection events, poll navigator.getGamepads() each frame, and show a prompt on the title screen. Serving the game over HTTPS matters because browsers restrict the API to secure contexts, and button indices should only be trusted when a pad reports the standard mapping. The guide also recommends applying a radial deadzone to sticks, making every menu keyboard-free with consistent focus, and pausing gameplay when a controller disconnects.