Zuby.js is a simple framework for building JS apps that combines the best of the SPA and MPA worlds. The framework is designed to be simple and easy to use, based on Vite and supports both Preact and React.
You can set up new Zuby.js app easily with Zuby CLI wizard. Just run the following command and follow the instructions:
npx zuby init
- File-based routing (with similar syntax to Next.js)
- Build-time HTML pre-rendering
- Automatic for static paths
- Manual for dynamic paths
- Code splitting and lazy loading of pages
- Client-side navigation
- Component rehydration
- Fast development server
- Built-in i18n localization support
- Preloading of pages and assets
- Static and server outputs with support for SSG, SSR, ISG and ISR render modes
And many more! Explore the Zuby.js documentation to see all the features and how to use them. Please note that Zuby.js is still in early development, so some features may not work properly.
Zuby.js integrates with JSX libraries through the JsxProvider
interface.
Following integrations are available:
- @zubyjs/preact - Preact integration for Zuby.js
- @zubyjs/react - React integration for Zuby.js
Zuby.js supports plugins to extend its functionality.
You can find official plugins in the @zubyjs
namespace on npm.
See the complete ZubyPlugin API to learn how to create your own plugins.
Zuby.js is inspired by Astro and Next.js to offer familiarity and a quick learning curve for developers but still do things differently. You should definitely explore these frameworks too, they are awesome! Maybe you'll find one of them more suitable for your needs.
- Node.js: 18
- npm: 9
Zuby.js is free software released under the MIT license.