Kit Inspection Report automation for electronics kitting & QA
Kit Traveler turns a customer BOM, handwritten store-issue sheets, IQC (incoming quality) reports and COC certificates into a finished Kit Inspection Report (DP219-I), in minutes instead of hours.
- Overview
- Key features
- How it works
- Architecture
- Repository structure
- Getting started
- Configuration
- Input files
- Report column mapping
- Matching logic
- Colour coding & audit
- Daily usage
- Security
- Limits & costs
- Troubleshooting
- Roadmap
- Acquiring the software
- License & intellectual property
In PCBA manufacturing, every production kit needs a Kit Inspection Report that proves each issued part is traceable: which MRN (goods receipt) it came from, what the IQC inspection recorded, and where its COC is.
Doing this by hand means copying BOM columns, reading MRNs off handwritten store sheets, searching several IQC workbooks and pasting COC links, for hundreds of lines per kit.
Kit Traveler automates the whole chain:
| Step | Manual effort before | With Kit Traveler |
|---|---|---|
| Copy BOM fields into the report | Copy-paste per line | Automatic |
| Read MRNs from the store sheet | Read and type every row | Phone photo → AI reads it |
| Find IQC data per part | Search 10+ workbooks | Automatic (SPN + MRN match) |
| Add COC links | Look up in Drive | Automatic (by MRN) |
| Spot mistakes | Manual review | Flagged in red / yellow |
- Projects & kits. Each project stores its customer BOM and report header defaults. Every kit (work order) is saved with its photos, MRNs, edits and status.
- Live phone capture. Scan a QR code on the laptop and your phone opens a camera screen linked to that kit. Photos appear on the laptop within seconds and are compressed automatically.
- In-app AI reading. Store-sheet photos are read by Google Gemini through a secure server function: product name, item number, issued qty, date code and MRN. Up to 10 pages per batch.
- EMACS MRN format. Handwritten MRNs such as
m/250227are normalised toEMACS250227for matching and for the report. - IQC library. Upload all IQC / IGI workbooks once (2024-25 layout and 2025-26+ layout are both supported). Duplicates across copies are merged automatically.
- Robust matching. Matches on SPN, MSD PN or MPN plus MRN, and tolerates IQC cells with several part numbers and O/0 typos.
- Smart review. Every problem row gets one-tap MRN suggestions (1 digit off, on this kit sheet, in IQC), an Apply best fixes button and Recompute.
- Master-format export. Fills your DP219-I template, keeping the logo, colours, notes and formulas (
Issued QTY = Kit Qty × Qty). COC links are clickable. - Colour-coded audit. Red means mismatch or action needed; yellow means check. Each coloured cell carries a note explaining why.
- Works everywhere. Desktop and mobile, with a responsive layout and a hamburger menu on small screens.
flowchart LR
BOM[Customer BOM] --> F[Fill master format]
SS[Store-sheet photos] --> AI[AI reads MRNs]
AI --> M[Add MRNs - EMACS format]
F --> M
IQC[IQC reports] --> Q[Match IQC lots - SPN + MRN]
M --> Q
Q --> QT[Quantities - Qty, Kit Qty, Issued = formula]
COC[COC links] --> L[Link COCs]
QT --> L
L --> R[Review, fix, recompute]
R --> X[Download Kit Inspection Report .xlsx]
- Setup (once per project): upload the customer BOM and set the report header defaults.
- Library (once, then when new files arrive): upload the IQC reports and import the COC links.
- Per kit:
- Photograph the store sheet.
- Read the MRNs with AI.
- Review and fix the flagged rows.
- Download the report.
flowchart TB
subgraph Client [Browser - laptop or phone]
APP[index.html - single-file web app]
end
subgraph Supabase
DB[(Postgres - projects, kits, IQC index, COC links)]
ST[(Storage - photos, IQC JSON, templates)]
FN[Edge Function read-sheet]
end
G[Google Gemini API]
APP -- REST --> DB
APP -- upload / download --> ST
APP -- invoke --> FN
FN -- API key kept server-side --> G
HOST[Netlify / any static host] -. serves .-> APP
| Layer | Technology |
|---|---|
| Front end | Single self-contained index.html (HTML, CSS, vanilla JS) |
| Spreadsheets | SheetJS (read BOM / IQC), ExcelJS (write the styled master format) |
| Database | Supabase Postgres |
| File storage | Supabase Storage (bucket kit-files) |
| AI | Google Gemini via Supabase Edge Function read-sheet |
| Hosting | Netlify (or GitHub Pages, Vercel, any static host) |
| QR codes | qrcode.js |
kit-traveler/
├── README.md
├── index.html # the complete web app
├── supabase/
│ ├── sql/
│ │ ├── 01_schema.sql # tables, storage bucket, row-level security
│ │ └── 02_open_access.sql # optional: no-login mode
│ └── functions/
│ └── read-sheet/
│ └── index.ts # Gemini reader (Edge Function)
├── tools/
│ └── drive-coc-export.gs # Google Apps Script: Drive folder → coc_links.json
└── docs/
└── screenshots/ # optional
File mapping:
supabase-setup.sql→supabase/sql/01_schema.sql,supabase-no-login.sql→supabase/sql/02_open_access.sql,read-sheet-edge-function.ts→supabase/functions/read-sheet/index.ts.
- A Supabase project (the free tier works)
- A Google AI Studio API key for Gemini
- A static host such as Netlify
- Open Supabase and go to SQL Editor → New query.
- Run
supabase/sql/01_schema.sql. - Optional, for no-login mode: run
supabase/sql/02_open_access.sql. See Security first.
- Go to Edge Functions → Deploy a new function → Via Editor.
- Name it exactly
read-sheet, keep the file nameindex.ts, and pastesupabase/functions/read-sheet/index.ts. - Click Deploy.
- Go to Edge Functions → Secrets and add:
GEMINI_API_KEY: your Gemini key (required)GEMINI_MODEL: optional, defaults togemini-2.5-flash
- Open
index.htmland setSUPABASE_URLandSUPABASE_ANON_KEY(Supabase → Project Settings → API). - Deploy the folder to your static host. On Netlify you can drag it into the Drop page.
- Library → IQC reports: upload all IQC / IGI workbooks at once.
- Library → COC links: import
coc_links.json(see COC links). - Projects → New project: upload the customer BOM and fill in the header defaults.
Constants at the top of the script in index.html:
| Constant | Default | Purpose |
|---|---|---|
SUPABASE_URL |
— | Your Supabase project URL, without /rest/v1/ |
SUPABASE_ANON_KEY |
— | Supabase anon (public) key. Never use the service-role key here. |
OPEN_ACCESS |
true |
true = no login. false = email/password sign-in with row-level security. |
MRN_PREFIX |
EMACS |
Prefix used to format and match MRNs |
MAX_PHOTOS |
10 |
Photos per upload and per AI batch |
AI_FUNCTION |
read-sheet |
Edge Function name |
BUCKET |
kit-files |
Supabase Storage bucket |
Server-side secrets (Supabase → Edge Functions → Secrets):
| Secret | Required | Purpose |
|---|---|---|
GEMINI_API_KEY |
Yes | Google Gemini API key |
GEMINI_MODEL |
No | For example gemini-2.5-flash (fast) or gemini-2.5-pro (most accurate) |
- An
.xlsxor.xlsfile. The sheet with BOM headers (usually BOM) is detected automatically. - The columns used are Sl.No, SPN, MSD PN, Reference, Part Description, Manufacturer Part No, Manufacturer, Alternate part No, Alternate manufacturer, Package Type, Qty and DNP.
- Rows with DNP = YES, and everything after the DNP LIST section, are skipped.
- Only the ELE sheet is read.
- 2024-25 IGI layout: header on rows 8–9, using
Item Code,Received Part Number (MPN)andVender Label Date Code. - 2025-26+ IQC layout: header on rows 7–8, using
Smile Part Number as per BoM,Received MPN,Date CodeandCOC Date Code. - MRN cells such as
EMACS250227 / GRN-17637are parsed toEMACS250227.
- Photos taken on a phone. They may be rotated, creased or low-light.
- The AI reads Product Name, ItemNumber, Issued Qty, DC and the MRN from Remarks (
m/250227). It also records alternate-part notes such as "Issued Alt ACS-01C11273".
COCs are matched by MRN (6 digits). To export every file link from a Google Drive folder at once, run this script in Google Apps Script:
const FOLDER_ID = 'YOUR_DRIVE_FOLDER_ID';
function exportCocLinks() {
const map = {}, skipped = [];
scan(DriveApp.getFolderById(FOLDER_ID), map, skipped);
const out = DriveApp.createFile('coc_links.json', JSON.stringify(map, null, 1), MimeType.PLAIN_TEXT);
Logger.log('COC links found: ' + Object.keys(map).length);
if (skipped.length) Logger.log('Skipped (no MRN in name): ' + skipped.join(', '));
Logger.log('Saved here: ' + out.getUrl());
}
function scan(folder, map, skipped) {
const files = folder.getFiles();
while (files.hasNext()) {
const f = files.next();
const m = f.getName().match(/\d{6,}/);
if (!m) { skipped.push(f.getName()); continue; }
map[m[0].slice(-6)] = 'https://drive.google.com/file/d/' + f.getId() + '/view?usp=drive_link';
}
const subs = folder.getFolders();
while (subs.hasNext()) scan(subs.next(), map, skipped);
}Import the resulting coc_links.json in Library → COC links.
Output follows the master format DP219-I. Data starts on row 11.
| Col | Header | Source |
|---|---|---|
| A | Sl.No. | BOM Sl.No |
| B | MRN No. | Store sheet → EMACS + 6 digits |
| C | SPN | BOM SPN |
| D | SPN (MSD PN) | BOM MSD PN |
| E | Circuit Reference | BOM Reference |
| F | Required MPN | BOM Manufacturer Part No |
| G | Alternative MPN | BOM Alternate part No |
| H | Received MPN | IQC Received MPN |
| I | Manufacturer | BOM Manufacturer |
| J | Alternative Manufacturer | BOM Alternate manufacturer |
| K | Received Manufacturer | IQC Make |
| L | Supplier | IQC Vender Name |
| M | Package | BOM Package Type |
| N | Item Description | BOM Part Description |
| O | Measured Value | IQC Measured Value |
| P | Unit | IQC UOM / Unit |
| Q | Qty | BOM Qty (per board) |
| R | Kit Qty | Header Kit Qty |
| S | Shortage QTY | 0 |
| T | Issued QTY | Formula =R × Q |
| U | Marking Code on Component | IQC Marking on Component |
| V | Date Code on Label | IQC Date Code |
| W | Date Code on COC | IQC COC Date Code |
| X | Date Code on Component | Left blank for QA |
| Y | Photocopy of COC | COC link (clickable) |
| Z–AC | Top Marking, Approval Mail, Remarks, Comment | Left blank for QA |
Header block: Project Name, Kit Qty, Start/End Date, Card Name, BOM Name & Ver, Kit Done By, Inspected By.
For every BOM line:
- Find MRNs. Store-sheet rows are matched to the BOM line by Product Name (SPN) or ItemNumber (MSD PN).
- Look up IQC with the key
part + MRN, where "part" is tried in this order: SPN, MSD PN, alternate part issued, then Required/Alternative MPN as a fallback.- IQC cells holding several codes (for example
ACS-01IC1324andACS-TRM-FLT0003) are split, and each code is indexed. - The letter
Oand the digit0are treated as equal, to absorb typos. - When several lots share the same 6 digits, the
EMACSlot is preferred over other prefixes such asEMACG.
- IQC cells holding several codes (for example
- Link COC by the 6-digit MRN.
- Suggest fixes for unmatched MRNs, ranked as:
- 1 digit off from an IQC MRN for this part
- on this kit sheet (catches rows the AI read one row shifted)
- in IQC (the most recent lots)
| Colour | Meaning |
|---|---|
| 🔴 Red | MRN has no IQC record for this part; MRN missing; received MPN does not match the required or alternative MPN |
| 🟡 Yellow | Received MPN is a suffix or packaging variant; COC link missing; MRN hard to read; alternate part issued |
Each coloured cell has a note with the reason. Confirmed rows can be ticked OK in Match & review, which removes their colouring.
- Projects → open project → New kit. Enter the WO / kit name and kit qty.
- Store sheet:
- Tap Add from phone (QR) and photograph each page.
- Tap Read new pages to read them with AI.
- Match & review:
- Work through Needs check.
- Tap Use EMACS… suggestions, or Apply best fixes.
- Tap Recompute after library changes.
- Kit report:
- Check the header.
- Correct any cell.
- Tap Download kit report (.xlsx).
⚠️ Read before publishing this repository.
- Never commit secrets. The Gemini key belongs only in Supabase Secrets. Never use the Supabase service-role key in
index.html. - The anon key is public by design, but in
OPEN_ACCESSmode it lets anyone who has the site URL and key read and change all data. If this repo is public, either:- set
OPEN_ACCESS = false, keep login and row-level security, and disable public sign-ups in Supabase, or - remove the key from
index.htmlbefore committing and inject it at deploy time.
- set
- Keep the repository private if it contains company BOMs, IQC data or links.
- The storage bucket is private. Photos and COC PDFs are served through short-lived signed URLs.
| Service | Free tier (typical) | Notes |
|---|---|---|
| Supabase | 500 MB database, 1 GB storage | Free projects pause after about 1 week of inactivity (press Restore). Photos are compressed to about 0.3–0.7 MB each. |
| Gemini API | Rate- and day-limited | Enable billing in AI Studio for higher limits. Cost per page is typically a fraction of a cent with Flash. |
| Netlify | Generous static hosting | — |
Plans and pricing change; check each provider's pricing page.
| Symptom | Fix |
|---|---|
| Asks for the database URL/key on every device | Set SUPABASE_URL and SUPABASE_ANON_KEY in index.html and redeploy |
| IQC columns empty in the report | Check the Match & review line "IQC library loaded: N lots". If it is 0, re-upload the IQC files. |
| "Not allowed / row-level security" | Run 01_schema.sql (and 02_open_access.sql if using no-login mode) |
| "GEMINI_API_KEY is not set" | Add the secret in Supabase → Edge Functions → Secrets |
| "API key not valid" | Create a key in Google AI Studio (usually starts with AIza…) |
| Quota / 429 errors when reading | Wait a minute, or enable billing on the Gemini API project |
| iPhone photo will not upload | Set Settings → Camera → Formats → Most Compatible |
| Changes not visible after deploy | Hard refresh with Ctrl + Shift + R |
- Login with roles (Owner / Admin / User) and an admin panel
- Usage dashboard (kits, AI pages, downloads)
- Remote maintenance mode, announcement banner and feature flags
- Central error log for remote debugging
- Multi-company workspaces and licensing (for external customers)
- Shortage calculation with a 10% passive-component allowance
Kit Traveler is available for licensing, customisation and deployment for other kitting, QA and electronics-manufacturing teams.
📧 Contact: harisaiparasa@gmail.com
Please include your company name, the number of users and your use case.
Copyright © 2026 harisaiparasa@gmail.com. All rights reserved.
Kit Traveler, including its source code, design, workflows, matching logic, documentation and associated assets, is the intellectual property of its owner (harisaiparasa@gmail.com).
This software is proprietary and confidential. Without the owner's prior written permission, no part of it may be:
- copied, modified or distributed
- sublicensed, sold or offered as a service
- reverse-engineered
Access to this repository does not grant any licence to use the software.
For licensing or acquisition enquiries, contact harisaiparasa@gmail.com.
Kit Traveler · Built for kitting & QA teams
© 2026 · Owner & licensing: harisaiparasa@gmail.com