How termcavetw/openlawtw works
openlawtw is a Taiwanese building-regulations lookup and reading workspace, not a legal-advice system. The main user flow is to search regulations or source documents, open a result in the law reader, and inspect article text, citations, rulings, and official sources. The workspace also supports case evidence, sharing, version history, coverage exploration, an interactive law universe, and optional offline data. The README documents capabilities beyond the sampled excerpts; those links are cited to it, while implementation details are limited to indexed references and shown source.
Main entry points: page.tsx Workspace Shell · law-reader.tsx Law Reader · data-client.ts Data Client · rulings.tsx Rulings Browser
Components 21
Workspace
- Workspace Shell
app/page.tsx - Casebook
components/casebook.tsx - Reference Sharing
components/reference-share.tsx
Search and Sources
- Search Results
components/search-results.tsx - Search Engine
lib/search.ts
Legal Reading
- Law Navigation
components/law-navigation.tsx - Law Portal
components/law-portal.tsx - Law Reader
components/law-reader.tsx - Inline Citation Preview
components/legal-inline-preview.tsx - Document Reading
components/document-reader.tsx - Article Supplements
components/article-supplements.tsx
Research Tools
- Rulings Browser
components/rulings.tsx - Ruling Preview
components/ruling-preview.tsx - Coverage Checklist
components/coverage-checklist.tsx - Law Universe
components/law-universe.tsx - Version Evidence
components/version-evidence.tsx
Data Services
- Data Client
lib/data-client.ts - Law Catalog
lib/catalog.ts - Legal Data Model
lib/law-types.ts - Offline Packs
components/offline-packs.tsx
Other components
- User
Connections 27
- User → Workspace Shell: opens
README.md - Workspace Shell → Casebook: hosts
app/page.tsx - Workspace Shell → Reference Sharing: hosts
app/page.tsx - Workspace Shell → Search Results: shows
app/page.tsx - Search Results → Law Navigation: selects result
components/search-results.tsx - Workspace Shell → Search Engine: searches
README.md - Search Engine → Data Client: uses candidates
lib/data-client.ts - Data Client → Legal Data Model: loads records
lib/data-client.ts - Law Catalog → Legal Data Model: types records
lib/catalog.ts - Workspace Shell → Law Portal: opens laws
app/page.tsx - Law Portal → Law Catalog: reads coverage
components/law-portal.tsx - Law Reader → Data Client: loads law data
components/law-reader.tsx - Law Reader → Document Reading: renders documents
components/law-reader.tsx - Law Reader → Article Supplements: loads supplements
components/law-reader.tsx - Law Reader → Inline Citation Preview: shows citations
- Workspace Shell → Law Reader: reads laws
README.md - Workspace Shell → Rulings Browser: opens rulings
README.md - Rulings Browser → Data Client: loads ruling data
components/rulings.tsx - Rulings Browser → Casebook: saves evidence
components/rulings.tsx - Rulings Browser → Reference Sharing: shares references
components/rulings.tsx - Ruling Preview → Data Client: loads preview
components/ruling-preview.tsx - Workspace Shell → Coverage Checklist: explores coverage
README.md - Coverage Checklist → Law Catalog: checks regions
components/coverage-checklist.tsx - Workspace Shell → Law Universe: explores relations
app/page.tsx - Law Universe → Data Client: loads law data
components/law-universe.tsx - Law Reader → Version Evidence: shows history
components/law-reader.tsx - Workspace Shell → Offline Packs: manages downloads
README.md