ImportReady is a self-hosted commercial source kit. This page explains the actual v1 API.
Copy the kit's src folder into your app assets, load the ES module, and add the custom element. Serve files over HTTP or HTTPS.
<import-ready brand="Your product"></import-ready>
<script type="module">
import '/assets/importready/import-ready.js';
const importer = document.querySelector('import-ready');
importer.schema = [
{key:'name', type:'text', required:true},
{key:'email', type:'email', required:true, unique:true}
];
importer.addEventListener('importready:complete', ({detail}) => {
// Use your authenticated API client. Validate again on the server.
console.log(detail.records, detail.skipped);
});
</script>| Rule | Behavior |
|---|---|
| type | text, email, number, integer, date, boolean, enum |
| required / unique | Require a value / enforce uniqueness within the file |
| aliases | Additional names used by exact normalized header matching |
| min / max / maxLength | Numeric bounds / maximum text length |
| decimal | Dot by default; explicitly set comma for decimal-comma numbers. No thousands separators. |
| format | YYYY-MM-DD or DD/MM/YYYY. Invalid calendar dates fail. |
| values | Allowed strings for enum fields |
Set the brand attribute and the --ir-accent CSS custom property. Set schema as a JavaScript property. The component emits importready:complete with {records, skipped}. This event means local validation passed, not that your database accepted records.
import {parseCSV, autoMap, validateRows} from './src/core.js';
const parsed = parseCSV(csvText);
const mapping = autoMap(parsed.headers, schema);
const result = validateRows(parsed, schema, mapping);
// result.valid, result.invalid, result.duplicatesThe component validates in the browser only. The customer kit includes examples/server-validation.mjs, a tested Node reference for the default contact fields, and examples/SERVER-VALIDATION.md. The reference revalidates records with fixed server-owned rules and rejects forged validation flags, unknown fields and duplicate emails. It is not an HTTP endpoint. Your application must enforce request-body limits before JSON parsing, authentication, CSRF where applicable, tenant authorization, transactional writes and database constraints. None of those application controls is supplied by the component.
React: import on the client, set schema through a ref and attach/remove the native event listener in an effect. Vue: configure import-ready as a custom element and set the DOM property after mounting. Laravel: load the module in Blade and use your existing authenticated endpoint with CSRF protection. The included runnable integration is plain JavaScript; framework wrappers have not been separately tested.
Try the public demo · Compare licenses · Ask about availability