Skip to content

Flux Importer for EmDash

Available · v0.9.0

Bring CSV, JSON, XML and Excel files, and live URL feeds, into EmDash. Map columns in a visual wizard, preview a dry run, schedule repeats and roll back any run.

the Imports page of Flux Importer in the EmDash admin, listing recent imports with their status and record countsthe Imports page of Flux Importer in the EmDash admin, listing recent imports with their status and record counts
Imports in the EmDash admin: every run with its status and what it changed.
  • EmDash 1.6 or later
  • Astro 6 or later, with @astrojs/react
  • Node 22.16 or later, or Cloudflare Workers
  • @cloudflare/kumo 2.19.0, the version EmDash 1.6’s admin uses
  1. pnpm add @fluximporter/emdash

    # next: register the plugin in astro.config.mjs

  2. Add fluxImporter() to EmDash’s plugins, and fluxImporterRoutes() to Astro’s integrations. The second one adds the upload route, so large files don’t hit EmDash’s 8 MiB limit on plugin requests.

    astro.config.mjs
    import { defineConfig } from "astro/config";
    import cloudflare from "@astrojs/cloudflare";
    import react from "@astrojs/react";
    import emdash from "emdash/astro";
    import { d1, r2 } from "@emdash-cms/cloudflare";
    import { fluxImporter, fluxImporterRoutes } from "@fluximporter/emdash";
    export default defineConfig({
    output: "server",
    adapter: cloudflare(),
    integrations: [
    react(),
    emdash({
    database: d1({ binding: "DB" }),
    storage: r2({ binding: "MEDIA" }),
    plugins: [fluxImporter()],
    }),
    fluxImporterRoutes(),
    ],
    });

    On Node, use EmDash’s sqlite() and local() storage instead of D1 and R2. Nothing else changes.

  3. Start your site, sign in to the admin at /_emdash/admin and open Imports in the sidebar. New import starts the wizard with your first file.