harita-studio
v0.1.0
Published
HaritaDocs launcher for consultants and project teams.
Maintainers
Readme
HaritaDocs
HaritaDocs is a Next.js 14 workspace for IGBC Green Interiors documentation collection, review, and submission packaging. It is built around the real CCIL documentation tracker and the IGBC Green Interiors v2 reference guide supplied for this build.
The current UI is intentionally dense and operational rather than marketing-led:
- A slim dashboard header with KPI strip and inline project creation
- Full-width project rows with quick workspace and submission actions
- A three-column project workspace with category rail, dense credit table, and right-side detail panel
- Plain consultant-facing copy in demo states instead of exposing internal implementation terms
Fast onboarding
Harita now ships as a public npm package and a local app copy:
- Package name:
harita-studio - CLI command:
harita
Recommended install flow for consultants:
npm install -g harita-studioThen run harita from inside the Harita folder they received.
You can also scaffold a fresh folder directly:
npx harita-studioWhat the launcher does:
- Runs
npm installif needed - Prompts for one Gemini API key
- Creates
.env.localwith demo-safe defaults - Shows a first-time tour of what Harita can do
- Lets the user choose what they want to do: review, upload, or prepare the final package
- Launches the app with local sample data
- If run in an empty folder, scaffolds the Harita workspace there first
Install does not auto-open a TUI. The launcher starts after you run harita or npx harita-studio, so npm install stays non-interactive.
Publish to npm
To publish this package to the public npm registry:
npm login
npm publish --access publicThe package is now unscoped, so it can be published directly with npm publish.
For repeat releases from the repo checkout, you can also run:
npm run publish:publicIf you want a private registry instead, add a project .npmrc with the registry URL you want to use and publish against that registry.
For a local repo checkout, the same launcher is also available via:
npm run onboardStack
- Next.js 14 App Router
- Supabase Auth, Postgres, Storage, Realtime-compatible notifications
- Tailwind CSS + shadcn-style component structure
- XLSX export via
xlsx - ZIP submission pack via
jszip - PDF summary via
pdf-lib - Guided onboarding via a Node-based CLI
- Playwright smoke verification
Setup
The default mode is local/demo, so consultants do not need to create a Supabase project.
- Install the package globally or run the local launcher
- Enter a Gemini API key
- Open the app in the generated workspace
If you are developing the app itself, you can still run npm install and npm run dev directly.
Guided commands
haritaRuns the one-key onboarding launcher and guided tour.npm run onboardRuns the same launcher from the repo checkout.npm run dev:guidedStarts the app, waits for/login, opens the browser automatically, and can run the smoke test.npm run smokeRuns the prebuilt Playwright smoke test.
Database notes
- The seeded IGBC catalog lives in data/igbc-green-interiors-v2.json
- The credit matrix is derived from the CCIL tracker workbook you provided, not hand-entered
- The tracker source produces 47 seeded rows including mandatory requirements, which differs from the original 42-credit note in the prompt
Environment defaults
The onboarding wizard now writes the following automatically:
GEMINI_API_KEYAI_PROVIDER=geminiAI_MODEL=gemini-2.5-flashAPP_MODE=demo- demo-safe defaults for the remaining variables
The app still falls back to demo mode if Supabase credentials are not present.
Seed command
npm run seed -- "HaritaDocs Seed Project" Gold <owner-user-id>
- Creates a test project
- Seeds the full credit catalog
- Optionally adds one owner membership if a Supabase
auth.users.idis provided
Product surfaces
/loginEmail/password sign-in for the live workspace, with a seeded demo fallback when the live database is not connected./dashboardDense consultant dashboard with KPI strip, inline project creation, and compact project rows./projects/[id]Three-column workspace with category navigation, dense credit table, status/doc requirement chips, upload/review actions, and remarks./projects/[id]/submissionCompleted-credit submission view with approved document list and ZIP export gating based on mandatory credits.
Exports
/api/projects/[id]/trackerCCIL-style XLSX export./api/projects/[id]/summaryPDF summary export./api/projects/[id]/submission-packZIP export of approved documents.
