How unseenap/land_dizitization works
This is a Next.js land-record digitization workspace: departmental users upload and preserve source documents, configure schemas, process documents through an OCR boundary, validate extracted fields, and have officers correct or approve revisions before records are searched, mapped, exported, or evaluated. The API routes dispatch to server modules, which enforce business rules and use PostgreSQL and private file storage. The README documents broader workflow and integration capabilities than the sampled source shows; those branches are included with only documented relationships, and live OCR and government exchange are marked as optional integrations.
Main entry points: (workspace) Workspace UI · schema.ts PostgreSQL · server/service.ts Land records service · server/service.ts Document service
Components 26
Workspace and access
- Workspace UI
src/app/(workspace) - Identity API
src/app/api/v1/auth - Identity service
src/modules/identity/server/service.ts
Document workflow
- Document workspace
src/modules/documents/ui - Documents API
src/app/api/v1/documents - Document service
src/modules/documents/server/service.ts - OCR processing
src/modules/processing/server/service.ts - Processing worker
workers/processing-worker.ts - Validation service
src/modules/validation/server/service.ts - Officer verification
src/modules/verification/server/service.ts
Records and oversight
- Records and search API
src/app/api/v1/records - Land records service
src/modules/land-records/server/service.ts - Duplicate review
src/modules/duplicates/server/service.ts - GIS parcel links
src/modules/gis/server/service.ts - Feedback evaluation
src/modules/feedback/server/service.ts - Workflow dashboard
src/modules/dashboard/server/service.ts
Administration and exchange
- Admin APIs
src/app/api/v1 - Document schemas
src/modules/document-types/server/service.ts - Administrative hierarchy
src/modules/master-data/server/service.ts - Integration service
src/modules/integrations/server/service.ts - Integration worker
workers/integration-worker.ts
Application runtime
- PostgreSQL
database/schema.ts - Private file storage
src/server/storage.ts
Other components
- Departmental users
- Separate OCR API
- Government systems
Connections 33
- Departmental users → Workspace UI: use
- Workspace UI → Identity API: authenticate
- Identity API → Identity service: dispatch
- Workspace UI → Documents API: request documents
- Documents API → Document service: dispatch
- Document workspace → Documents API: upload and review
- Document service → Private file storage: store source files
- Document service → PostgreSQL: persist metadata
- Document service → OCR processing: submit processing
- Processing worker → OCR processing: claim jobs
- Processing worker → Separate OCR API: request recognition
- Separate OCR API → Processing worker: return results
- OCR processing → Validation service: validate extracted fields
- Validation service → Duplicate review: check candidates
- Validation service → Officer verification: send for review
- Officer verification → Land records service: approve revision
- Workspace UI → Records and search API: search records
- Records and search API → Land records service: dispatch
- Land records service → PostgreSQL: read and write records
- Workspace UI → Admin APIs: manage configuration
- Admin APIs → Document schemas: dispatch schema actions
- Admin APIs → Administrative hierarchy: dispatch area actions
- Workspace UI → Workflow dashboard: request dashboard
- Workflow dashboard → PostgreSQL: read workflow data
- Land records service → GIS parcel links: support parcel links
- Land records service → Feedback evaluation: provide approved records
- Land records service → Integration service: provide approved versions
- Integration worker → Integration service: run exports
- Integration worker → Government systems: exchange records
- Identity service → PostgreSQL: read and write access data
- Document schemas → PostgreSQL: persist schema versions
- Administrative hierarchy → PostgreSQL: persist hierarchy
- Integration service → PostgreSQL: persist runs