Quickstart
Use this pre-built prompt to get started faster with Next.js.
Alternatively, follow these steps to manually add ExpressCSV to a Next.js app and receive imports in a Route Handler.
-
Install the React 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.
-
Create a client component for the importer
If you use the App Router, put the importer button in a client component:
-
Render the button from a page
If you still use the Pages Router, the same client component can be rendered from a page in
pages/with no extra setup. -
Receive webhook deliveries in a Route Handler
Keep the schema in a shared or
corepackage so both the client and the Route Handler can import it, then use@expresscsv/schemasto infer the webhook payload:Return a
2xxresponse for each chunk.5xxand429responses are retried automatically, while other4xxresponses are treated as permanent failures. -
Optional: disable preloading
By default, the widget preloads in a hidden iframe so it opens instantly. To show a loading screen instead:
What's Next
- Types — define field types, validation rules, and inferred types
- Styling — theme the widget to match your app
- Webhooks — deliver records to your backend
- API Reference — full option and return value reference