Smart Sustainability Lab
Regulation Corpus Playground
Offline view of the regulation corpus used by Smart Sustainability Lab.
Environment: local
Service: Local JSON Adapter
Snapshot: -
This page reads from a static export of the regulation corpus. It is designed for engineers and product owners to test search behaviour, filters and document structure before wiring anything into customer facing experiences.
How to use this playground
- Type keywords in the search box.
- Narrow down by category, urgency and sector using the dropdowns.
- Click any row in the list to inspect the full JSON on the right.
- Compare the JSON with Cloud Functions responses when debugging.
This page uses the LocalRegulationService adapter. It does not call Firebase directly.
Typical workflows
- Search tuning: check if important regulations appear early for realistic queries.
- Filter sanity: confirm that category and sector values behave as expected.
- Data inspection: verify that new fields are present before UI integration.
Object Inspector
Frequently asked questions
Does this page hit Firebase or any live API?
No. It uses the LocalRegulationService which reads from the static JSON export.
How do I switch to the Vector Database?
Change the instantiation in page.tsx from LocalRegulationService to PostgresRegulationService (once implemented). The UI will remain identical.
What should I check before using this snapshot?
Confirm flagship regulations are present. If something looks wrong here, fix the ETL pipeline first.