One-Directional Relations
The single most important Lesan lesson ZiWound demonstrates โ across all 13 models โ is that relations are defined one-directional and Lesan maintains the reverse side automatically. You never store the same reference twice by hand.
The Authentication Chain
ZiWound's auth is a textbook example of Lesan's request lifecycle: setTokens โ setUser โ grantAccess. Every protected act runs a preAct chain that restores the caller's identity into the request context and checks their role. This page dissects the chain. See the Request Lifecycle docs for the framework-level mechanics.
Localization
ZiWound supports 9 languages (Persian, English, Arabic, Chinese, Portuguese, Spanish, Dutch, Turkish, Russian) and implements localization two different ways. Which one you choose depends on whether a document is inherently multi-language or submitted in one language.
Search & Indexes
ZiWound needs real search โ full-text over users/blog posts and geospatial over reports. It gets both directly from MongoDB through the createIndex option on newModel and hand-created indexes. This page shows how, with the framework mechanics in the Aggregation & Filtering docs.
Geospatial Queries
ZiWound's interactive map is powered by MongoDB geospatial queries over the report model's GeoJSON point field. This page is a focused look at the geo side โ it builds directly on the Report model and the Search & Indexes pages.
File Uploads
ZiWound accepts images, videos, and documents through multipart uploads routed into a static directory and served back under /uploads. This page shows the full round trip. The framework side is covered in Server and Body Parsing.
Act Structure
ZiWound has 98 acts across 13 domains, and they all follow the same three-file structure. This consistency is what makes 98 acts maintainable โ if you've read one act folder, you can read them all. This page is the Rosetta Stone.