{"id":23972,"library":"litestar-vite","title":"Litestar Vite","description":"Vite plugin for Litestar that integrates Vite's frontend build tool with the Litestar ASGI framework. Current version 0.22.1, supports Python >=3.10, and is actively maintained with frequent releases.","status":"active","version":"0.22.1","language":"python","source_language":"en","source_url":"https://github.com/litestar-org/litestar-vite","tags":["litestar","vite","plugin","frontend","integration","inertia","ssr"],"install":[{"cmd":"pip install litestar-vite","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework dependency; litestar-vite requires Litestar to function.","package":"litestar","optional":false},{"reason":"Vite is a Node.js tool; Node.js must be installed on the system.","package":"nodejs","optional":true}],"imports":[{"wrong":"from litestar_vite import VitePlugin","symbol":"VitePlugin","correct":"from litestar_vite import VitePlugin"}],"quickstart":{"code":"from litestar import Litestar\nfrom litestar_vite import VitePlugin, ViteConfig\n\nconfig = ViteConfig(\n    bundle_dir='frontend/dist',\n    resource_dir='frontend/public',\n    hot_file='frontend/hot',\n)\n\napp = Litestar(plugins=[VitePlugin(config)])\n# Run with: litestar run\n","lang":"python","description":"Basic setup: configure Vite paths and register the plugin on the Litestar app."},"warnings":[{"fix":"Upgrade your frontend project to Vite >=6. See the migration guide.","message":"Version 0.20.0 dropped support for Vite 5. Vite 6+ (including 7 and 8) is required.","severity":"breaking","affected_versions":">=0.20.0"},{"fix":"Install `litestar-inertia` and update your imports from `litestar_vite.inertia` to `litestar_inertia`.","message":"The `inertia` feature was removed in v0.19.0. Use the separate `litestar-inertia` package instead.","severity":"deprecated","affected_versions":">=0.19.0"},{"fix":"Ensure your Vite dev server is running before starting Litestar, or set `hot_file=None` to disable in production.","message":"The `hot_file` parameter defaults to 'hot' but must point to a file that exists during development (created by Vite). Missing this file causes startup errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Align the CLI argument with your ViteConfig settings, e.g., `litestar assets init --frontend-dir frontend`.","message":"If you use `--frontend-dir` in CLI commands, ensure it matches the `resource_dir` or `bundle_dir` in config. Mismatches cause file-not-found errors.","severity":"gotcha","affected_versions":">=0.18.0"}],"env_vars":null,"search_vec":"'0.22.1':21 '3.10':24 'activ':27 'asgi':17 'build':12 'current':19 'framework':18 'frequent':30 'frontend':11,35 'inertia':37 'integr':8,36 'litestar':1,6,16,32 'maintain':28 'plugin':4,34 'python':23 'releas':31 'ssr':38 'support':22 'tool':13 'version':20 'vite':2,3,9,33","created_at":"2026-05-01T08:10:36.285380+00:00","updated_at":"2026-05-01T08:10:36.285380+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp7a1i39h9/venv/lib/python3.12/site-packages/litestar_vite/__init__.py\", line 32, in <module>\n    from litestar_vite import inertia\n  File \"/tmp/tmp7a1i39h9/venv/lib/python3.12/site-packages/litestar_vite/inertia"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.24.1","cli_name":"litestar","cli_version":"","type":"library","homepage":"https://litestar-org.github.io/litestar-vite/latest/","github":"https://github.com/litestar-org/litestar-vite","docs":"https://litestar-org.github.io/litestar-vite/latest/","changelog":"https://litestar-org.github.io/litestar-vite/latest/changelog","pypi":"https://pypi.org/project/litestar-vite/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}