Quickstart
Follow these steps to set up ExpressCSV with the framework-agnostic SDK and receive validated rows in your backend.
Use this pre-built prompt to get started faster with TypeScript.
-
Install the SDK
-
Get your publishable key
You need a publishable key from the dashboard to connect the importer.
New accounts start with two environments: Production and Development. For this example, grab the key from your Development environment.
-
Define your schema and create an importer
-
Open the importer from your app
-
Receive webhook deliveries in your backend
Here's an example Koa backend. In a real app, keep your schema in a shared or
corepackage and use@expresscsv/schemason the server so the webhook payload stays in sync with the importer:Return a
2xxresponse for each chunk.5xxand429responses are retried automatically, while other4xxresponses are treated as permanent failures. -
Optional: process chunks locally instead
If you do not want webhook delivery, use
onData: -
Optional: disable preloading
By default, the SDK preloads the widget in a hidden iframe so it appears instantly when
open()is called. To show a loading screen instead:
What's Next
- Types - define field types, validation rules, and TypeScript types
- Styling - theme the widget to match your app
- Webhooks - deliver records to your backend
- API Reference - full constructor,
open(), and lifecycle reference