Estimate your AI feature's model bill before you build it
🌍 Dev.to

Estimate your AI feature's model bill before you build it

Most AI MVP budgets I see cover the build and forget the monthly line. That line is the model bill, and at a few thousand users it can pass what the build cost. One formula gets you a usable estimate. The formula monthly cost = requests per month x (input tokens x input price + output tokens x output price) Requests per month is users times how often they use the feature. Input tokens include everything you send: system prompt, retrieved context, chat history. Resend...
🌍 Dev.to

Get item index and item count in CSS

sibling-index() and sibling-count() For years, CSS had no way of knowing which position an element had among its siblings, or how many siblings there were. Now it does. With sibling-index() and sibling-count() you can finally get the item index and item count directly in CSS. sibling-index() returns the element's position among its siblings, starting at 1 . sibling-count() returns the total number of siblings, including the element itself. How we used to do it...
🌍 Dev.to

`async` Is Built on an Idea You Can See in `yield`

async Is Built on an Idea You Can See in yield yield and await aren't the same thing. A generator isn't an async function, and an async function isn't a generator. But there is an idea hiding underneath both of them that is easy to miss: execution can stop here and continue later. Once you see that, async/await starts looking a lot less magical. 🔴 The Problem Consider a generator: function * work () { console . log ( " A " ); ...
🌍 Dev.to

There Is No Such Thing as an Edge Case. Or is there?

There Is No Such Thing as an Edge Case. Or is there? "That's just an edge case." You've probably heard it after someone finds a weird input, an unexpected state, or a combination of events nobody thought would happen. Sometimes that's a perfectly reasonable description. Sometimes it's how a bug gets dismissed. The interesting question is not whether something is unusual. It's whether your software needs to handle it . 🔴 The Problem Imagine you're building a sy...
🌍 Dev.to

A tiny HTML proposal with two switches and one render function

A proposal can look perfectly reasonable until you change one option. The price updates, but the delivery time still belongs to the old plan. Now the page is giving two different answers. That is the small problem this example tackles: two packages, two revisions, and one consistent summary. It uses ordinary HTML and JavaScript. The company details and estimates are fictional. The useful part is the shape of the state. You can reuse it for a quote calculator, a package comparison, or a pro...
AcademAI — I Built an Open-Source Multi-Disciplinary Academic Co-Pilot for My Wife (and Every University Student)
🌍 Dev.to

AcademAI — I Built an Open-Source Multi-Disciplinary Academic Co-Pilot for My Wife (and Every University Student)

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built I built AcademAI for someone very close to my heart: my wife . She is currently finishing her undergraduate thesis in S1 PAUD (Pendidikan Anak Usia Dini — Early Childhood Education) in Indonesia while also managing our home and daily family life. Every evening, I would sit beside her at the kitchen table and watch her struggle with the overwhelming friction of academic writin...
Meta Muse blocked by Amazon: the AI shopping agent fight, explained
🌍 Dev.to

Meta Muse blocked by Amazon: the AI shopping agent fight, explained

Meta Muse, the personal AI agent Meta launched on September 8, can no longer shop on Amazon. Since Sunday night, Muse users who ask it to buy something there get a popup saying "Continued access by an unauthorized AI agent violates Amazon's Conditions of Use", according to GeekWire . If you build anything that browses the web on a user's behalf, this is the first big test of who decides whether your agent gets through the door: the user, the agent's maker, or the store. TL...
Why ALTER TABLE Still Takes Down Production Postgres in 2026
🌍 Dev.to

Why ALTER TABLE Still Takes Down Production Postgres in 2026

If you’ve run PostgreSQL in production long enough, you’ve either caused this incident or watched someone else cause it: a Friday afternoon schema change, a table with tens of millions of rows, and a ALTER TABLE statement that looked completely harmless in a staging environment with 200 rows. Then production connections start queuing. Then the connection pool exhausts. Then the on-call pager goes off. The Mechanism, Precisely PostgreSQL’s ALTER TABLE takes an ACCESS EXCLUSIVE ...
🌍 Dev.to

When a reasoning model's <think> block leaks a JSON draft into your parser

Disclosure: I wrote this article together with an AI assistant (Claude). The AI ran all the code below and checked the results. I am not a professional programmer, so please read it with that in mind. The problem When you pull JSON out of an LLM's reply, json.loads raising an error is the easy case. The harder case is when nothing fails and the wrong JSON quietly comes back. Some reasoning models print their thinking before the answer, wrapped in tags like <think>....
🌍 Dev.to

CFP - Hacktoberfest 2026 Meetup

Hey everyone! 👋 I'm excited to announce that this year I'm hosting the Jharkhand's first official Hacktoberfest Meetup in Ranchi 🤩 Since this is the first time we're hosting Hacktoberfest, we are looking for some amazing Speakers who can inspire and guide our students/developers who wants to start their journey in open source, as well as professionals who want to contribute and excel in their careers. 👨‍💻 Who we are looking for? Open Source Contributors Project Maintainers ...
Single-Stage Vector Filtering for AgriTech Mandi Logistics
🌍 Dev.to

Single-Stage Vector Filtering for AgriTech Mandi Logistics

Single-Stage Vector Filtering for AgriTech Mandi Logistics Benchmarking pre-filtering, post-filtering, and Qdrant’s single-stage in-index filtering on a 120,000-listing Indian AgriTech dataset The Problem: Vector Search Alone Isn’t Enough Vector search is very good at answering questions such as: “Find produce similar to this description.” But real logistics systems rarely stop there. A buyer may want produce that is semantically similar and satisfies stric...
PayScope: read the terms, choose the next step
🌍 Dev.to

PayScope: read the terms, choose the next step

