Metadata-Version: 2.4
Name: nexy
Version: 2.1.0
Summary: The Modern Fullstack Python Meta-Framework: Build high-performance web apps .
License-File: LICENSE
Keywords: astro-alternative,dx,fastapi,frontend-agnostic,fullstack,jinja2,meta-framework,modern-web,nextjs-alternative,python,python-ssr,react,solid,ssr,svelte,vite,vite-python,vue,web-development,web-framework
Requires-Python: >=3.12
Requires-Dist: fastapi>=0.128.0
Requires-Dist: jinja2>=3.1.6
Requires-Dist: markdown>=3.10.1
Requires-Dist: pygments>=2.20.0
Requires-Dist: pymdown-extensions>=10.21.2
Requires-Dist: questionary>=2.1.1
Requires-Dist: scalar-fastapi>=1.8.2
Requires-Dist: typer>=0.21.1
Requires-Dist: uvicorn[standard]>=0.40.0
Requires-Dist: watchdog>=6.0.0
Description-Content-Type: text/markdown

# Nexy

Nexy is a full-stack Python meta-framework that bridges FastAPI backends with Vite-powered frontends (React, Vue, Svelte, Solid, Preact). Sub-second startup, sub-100ms HMR.

## Quick start

```bash
uvx nexy new
cd my-project
nexy dev
```

No pip install needed. `uvx` runs Nexy directly — your project gets its own isolated environment.

## The .nexy format

One file. Python logic, Jinja2 template, optional interactive islands.

```html
---
title : prop[str] = "Dashboard"
from "@/components/Chart.tsx" import Chart
---

<h1>{{ title }}</h1>
<Chart data="{{ api_data }}" />
```

- **`---` blocks**: Python — props, imports, logic
- **Body**: Jinja2 — server-rendered HTML
- **`<script>`**: JavaScript/TypeScript — client interactivity via Vite

## Routing

| Pattern | URL |
|---------|-----|
| `index.nexy` | `/` |
| `about.mdx` | `/about` |
| `blog/[slug].nexy` | `/blog/:slug` |
| `api/users.py` | `/api/users` |

File-based for small projects, module-based (NestJS-style) for enterprise.

## Supported frontends

React, Vue, Svelte, Solid, Preact — or none for vanilla SSR.

## CLI

| Command | What it does |
|---------|-------------|
| `nexy new` | Scaffold a project |
| `nexy dev` | Dev server + HMR |
| `nexy build` | Production build (SSR + SSG) |
| `nexy start` | Production server |

## License

MIT
