On this page
spatial-ui
Prev: carets | Up: projects | Next: desktop-interface
Rel: wispsy, Frameworks, compose-application
Ref: wispsy on GitHub
Tags: #public #wispsy #project #frameworks #tier/standard
Role
Python 3.14+ spatial UI engine with square logical grid units (Grid, at, below, right_of), Python 3.14 t-string html() templates, Component/State sessions, native ASGIApp, typed forms, and queryable tables—with zero runtime dependencies.
Install
python -m pip install spatial-ui==0.1.1
Quickstart
from spatial_ui import App, Component, State, html
class Counter(Component):
count = State(0)
def increment(self):
self.count += 1
def render(self):
return html(t"<section><p>Actions: {self.count}</p><button type='button' on_click={self.increment}>Add</button></section>")
App(Counter, title="My workspace").run()
# Try the built-in interactive dashboard:
spatial-ui demo
When to Reach for It
- Building responsive grid-addressed web workspaces directly from Python 3.14 t-string templates with zero JS build tooling.
- Reach for carets when building interactive terminal applications.
Gotchas & Pitfalls
- Python 3.14 t-strings required: Uses Python 3.14 template strings (
t"...") for safehtml()rendering—will not run on Python 3.13 or earlier. - Square logical grid units: Layout helpers (
Grid,at,below,right_of) operate on logical grid cells rather than arbitrary CSS pixel coordinates—avoid fighting the grid with raw inline pixel offsets. - Browser vs. terminal boundary:
spatial-uiserves web workspaces overASGIApp; use carets for POSIX terminal interfaces.
Pairs With
- compose-application — Wires
spatial-uiforms and tables toexpose-apiandbackpack-store.
Metadata
type: project-card
slug: spatial-ui
org: wispsy
repo: wispsy/spatial-ui
package: spatial-ui
version: 0.1.1
requires_python: ">=3.14"
layer: frameworks
topic: wispsy-framework
status: active
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/carets Linked here; links to this page; shared tags: #frameworks, #project, #tier, #wispsy
- wiki/projects/desktop-interface Linked here; links to this page; shared tags: #frameworks, #project, #tier, #wispsy
- wiki/projects/compose-application Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/stack/frameworks Linked here; links to this page; shared tags: #frameworks, #tier, #wispsy
- wiki/orgs/wispsy Linked here; links to this page; shared tags: #tier, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/choosing links to this page; shared tags: #tier, #wispsy
- wiki/compatibility links to this page; shared tags: #tier, #wispsy
- wiki/families links to this page; shared tags: #tier, #wispsy
- tuts/third_party/python3/wispsy links to this page; shared tags: #tier