Seed Demo Data
Populate a realistic demo company so you can run an assessment immediately.
The seed script creates a fictional but realistic UAE SME — a company, owners, a fully answered questionnaire, and uploaded placeholder documents — so you can run an assessment and generate reports without manual data entry. It is the fastest way to see the product work, and it is what powers the Hub71 demo.
What it creates
- A demo user:
demo@kredal.ae/KredalDemo2026! - A workspace and the company Al Barakah Foods Trading LLC (a Dubai mainland food trader)
- Two owners (60% / 40%, both UBOs)
- All 8 questionnaire sections answered — with deliberate gaps (no source-of-funds explanation, unregistered for tax, WPS status unknown) so the assessment produces a rich, demonstrable set of risk flags rather than a flat 100.
- 4 of 6 required documents uploaded (UBO declaration and tenancy agreement left missing on purpose — both are common rejection triggers).
It does not pre-run the assessment or generate a report. Running those live in the app is the actual demo moment.
Run it
The script reads credentials from .env.local and uses the service-role key, so it must run
against a project where you have already applied the migration.
cd kredal-app
npm run seed:demoThis is equivalent to node --env-file=.env.local scripts/seed-demo.mjs. It is idempotent
— re-running looks up the demo user by email instead of creating duplicates.
After seeding
npm run devand sign in at/loginwith the demo credentials above.- Open the company, go to Assessment, and click Run assessment. You will see a medium/high-risk score with ~10 specific flags.
- Go to Reports and generate the Bank application pack.
Notes
- The placeholder documents are minimal but valid single-page PDFs generated in-script, so document previews open correctly.
- To reset, delete the demo user and its data from the Supabase dashboard, then re-run.