About
MansionDB is a lightweight, modern catalog for mansions, castles, and estates.
It stays database‑free by loading data/mansions.json at runtime and rendering search, filters, timelines, and galleries in the browser.
How to add mansions
- Open the Admin editor.
- Click New, fill out the form, then Save & Publish.
- Your changes go live immediately (it writes
data/mansions.jsonon the server).
Tip: If publishing fails on your host, click Download mansions.json and upload it manually to data/mansions.json.
Tip: The Admin editor can also Import an existing mansions.json so you can keep editing over time.
Minimal record example
You can keep entries short at first and expand them later with timelines, sources, and richer galleries.
{
"id": "example-manor",
"name": "Example Manor",
"type": "mansion",
"status": "standing",
"location": { "city": "", "region": "", "country": "United States", "address": "", "geo": { "lat": 0, "lng": 0 } },
"dates": { "built_start": 1890, "built_end": 1892, "demolished": null, "renovated": [] },
"architects": [],
"magnates": [],
"style": [],
"current_use": "",
"summary": "",
"history": { "overview": "", "architecture": "", "ownership": "", "later_years": "" },
"timeline": [],
"sources": [],
"images": [],
"tags": []
}
Images
- Each image is stored as a URL in
images(you can use relative paths or full URLs). - Always add an
altdescription and credit/rights info when you have it. - For best performance, prefer modern formats (WebP/AVIF) and reasonable file sizes.
Backups
Your entire database is a single file: data/mansions.json.
Keep copies (e.g., date‑stamped downloads) so you can roll back if needed.