Repository navigation
Releases
Geon v0.1
Geon v1.0.0 — Initial Release
Geon is a lightweight geometric DSL that renders precise 2D constructions directly into SVG — fully in the browser, with zero dependencies.
This release marks the first stable version of the Geon runtime.
✨ What is Geon?
Geon lets you describe geometric structures using a simple, readable language:
scene 600x400
grid x -5 to 5 step 1 y -5 to 5 step 1
point A (0,0)
point B (4,0)
point C (4,3)
segment AB from A to B
circle C1 center A r 2
polygon T points A B CAnd instantly renders them as high-quality SVG.
🔑 Key Features
-
Declarative Geometry DSL
- Points, segments, circles, polygons
- Clean, natural syntax
-
Anchor-Based System
- Reference shapes via anchors (
C.center,T.p1) - Relative positioning with vector offsets
- Reference shapes via anchors (
-
Deterministic Rendering
- No layout guessing
- No hidden heuristics
-
Built-in Cartesian Grid
- Configurable bounds and step size
- Axis + tick rendering
-
Labeling System
- Attach labels to any shape
- Automatic anchor placement
-
Zero Dependencies
- Single file:
geon.js - Works directly in browser
- Single file:
⚙️ Usage
Include the runtime:
<script src="geon.js"></script>Render a scene:
Geon.render(sourceCode, containerElement);📦 Included in this Release
geon.js— complete runtime (parser + resolver + renderer)
🧠 Design Philosophy
Geon is built around three principles:
- Simplicity over syntax noise
- Geometry as a first-class abstraction
- Deterministic, inspectable output
It is inspired by tools like TikZ and Manim, but designed for instant, browser-native rendering.
🚧 Current Scope (v1)
This version focuses on:
- Static 2D geometry
- Core shape primitives
- Anchor-based positioning
Not included (yet):
- Function plotting
- Animation
- Constraints / symbolic solving
🧪 Stability
Geon v1.0.0 is stable for:
- Educational use
- Visualization
- Prototyping geometric ideas
The DSL and runtime may evolve in future versions.
📌 Next Steps
Planned directions:
- Function / curve plotting
- Intersection & constraint system
- Improved editor tooling
- Extended shape primitives
💡 Feedback
Issues, ideas, and contributions are welcome.