Takeaways
- Moving from Flatfile to Dromo is a remapping job, not a rebuild. Flatfile sheets become Dromo schemas, record hooks become row hooks, constraints become validators, and submit listeners become an onResults callback or a webhook.
- The biggest difference is where your logic runs. Flatfile listeners usually run as a deployed agent on Flatfile's infrastructure. Dromo hooks run inside your own frontend code, and in Private Mode the file never leaves the user's browser.
- Teams that only import a file, validate it, and send it to their backend move fastest. Waycool finished in under an hour, and Nisto reused most of its Flatfile code. Collaborative, multi-user workflows take longer.
- Run both importers side by side behind a feature flag, compare results on real customer files, then cut over.
Moving an importer off Flatfile takes eight steps: inventory what you built, recreate the schema, port validation logic, replace the embed, replace submit and egress, decide where the data lives, test on real files in parallel, and cut over. For a typical integration that imports a file and hands clean rows to your backend, the work is measured in hours or days, not sprints.
Who this guide is for
This guide is for teams running Flatfile's embedded importer, either the current platform with Spaces, Workbooks, and listeners, or an older Portal integration, who want to replace it with Dromo. If you are still choosing a vendor, start with the Flatfile alternatives comparison or Dromo vs Flatfile. If you want to know why Flatfile changed direction, see what happened to the Flatfile importer.
How Flatfile concepts map to Dromo
| Flatfile | Dromo | Notes |
|---|---|---|
| Workbook and Sheet | Schema (an array of fields) with an importIdentifier | One Dromo import per record type. A workbook with three sheets becomes three schemas. |
Field type: string, number, boolean, date | string, number, checkbox, date | Dromo also has email, phone-number, url, domain, country, us-state-territory, us-zip-code, ssn, uuid, datetime, and time. |
enum / enum-list | select / multi-select with selectOptions | Options support alternateMatches. |
string-list | No direct equivalent | Import as string and split in a row hook, or use multi-select if the values come from a fixed list. |
reference / reference-list | No direct equivalent | Validate references with a column hook against your API, or override a cell's selectOptions in a row hook. |
Constraint required / unique | Validators required / unique | Also unique_case_insensitive, unique_with, regex_match, and the require_with family. |
Constraint computed | Field with hidden: true or readOnly: true, set by a hook | |
alternativeNames | alternateMatches | |
recordHook (plugin-record-hook) | Row hook | Runs on every row at load, and again on rows the user edits. |
bulkRecordHook | Bulk row hook, or batch row hook for very large files | |
| Listener calling an external API | Column hook (async) | One call per column instead of one per record. |
Submit action and job:ready egress listener | onResults callback, beforeFinish, and managed webhooks | |
| Theme and translations | styleOverrides, textOverrides, and locale | Localization is on the Enterprise plan. |
| Automated, headless imports | Dromo Headless over API or SFTP | Enterprise plan. |
Step 1: Inventory what you built
Before writing any code, list every piece of the current integration. Migrations stall on the item nobody remembered.
- Sheets and fields. Every sheet, every field, its type, its constraints, and any
alternativeNames. - Hooks and listeners. Every
recordHook,bulkRecordHook, and custom listener, and what each one does: transform, validate, or call an API. - Actions and egress. What happens when a user submits: which endpoint receives the data, in what shape, and what happens on failure.
- Branding and copy. Theme settings, custom text, and translations.
- Where data is stored. Whether files and records are retained, for how long, and what your customers' contracts say about it.
Then check how your code is structured. Bambi Health, which moved 23 broker templates to Dromo from another vendor, first refactored its importer behind an internal abstraction layer, so any vendor could sit behind one stable interface. It had scoped six weeks and finished in about two. If your Flatfile calls are spread across the codebase, refactor first.
Step 2: Recreate the schema
Each Flatfile sheet becomes a Dromo schema: an array of fields. Most fields translate line for line.
// Flatfile sheet fields
[
{ key: "email", type: "string", label: "Email", constraints: [{ type: "required" }, { type: "unique" }] },
{ key: "status", type: "enum", label: "Status", config: { options: [{ value: "active", label: "Active" }, { value: "inactive", label: "Inactive" }] } },
{ key: "start_date", type: "date", label: "Start date" },
{ key: "is_admin", type: "boolean", label: "Admin" },
]
// Dromo fields
[
{ key: "email", label: "Email", type: "email", validators: [{ validate: "required" }, { validate: "unique" }] },
{ key: "status", label: "Status", type: "select", selectOptions: [{ value: "active", label: "Active" }, { value: "inactive", label: "Inactive" }] },
{ key: "start_date", label: "Start date", type: "date" }, // outputs YYYY-MM-DD by default
{ key: "is_admin", label: "Admin", type: "checkbox" },
] Use the richer Dromo types where they fit. An email stored as a Flatfile string with a regex hook can become an email field, and the hook can go. Keep the same key values so the data your backend receives does not change shape. Values can still differ slightly: a blank Dromo checkbox outputs false, where a Flatfile boolean with allowIndeterminate stored null.
You can keep the schema in code, as above, or build it in Schema Studio so a product manager can change fields and rules without a deploy. An importer uses one or the other, not both. Teams that want every template change to go through a pull request keep schemas in code, which is how Bambi runs all 23 of its templates.
Step 3: Port your validation logic
Flatfile record hooks receive a record object with get, set, and addError. Dromo row hooks receive a record whose row holds each field's value and info messages, and return the updated record.
// Flatfile
listener.use(
recordHook("contacts", (record) => {
const first = record.get("first_name");
if (first) record.set("first_name", first.charAt(0).toUpperCase() + first.slice(1));
const domain = String(record.get("email") ?? "").split("@")[1];
if (domain === "example.com") record.addError("email", "Use a real company email.");
return record;
})
);
// Dromo row hook
const contactRowHook = (record) => {
const { first_name, email } = record.row;
if (first_name?.value) {
first_name.value = first_name.value.charAt(0).toUpperCase() + first_name.value.slice(1);
}
if (email) {
const domain = String(email.value ?? "").split("@")[1];
email.info = domain === "example.com" ? [{ message: "Use a real company email.", level: "error" }] : [];
}
return record;
}; Three differences matter:
- Messages replace, not append. Returning
inforeplaces the cell's previous messages, so set an empty array when the value is valid, as above. Otherwise a fixed cell keeps its old error. - Hooks re-run on edits. Row hooks run once for every row when the review step opens, then again for each row the user changes. Logic that should only run once, such as a costly lookup, belongs in a column hook.
- Lookups belong in column hooks. A Flatfile listener that called your API per record becomes a single async column hook that receives every value in the column and returns messages for the ones that fail. Column hooks run only once, so re-check edited values in a row hook in
updatemode.
Many hooks disappear entirely. Built-in types already validate emails, phone numbers, URLs, dates, and zip codes, and validators cover required, unique, regex, and conditional rules.
Step 4: Replace the embed
Flatfile's React SDK wraps your app in a FlatfileProvider and opens a Space with openPortal. Dromo is a single component that renders a button, or opens on demand when you control its open prop.
import DromoUploader from "dromo-uploader-react";
<DromoUploader
licenseKey={process.env.NEXT_PUBLIC_DROMO_FRONTEND_KEY}
fields={contactFields}
settings={{ importIdentifier: "Contacts", developmentMode: true }}
user={{ id: currentUser.id, email: currentUser.email }}
rowHooks={[contactRowHook]}
onResults={(rows, metadata) => saveContacts(rows, metadata)}
>
Import contacts
</DromoUploader> There are packages for React, Angular, and plain JavaScript. Vue, Svelte, and any other framework use the JavaScript package. Waycool used the Angular SDK for its move. Leave developmentMode on until you go live, because development imports are not charged.
Step 5: Replace submit and egress
On Flatfile, data leaves through an action and a listener that reads the records and posts them somewhere. On Dromo, the clean rows arrive in your own code:
onResultsreceives the final rows as JSON, keyed by your field keys, plus metadata: the filename, the user, the mapping, and any rows that still have errors. Post them to the same endpoint your Flatfile listener posted to.beforeFinishruns when the user clicks Finish and can cancel with a message, the place for checks such as a minimum row count.- Managed webhooks, set up in the Dromo dashboard, notify your backend when an import completes so it can fetch the data from the Dromo API. Both need
backendSyncModeset toFULL_DATA, which stores the data with Dromo. In Private Mode, useonResults.
Step 6: Decide where the data lives
Flatfile processes and stores files on its servers. Dromo's default, Private Mode, parses and validates the file in the user's browser and hands the result to your code, so Dromo never receives the rows. Mapping memory (autoMapHeaders) needs backend sync. In MAPPINGS_ONLY mode, Dromo stores only the column mapping and the distinct values of select fields, never full rows. On the Enterprise plan, Bring Your Own Storage writes data to your own S3, Google Cloud Storage, or Azure bucket. See how Private Mode works.
Update your security documentation and subprocessor list to match the mode you choose.
Step 7: Test on real files, side by side
Put the new importer behind a feature flag and run real customer files through both.
- Use the files that caused support tickets, not clean samples: title rows above the headers, renamed columns, mixed date formats, and duplicates.
- Compare the JSON each importer produces for the same file, field by field.
- Check every error message a user can see, and rewrite any that do not say how to fix the problem.
- Test the largest file a customer has sent you. Dromo Professional supports files up to 100,000 rows, and Enterprise supports 10 million or more.
Step 8: Cut over and clean up
Switch the flag for internal users, then a few customers, then everyone. Once traffic has moved, remove the Flatfile SDK, shut down the deployed listener, revoke its keys, and delete stored data according to your retention policy. Turn off developmentMode in production.
What does not map one to one
- Multi-sheet workbooks with references. Dromo imports one record type at a time. Import parents before children, and validate child references against your API with a column hook.
- Collaborative Spaces. If several people edit the same import together and return to it later, that is the hardest part to move. Dromo can save and resume an import with
savePartialSession, which requiresbackendSyncModeset toFULL_DATA, and a saved session can be handed to another user, but there is no shared workspace where several people edit at once. Nisto's CTO drew the same line: teams that never used the collaborative side moved easily, and teams that relied on it had more to rebuild. - Documents inside a Space. Put instructions in the importer's help text settings, or link to your own help center.
How long it takes
It depends on what you built. Waycool, which serves nonprofit organizations, moved from Flatfile to Dromo in under an hour using the Angular SDK. Nisto, which builds social impact reporting software, reused most of its Flatfile code: its engineer moved the existing logic into the equivalent hooks, and its CTO said "it wasn't turnkey, but it was not hard." Bambi Health moved 23 templates from OneSchema in about two weeks against six weeks scoped, after refactoring its integration first. The full accounts are in the Waycool, Nisto, and Bambi Health case studies.
Frequently asked questions
How long does it take to migrate from Flatfile to Dromo?
A single importer that validates a file and sends rows to your backend usually takes hours to a few days. Waycool finished in under an hour. Integrations with many sheets, external lookups, or collaborative workflows take longer, mostly in testing.
Can I reuse my Flatfile hook code?
Mostly. The logic inside a record hook carries over; the wrapper changes. Replace record.get and record.set with the field values in record.row, replace addError with an info message, and move per-record API calls into a column hook.
Does Dromo work with Vue or Svelte?
Yes. Dromo has packages for React and Angular, and the plain JavaScript package works in Vue, Svelte, and any other framework.
Where does my data go after I switch?
By default, nowhere outside your application. Dromo's Private Mode processes the file in the user's browser and passes the results to your code. You can opt in to storing mappings or full data with Dromo, or on Enterprise write data to your own cloud storage.
Can I keep my schemas in code?
Yes. Fields, validators, and hooks can all be defined in code and versioned with your application, or built in Schema Studio. Each importer uses one or the other: when you pass a Schema Studio schemaId, the fields, settings, and hooks in code are ignored. Teams often keep complex importers in code and simple ones in Schema Studio.
