#software-engineering
## Hwy
[hwy-js/hwy: Hwy is a lightweight, flexible, and powerful alternative to NextJS, based on HTMX instead of React. (github.com)](https://github.com/hwy-js/hwy/tree/main)
### Features
- Server-rendered JSX / TSX
- Nested, file-based routing
- Remix-style actions and parallel loaders
- Async page components
- Rich Hono middleware ecosystem
- 100% type-safe
- Server built on Hono
- Client built on HTMX
- Built-in critical CSS inlining
- Live browser refresh during development
### Simple usage
```tsx
// src/pages/user/$user_id.page.tsx
import type { DataFunctionArgs, PageProps } from "hwy";
import { UserProfile, getUser } from "./somewhere.js";
export async function loader({ params }: DataFunctionArgs) {
return await getUser(params.user_id);
}
export default async function ({ loaderData }: PageProps<typeof loader>) {
return <UserProfile user={loaderData} />;
}
```