This is a submission for Path One: Agents in the Sanity Challenge . AI disclosure: this project and post were produced by an autonomous AI coding agent under the CedarProof work identity. No human authorship or independent human review is claimed. What I Built PayScope is a work agent that reads the terms before recommending the next step. A listing says “open,” but its submission window has already closed. A bounty is funded, but claiming it requires a refundable bond...
🌍 Lobsters

What are you doing this weekend?

Feel free to tell what you plan on doing this weekend and even ask for help or feedback. Please keep in mind it’s more than OK to do nothing at all too!
🌍 Dev.to

I Built an AI Learning Companion for People Who Want to Learn by Building

For the Hacktoberfest Weekend Challenge: Build for a Friend , I wanted to build something that wasn't just another AI demo. I wanted to build something that could actually help someone learn. So I built AIBuddies . 👉 Live: https://ajay-dhangar.github.io/ai-buddies/ 👉 Source: https://github.com/ajay-dhangar/ai-buddies AIBuddies is an open-source AI learning companion that brings together learning paths, practical projects, interactive demos, and community-driven resourc...
🌍 Dev.to

I let an AI agent run my side project's growth loop: intent.md, CI gates and metric bands

I'm a digital tutor at a middle school in Korea. A while ago I got tired of emailing myself files just to move a photo from my phone to a classroom PC, so I built a small web app with Claude Code: Clipboard Share . Open it on two devices on the same Wi-Fi and they find each other. No code to type, no sign-up, no app install. Building it was the fun part. Getting anyone to use it was not. Usage had been sliding for three weeks, and every "growth" task (checking Search Console, tweaking a titl...
🌍 Dev.to

A bulk export still needs per-row authorization

Export and “download all” endpoints are where object-level checks quietly disappear. The UI shows a filtered table, but the export handler often runs a privileged query, streams every matching id, and trusts that the list page already did the hard part. If any row in that stream would 404 or 403 on the single-resource path, the export just became a bulk BOLA. Patterns that hold up: Authorize the action (can this subject export this collection?) and then constrain the query with the ...
OpenAI hack by Claude, ZCode's git upload: week 38 in tech, ranked
🌍 Dev.to

OpenAI hack by Claude, ZCode's git upload: week 38 in tech, ranked

Week 38 of 2026 had the OpenAI hack, a Claude-written exploit that got three researchers into OpenAI's internal GitHub, a coding agent that uploaded users' git history, and a Microsoft memo calling AI training "the largest theft of labor in human history". Here are September 14 to 18, seven stories ranked by how much each changes your Monday as a developer, with what happened after each episode and the stamp it gets now. TL;DR: week 38, ranked # Story Stamp n...
🌍 Dev.to

Weekly Dev Log 2026-W20

🗓️ This Week It’s been two weeks since my last update . I had a long break of about five days, and here in Japan, it’s really starting to feel like autumn🍂. This time of year is perfect for picnics, so it’s been nice to enjoy the cooler weather. I also planted some lavender seeds with my kids that we received at a local event, and they’ve just started to sprout recently🌱. It’s been fun checking on them together and watching them grow little by little. This week, I finally started...
I don't watch F1, so I built a quiz where the AI isn't allowed to grade me
🌍 Dev.to

I don't watch F1, so I built a quiz where the AI isn't allowed to grade me

This is a submission for the Sanity Challenge, Path One: Ship an Agent That Queries Real Content What I Built I'm not an F1 person, but I've wanted to get into it for a while. Pole, DNF, sprint, undercut: I knew the words existed and not much more. So for this challenge I built the thing I actually needed, a quiz that teaches you Formula 1 one race at a time. It's called Pit Wall. You pick a 2026 Grand Prix and a tyre (Soft for one fact from the race, Medium for comparing d...
🌍 Dev.to

Building a Browser-Based T-Shirt Designer with HTML5 Canvas

I've been exploring ways to build a browser-based T-shirt design editor using JavaScript and HTML5 Canvas. The goal is to let users create their own T-shirt designs by adding text, uploading images, resizing elements, and positioning them on a canvas. I'm also interested in implementing features such as zooming, panning, and measurement rulers to make the design experience more precise. You can see an example of the T-shirt design editor I'm working on here . One of the interesting ...
🌍 Dev.to

Show Dev: Agricalc — free science-based agriculture calculators as an offline-first PWA

Hey devs! I want to share a project I built: Agricalc ( https://agricalc.online ), a free collection of science-based agriculture calculators. What it does: Covers the full farming cycle — planting, fertilization, irrigation, harvest, and marketing Every calculator is built on established agricultural formulas and reference data Includes a 53-term agricultural glossary (CEC, GDD, evapotranspiration, N-P-K…) Why a PWA: Farms often have poor connectivity — the whole thing wor...
Build for a Friend: Receipt Lens
🌍 Dev.to

Build for a Friend: Receipt Lens

Build for a Friend: Receipt Lens Entered in the Best Use of Sentry Agent Tracing category: tooling that shows an agent's work, with traces. The problem A friend of mine runs AI agents to do real work: research, data pulls, summaries. The agents are useful. The problem is what happens after. The agent says "done," hands over an answer, and everything in between is a black box. He asked me the simplest question in the world: what did the agent actually do? I ...
🌍 Dev.to

Does Dependency Security Really Need the Cloud?

The question I kept asking myself a simple question: Why does checking a dependency for a known vulnerability need to send anything to the cloud? This isn't an argument against cloud-based security tooling . There are good reasons to use centralized services, especially when you need continuously updated data, organization-wide policies, reporting, or large-scale analysis. I was interested in a narrower engineering problem: What would a dependency vulnerability analyzer look like if...