Impala is a bare-bones static-site generator, powered by Vite. It currently supports just React. Features include:
- SSG-only, MPA-only. It's iMPAla, not iSPAla.
- File-based routing, with a syntax like Astro and Solid Start
- Static and dynamic routes
- Astro and Next.js-inspired data fetching in
getStaticPaths
, andgetRouteData
- Route-level code-splitting
- Optionally JS-free
See the demo site for now. Dev mode is not implemented yet.
Mainly to learn, but also because there's no statically-rendered create-react-app equivalent. I often want a simple React site with static rendering but no SSR. Astro is awesome, but I want something that's just React.
Dear god no. Don't use it at all yet. It's not even alpha.
Deliberately not. If you want SSR, use Astro.
Deliberately not. If you want client-side navigation, use one of the many other SPA frameworks.
I started with React because it's the one most obviously lacking a basic SSG, but the React-specific code is in a separate package and I want to add support for other frameworks.
Copyright © 2023 Matt Kane. Licenced under the MIT licence.
Impala logo created by Freepik - Flaticon