barras-ar
An open API and app to find the barcode and reference price of Argentine products. It started as a need inside Keltron and today it is public code.
Where it came from
The kiosks that use Keltron have hundreds of products, and loading them by scanning one by one takes hours. But a pack of cookies has the same barcode across the whole country.
The Argentine government publishes the prices reported by store chains every day, through the Precios Claros program. barras-ar takes that public data and turns it into a search tool: type "alfajor milka" and you get the product with its barcode and its price.
The integration with Keltron, to autocomplete products from the point of sale, is the next step.

The stations on this line
Daily import
GitHub Actions · TypeScript
Every day it downloads the SEPA dataset from Precios Claros, opens the file of each store chain, validates the barcodes and builds one record per product.
Catalog
Supabase · PostgreSQL
A single table, one row per barcode, with typical, minimum and maximum price at supermarkets and at wholesalers.
Public API
Vercel · OpenAPI
Search by barcode or by text. Read-only, no key, and open to any origin.
App
Vite · TypeScript
Scan or search a product and see its price at supermarkets or wholesalers, with its barcode ready to use.
The details that matter
Typical price, not the cheapest
Each product shows the median across the chains that report it, plus the minimum and maximum. A single sale price does not show what it really costs.
Supermarket and wholesale, separately
The wholesale price works as an approximate cost for a store that buys to resell, which is exactly the case of a kiosk.
Normalized barcodes
All barcodes are stored with 13 digits, and if you search the code of a box, you get the product inside and how many units it holds.
