Skip to content
プロジェクト

概要

Vite Plugin for Litestar

Web・アプリ開発

この数値の測り方

できること

  • Single-Port AnyIO Dev Proxy - Streams Vite HTTP assets and upgrades /vite-hmr WebSockets directly through your Litestar port (:8000) with zero CORS setup
  • Four Operating Modes - First-class support for spa, hybrid (Inertia.js), template (Jinja2 + <litestar-island>), and framework (Astro, Nuxt, SvelteKit)
  • Inertia.js Protocol & SSR - Native defer(), merge(), once(), shared session props, Laravel Precognition validation, and fault-tolerant SSR (RunnableDevEnvironment in dev, StdioIPCTransport worker in prod)
  • End-to-End Type Generation - Deterministic SHA-256 openapi.json, routes.json, and asyncapi.json artifacts driving @hey-api/openapi-ts, ziggy-style route() / wsRoute(), and createTypedChannels()

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Litestar Vite

First-class Vite 7+, Inertia.js, Island Fragments, and End-to-End Type Generation for Litestar

PyPI npm Python License Docs

Documentation · Getting Started · Inertia.js · API Reference · Discord


Litestar Vite connects Litestar (Python ASGI) to the Vite 7+ frontend toolchain through a single-port AnyIO streaming proxy, deterministic .litestar.json runtime bridge, Inertia.js protocol support, server-rendered UI islands, and automatic OpenAPI + AsyncAPI TypeScript generation.

Install

uv add litestar-vite
npm install -D litestar-vite-plugin

Or with pip:

pip install litestar-vite

Quickstart

from litestar import Litestar
from litestar_vite import VitePlugin

app = Litestar(plugins=[VitePlugin()])

Scaffold a frontend template, install dependencies, and run both Litestar and Vite on a single port:

litestar assets init --template react-inertia
litestar assets install
litestar run --reload

Capabilities

Capability What it provides
Single-Port AnyIO Dev Proxy Streams Vite HTTP assets and upgrades /vite-hmr WebSockets directly through your Litestar port (:8000) with zero CORS setup
Four Operating Modes First-class support for spa, hybrid (Inertia.js), template (Jinja2 + <litestar-island>), and framework (Astro, Nuxt, SvelteKit)
Inertia.js Protocol & SSR Native defer(), merge(), once(), shared session props, Laravel Precognition validation, and fault-tolerant SSR (RunnableDevEnvironment in dev, StdioIPCTransport worker in prod)
End-to-End Type Generation Deterministic SHA-256 openapi.json, routes.json, and asyncapi.json artifacts driving @hey-api/openapi-ts, ziggy-style route() / wsRoute(), and createTypedChannels()
Islands & HTMX Fragments Server-rendered UI components via ComponentResponse, Jinja vite_fragment(), and <litestar-island> hydration with automatic CSS chunk injection
Production & Cloud Deployment Manifest-resolved hashed bundles, immutable caching, subresource integrity (integrity), and fsspec CDN deployment (litestar assets deploy)

Documentation

Contributing & License

Contributions are welcome — see the Contributing & Development Guide for local workspace setup, test commands, and architecture guidelines. Distributed under the MIT License.

関連プロジェクトを探す

読み込み中…