← All work

Creator · Full-Stack Engineer

KoboFlux

KoboFlux connects to a KoboToolbox account and puts the everyday work of a data collection team in one place: every form with its collection links, submissions at a glance, one-click exports, and a validated way to turn spreadsheet rows into Kobo submissions.

RoleCreator · Full-Stack Engineer
DomainData Collection · KoboToolbox API · Nuxt · Spreadsheet Import
LiveVisit live app ↗
Stack
  • Nuxt
  • Vue
  • TypeScript
  • Nitro server routes
  • KoboToolbox API v2
  • OpenRosa
  • SheetJS
  • PostHog
KoboFlux · system architecture
  1. 01 Browser

    • Nuxt / Vue UI
    • SheetJS header validation
  2. 02 Nuxt server

    • Nitro API routes
    • HttpOnly token cookie
    • Export polling
  3. 03 KoboToolbox

    • API v2: assets, data, exports
    • OpenRosa submission endpoint
    • Enketo links

Use cases

Who uses KoboFlux, and how

01

Data entry team

Digitising paper questionnaires in bulk

Some interviews were done on paper because devices failed or there was no signal. Typing each one back through the web form is slow and error-prone.

  1. Download a template whose columns match the form's Kobo export headers exactly
  2. Fill in one row per questionnaire in Excel
  3. Upload the file: headers are checked against the form, then each row is sent to Kobo as a submission

OutcomePaper records land in the same dataset as phone submissions, in one upload instead of dozens of form entries.

02

Field coordinator

Sending enumerators the right link

Different teams need different ways in: a web link, an offline-capable form, a single-use link for one respondent or an embed for a partner site.

  1. Open the form from the dashboard
  2. Pick the Enketo link that fits: web, single-page, one-time, offline or embed
  3. Copy it straight into the team's chat or email

OutcomeNo digging through Kobo's project settings to find the right URL for each team.

03

Monitoring and evaluation officer

Checking progress and pulling data

Before a review meeting, the team needs to know how many submissions have come in, whether they have been reviewed and get the data into Excel.

  1. Scan the dashboard for forms, deployments and total submissions
  2. Page through recent submissions with their validation status
  3. Download the data as XLSX, JSON or XML

OutcomeA quick read on collection progress and a usable export without leaving one screen.

Context

KoboToolbox is the workhorse of humanitarian, health and research data collection. Teams build forms once and then live in them for months: sharing links with enumerators, watching submissions arrive and exporting data for analysis.

The day-to-day work is spread across many screens. Collection links sit in one place, submission counts in another, and exports go through a multi-step dialog that runs in the background. One task has no good path at all: getting data that was collected on paper into Kobo. When devices fail or there is no signal, teams fall back to printed questionnaires, and those answers then have to be typed back through the web form one interview at a time.

My role

I designed and built KoboFlux on my own: product scope, the Nuxt app, the server routes that proxy KoboToolbox, the spreadsheet import and deployment.

What it does

KoboFlux is a lightweight workspace on top of the KoboToolbox API. It connects with a Kobo API token and works against either the global server or the EU server.

  • Dashboard with total forms, deployed forms, total submissions and active collectors, plus the most recently modified forms
  • Form library listing every form with owner, type, deployment status, submission count and dates
  • Form detail showing metadata, deployment status and version, project settings, data columns and every Enketo collection link: web, single-page, one-time, offline, preview and embeds
  • Submissions view with paging and validation status for each submission
  • Exports of submission data as JSON, XML or XLSX from the form or submissions page
  • Spreadsheet upload that turns rows in an .xlsx file into real Kobo submissions

How the spreadsheet upload works

This is the feature KoboFlux was built around, and it has to be strict: a column that does not match the form silently becomes missing data.

  1. Template. KoboFlux asks Kobo for an XLS export of the form, polls until the export is ready, reads its header row and builds an empty template from it. System columns such as _id, _uuid and meta/instanceID are left out, because Kobo generates them.
  2. Validation. The uploaded file is read in the browser with SheetJS. Its headers are compared with the form’s current export headers, and the upload is blocked with a clear message if they do not match.
  3. Deployment check. Submissions only work against an active deployment, so the upload refuses forms that are not deployed.
  4. Submission. Each row is sent to Kobo through the standard OpenRosa submission endpoint, by way of a server route on KoboFlux. The result is a normal Kobo submission: it shows up in Kobo’s own data table, exports and reports like any other.

Credentials and privacy

KoboFlux can run with a server-level Kobo token, or a user can paste their own token on the Settings page. A user-supplied token is checked against Kobo before it is saved, kept in an HttpOnly session cookie for that browser only, and overrides the server token for that session. Requests to Kobo go through KoboFlux’s server routes, so the token is never exposed to client-side scripts.

Key decisions

Stack

LayerStack
FrontendNuxt · Vue · TypeScript
ServerNuxt (Nitro) server routes proxying the KoboToolbox API
IntegrationsKoboToolbox API v2 · OpenRosa submission API · Enketo
SpreadsheetsSheetJS for reading uploads and building templates
AnalyticsPostHog