A deterministic computational spatial reasoning system for early-stage architecture.
Launch HYWE (hywe.in) · Wiki & Research Reference · Spatial Dataset
HYWE is a computational design environment and experimental research project where structured intent transforms into spatial configurations through deterministic computation.
- HYWE Web App (
hywe.in) — Direct-manipulation spatial design environment.- HYWE Engine (
repo.hywe.in) — Open-source computational engine.- HYWE Wiki (
wiki.hywe.in) — Comprehensive research documentation, ontology, and specifications.- HYWE Spatial Dataset (
data.hywe.in) — Structured corpus of procedural design intent and deterministic configurations.
In traditional CAD and BIM environments, geometry is drawn manually while relationships remain implicit. In generative diffusion models, images are stochastically sampled without topological guarantees or spatial continuity.
HYWE inverts this paradigm:
- Relationships Before Geometry: Designers define programmatic hierarchies, room capacities, and flow dependencies. Spatial boundaries and layouts are calculated as emergent consequences of those relationships.
- Connectivity Over Adjacency: Connectivity is the declared architectural requirement in the program graph; adjacency emerges organically from topological packing, sequence operators, and boundary constraints.
- Deterministic Spatial Synthesis: No random seeds, no hallucinated geometry. For a fixed engine version, identical canonical inputs always resolve into the exact same spatial configuration.
Important
Operational Scope: HYWE is strictly an exploratory layout engine and spatial reasoning apparatus, not a detailed building modeling platform or construction lifecycle suite. It operates exclusively at early-stage architectural programming, zoning, and volumetric massing.
Step 1: Declare Intent Step 2: Choose Rules Step 3: Generate Step 4: Compare
Entrance (Level 0) Sequence Operators (24) Deterministic Planar Compactness: 0.82
├── Lobby Boundary Confinement & 3D Massing Layouts Graph Adjacency: 100%
│ ├── Exhibition (Public) ───► Keep-out Island Rules ───► Across All Canonical ───► Boundary Spill: 0%
│ └── Admin (Restricted) Growth Direction Permutations Export SVG / PDF / Data
└── Services
- Declare Intent: Construct an architectural hierarchy in the Interactive Node Tree or via compact syntax
(1/15/Lobby). - Define Constraints: Sketch site boundaries or internal courtyard/void islands in the Polygon Boundary Editor.
- Generate Configurations: The engine sweeps through 24 canonical sequence operators, computing bit-exact planar packings and 3D massings.
- Evaluate & Export: Inspect quantitative compactness, verified adjacency matrices, and export vector SVGs, multi-page PDF dossiers, or dataset records.
Hywe.mp4
Click any interface preview to view in full resolution.
HYWE deliberately maintains a two-layer vocabulary architecture (Platform Ontology), preventing low-level implementation mechanics from obscuring architectural thinking:
graph TD
subgraph "Architectural Domain Layer (Design-Facing)"
Intent[Programmatic Hierarchy & Flow]
Rules[Sequence Rules & Site Boundaries]
SpatialUnit[Spatial Program Units]
SpatialEnsemble[Resolved Spatial Ensemble]
AnalysisOut[Compactness & Circulation Metrics]
end
subgraph "Computational Engine Layer (Implementation-Facing)"
Lexel[Lexel: AST Grammar & Tokenizer]
Hexel[Hexel: Hygrid Coordinate Primitive]
Coxel[Coxel: Synchronously Growing Clusters]
Goxel[Goxel: Boundary & Island Clipping]
Xyxel[Xyxel: Planar Spatial Placement]
Nexel[Nexel: Hierarchical Space Nesting]
Zaxel[Zaxel: Multi-Level Volumetric Massing]
end
Intent --> Lexel
Rules --> Lexel
Lexel --> Hexel
Hexel --> Coxel
Coxel --> Goxel
Goxel --> Xyxel
Xyxel --> Nexel
Xyxel --> Zaxel
Nexel --> SpatialEnsemble
Zaxel --> SpatialEnsemble
SpatialEnsemble --> AnalysisOut
| Architectural Concept | Engine Component | Mathematical Transformation | Output |
|---|---|---|---|
| Program Intent | Lexel |
AST tokenization and parent-child hierarchy validation | Abstract Program Tree |
| Spatial Discretization | Hexel |
Coordinate quantization onto the integer Hygrid lattice | Integer Coordinate Triples |
| Spatial Clustering | Coxel |
Synchronous cluster growth and collision avoidance | Clustered Tile Envelopes |
| Site Confinement | Goxel |
Polygon clipping, site boundaries, and keep-out islands | Verified Boundary Contours |
| Planar Configuration | Xyxel |
Sequence-driven 2D placement and rotation sweeps | Planar Layout & Vector SVG |
| Hierarchical Nesting | Nexel |
Sub-space confinement within parent spatial footprints | Multi-level Nesting |
| Volumetric Stacking | Zaxel |
Vertical floor assignments and elevation extrusion | WebGPU 3D Mesh |
HYWE's formal guarantees are codified in the Canonical Conformance Specification:
-
Fixed Engine Version Invariant:
$$F(P, Q, L, O, I) \longrightarrow C$$ For any programmatic intent$P$ , sequence operator$Q$ , level$L$ , boundary$O$ , and islands$I$ , identical inputs evaluated on the same engine version yield the identical discrete configuration$C$ . -
Zero Hash Divergence: Across 720 empirical benchmark evaluations (72 canonical configurations
$\times$ 10 runs), the engine demonstrated 100.0% state validity and zero hash divergence. - Sub-Second Compilation Budget: Core compilation absorbs layout synthesis at ~1 s for 1,000 synthetic nodes under WebAssembly (.NET 10), strictly decoupled from browser DOM mutation and WebGPU rendering passes (Benchmarks).
- Emergent Circulation Hypothesis: Investigates whether navigational structure emerges directly from programmatic relations and lattice packing, rather than being imposed as a pre-modeled static corridor network.
HYWE provides an automated pipeline contributing to the open HYWE Spatial Configuration Dataset on Hugging Face:
- Bit-Exact Base34 Coordinate Compression: Integer coordinates are compressed into Base34 strings using a canonical 34-symbol alphabet (
0-9,A-H,J-N,P-Z), omittingIandOto prevent visual and OCR ambiguity. - Hynteract Provenance Gate: Submissions pass through the Hynteract ingestion service for grammar validation, profanity/link scanning, duplicate detection, and pre-flight cache readiness checks.
- Language: F# (functional-first, dependency-free core engine)
- Frontend: Bolero (Blazor WebAssembly with Elmish architecture)
- 3D Graphics: WebGPU (zero-dependency native shader pipeline)
- Persistence & Moderation: Serverless Node.js edge functions (Hynteract)
- HYWE Wiki (wiki.hywe.in):
- 01 — Understand: [Philosophy] · [Ontology] · [Guarantees]
- 02 — Use: [Getting Started] · [Interface Guide] · [Boundary Editor]
- 03 — Engine: [Canonical Conformance Spec] · [Hygrid] · [Formal Model]
- 04 — Research: [Benchmarks] · [Research Questions] · [Data Collection]
- Agent & LLM Reference (llms.txt): Machine-readable architectural guide.
Contributions to the HYWE engine and spatial research tools are welcome. Please refer to CONTRIBUTING.md for local setup instructions.
If you utilize HYWE or the HYWE Spatial Configuration Dataset in academic or computational design research, please cite:
@software{krum_hywe_2026,
author = {Vykrum},
title = {HYWE: Computational Spatial Design Environment},
year = {2026},
publisher = {GitHub},
url = {https://github.com/vykrum/Hywe}
}This project is open source and available under the MIT License.








