2025 · Electronics · In progress
frobou-parts
A desktop inventory app for electronic components and projects, with an AI assistant that queries and updates the stock in plain language.
- Role
- Design and development
- Period
- Sep 2025 — present
- Stack
- Electron · LLM · React · SQLite · TypeScript
- Team
- Solo, with AI agents
The problem
Anyone who tinkers with electronics piles up components in drawers and boxes and loses track of what they have, where it is and what each project has already set aside. A spreadsheet handles the count, but it does not say which slot of which drawer holds the part, or what has already been reserved.
frobou-parts is the inventory of my own components. The screens below come from the app in use, with the real stock. The interface is in Portuguese.
Overview
The home screen, the one in the image at the top, shows how many components there are, how many are below minimum stock, the active projects and the week's stock movements. The restock list already says where each part lives: GP-18 G1 D2 is the cabinet, the drawer and the slot.
Where each part lives
The catalog follows the physical path. The category says what the part is; the drawer cabinet says where it is. Each cabinet has a number of drawers and of slots per drawer, and the screen draws each one as a grid with the quantity kept in every slot.

A component points to a cabinet, a drawer and a slot, with its total and minimum stock, and it can carry attached files. The reserved amount is not typed in: it comes from project reservations. Every change in quantity goes into the stock movement history.

Projects
A project gathers its bill of materials, its files and its history. Putting a component on the list reserves the units: the search shows how much of each part is available, and what was reserved stops counting as available everywhere else in the app.

AI assistant
AskAI answers questions about the inventory and changes it in plain language: how many resistors there are, where a new part fits, what a project is still missing. The model never touches the database: it calls 18 tools of the app itself, under the same rules as the screens.
Every write goes through approval, following the policy chosen in the settings: confirm everything, only deletions (the default), or nothing. A request with several changes becomes a plan, with the goal and the steps on a single screen, which can be approved whole or step by step; if one step fails, the following ones do not run.
Each answer shows the tokens, the cost and how much came from the cache, and the conversation warns when the session goes past the configured cost limit. It works with OpenAI, Anthropic and xAI, and the API key is encrypted with AES-256-GCM.

How it is built
Electron with React 19 and TypeScript, and SQLite with Drizzle ORM. The database and the AI live in the main process, kept apart from the interface by a bridge of named channels validated with Zod schemas. It works offline; only the assistant talks to the internet.
Backups come out as a ZIP with a checksum, and a restore saves the current state before it starts: if anything fails halfway, the previous inventory comes back. Tests run in two environments on purpose: the main process under Node, with real SQLite and real model SDKs, and the interface under jsdom.
198
components in my inventory
21
drawer cabinets, with every drawer and slot mapped
18
tools the assistant uses to query and change the stock