Skip to content

feat: add [server] extra and localhost web UI (tablassert serve) - #303

Open
ArdaTkn wants to merge 1 commit into
SkyeAv:mainfrom
ArdaTkn:feat/server-ui
Open

ArdaTkn wants to merge 1 commit into
SkyeAv:mainfrom
ArdaTkn:feat/server-ui

Conversation

@ArdaTkn

@ArdaTkn ArdaTkn commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Closes #261.

Summary

  • Add optional server extra (fastapi>=0.115.0, uvicorn>=0.34.0) in pyproject.toml, regenerate uv.lock, and register server in EXTRA_PACKAGES / FEATURES (src/tablassert/extras.py).
  • Add src/tablassert/server.py implementing a localhost-only Web UI (GET /), inline Pydantic validation (POST /api/validate), plain YAML generation (tables/table.yaml, graph.yaml), and streaming build-kg execution (POST /api/build).
  • Add @APP.command(name="serve") in src/tablassert/cli.py with extras.require("server") preflight and strict loopback host enforcement (127.0.0.1, localhost, ::1).
  • Update docs/cli.md, docs/installation.md, README.md, CONTRIBUTING.md, llms.txt, Makefile, .github/workflows/ci.yml, .github/workflows/security.yml, scripts/vulture_whitelist.py, tests/test_docs_cli_coverage.py, tests/test_extras.py, and CHANGELOG.md.
  • Add tests/test_server.py verifying missing-extra preflight, non-localhost bind rejection, validation error reporting, and round-trip tablassert validate --schema graph pass on generated YAML.

Local gate

  • uv lock --check: pass
  • scripts/check_changelog.py --base upstream/main: PASS
  • ruff check . / ruff format --check: clean
  • pyright: 0 errors
  • vulture / deptry .: clean
  • mkdocs build --strict: clean
  • pytest tests/test_server.py tests/test_extras.py tests/test_docs_cli_coverage.py tests/test_docs_source_of_truth.py tests/test_docs_style.py: 232 passed (1 skipped when httpx absent)

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0189e99-b070-4064-bfb4-1745303e9e12
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@SkyeAv

SkyeAv commented Nov 19, 2026

Copy link
Copy Markdown
Owner

@ArdaTkn, thanks again for #303! You've already gone well beyond what I expected across the issue tracker. I'd been planning to revisit this once I had a clearer idea of the architecture, and your FastAPI backend is a great starting point.

My ideal end state is a SolidJS frontend built into static assets with Vite, using Bun and Tailwind, backed by FastAPI with Pydantic request/response models, plus comprehensive CI for the full stack. That's a much larger effort, so there's absolutely no obligation, but if you'd be interested in taking it on, I'd be happy to discuss the design and break it into manageable PRs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a server extra with a localhost web UI for YAML-free graph building

2 participants