SShortSingh.
Back to feed

Developer turns a small SVG icon tool for a booking app into a full sprite editor

0
·4 views

A developer building a booking app for beauty specialists needed customizable multicolor SVG icons that could adapt to themes driven by CSS variables. To solve this, they created a small CLI package that generated sprites and mapped fill colors to CSS variables. After the package sat on npm for about a year, renewed interest led them to update dependencies, clean up the code, and add features. The project has since grown into an editor with live palette switching, timeline-based fill animations, a browser API, and early WebMCP experiments. The author is now asking other developers about the SVG, sprite, and animation problems they encounter, and has invited honest feedback on the project.

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 ·

How an inference platform's gateway, router, cache, and model serving layers interact

The article explains how gateways, routing, caching, and model serving fit together in an inference platform, and how request context can flow through each layer. It argues that a router ignoring cache state can waste savings made by neighboring layers, since a cached prefix is tied to the model that computed it. Using a document-extraction example, the author shows that switching to a cheaper model on a shared prefix can cost more than it saves once cache pricing is considered. The piece also warns that semantic caches can return wrong answers when reuse ignores caller identity, and that answer caches need boundaries such as model, prompt, schema, and caller. Overall it recommends declaring which substitutions are allowed and keying reuse on identity and data access.

0
ProgrammingDEV Community ·

Tutorial Shows How to Automate Tracking of Competitors' Long-Running Google Ads

A tutorial describes a way to monitor competitors' Google ads automatically using the Google Ads Transparency Scraper actor, n8n, and Slack instead of checking ad libraries manually. The approach queries public anonymous Transparency Center endpoints without a browser or Google login. Ads are flagged by a daysRunning field, and a 30-day span is suggested as a practical shortlisting threshold, though it is explicitly not a measure of profitability or actual spend. The tutorial notes that its watch mode keeps a baseline in Apify storage to detect when known ads cross the threshold, and it warns that timestamps do not prove continuous delivery or conversions. The author, who maintains the paid actor, discloses this conflict of interest, while the companion workflow code is MIT licensed.

0
ProgrammingDEV Community ·

Deploying a FastAPI App: Common Pitfalls and a ShardCloud Walkthrough

A developer's FastAPI app ran locally but returned a 502 Bad Gateway error once deployed publicly, a common problem with server setup rather than application code. The guide walks through taking a small FastAPI app from a local virtual environment to a public URL on the ShardCloud hosting platform. Key advice includes making sure the entry point starts a Uvicorn server, binding to 0.0.0.0 and reading the port from the environment so the platform's proxy can connect. It also recommends testing dependencies in a fresh environment and configuring the app with a .shardcloud file before uploading it as a ZIP archive.

0
ProgrammingDEV Community ·

Repositorio git: 1.242 blobs sin referencia clasificados en tres categorías y sin secretos detectados

Un análisis de un almacén git contó 1.242 blobs fuera de cualquier referencia y los clasificó según qué árboles los contienen. De ellos, 502 son blobs sueltos, 449 pertenecen a árboles sin commit y 291 a árboles alcanzados por un commit que también quedó fuera de las ramas. Cada categoría se acompaña de un identificador verificable con comandos de git, para que cualquiera pueda reproducir el recuento. Según el informe, ningún blob huérfano contiene nombres con apariencia de secreto, aunque la heurística solo busca nombres y marcas y el escaneo del historial estaba desactivado. El autor advierte además que las cifras son una foto puntual, pues otro proceso escribía en el repositorio durante la medición.