All Projects → Aslemammad → vitext

Aslemammad / vitext

Licence: MIT license
The Next.js like React framework for better User & Developer experience!

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to vitext

tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (-85.9%)
Mutual labels:  preact, esm, vite, esbuild
electron-vue-next
A starter template for using vue-next with the electron.
Stars: ✭ 189 (-49.73%)
Mutual labels:  rollup, vite, esbuild
React Storefront
Build and deploy e-commerce progressive web apps (PWAs) in record time.
Stars: ✭ 275 (-26.86%)
Mutual labels:  preact, server-side-rendering
React Modern Library Boilerplate
Boilerplate for publishing modern React modules with Rollup
Stars: ✭ 285 (-24.2%)
Mutual labels:  preact, rollup
electron-template
Electron multiwindow mode template
Stars: ✭ 65 (-82.71%)
Mutual labels:  rollup, vite
revite
Revolt client built with Preact.
Stars: ✭ 606 (+61.17%)
Mutual labels:  preact, vite
macos-preact
macos-preact.now.sh
Stars: ✭ 1,019 (+171.01%)
Mutual labels:  preact, vite
Wmr
👩‍🚀 The tiny all-in-one development tool for modern web apps.
Stars: ✭ 4,372 (+1062.77%)
Mutual labels:  preact, rollup
unplugin-vue
✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup and Webpack.
Stars: ✭ 38 (-89.89%)
Mutual labels:  rollup, esbuild
Preact Pwa
Super fast progressive web app with small footprint & minimal dependancies
Stars: ✭ 507 (+34.84%)
Mutual labels:  preact, rollup
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+1111.17%)
Mutual labels:  preact, rollup
Preact Redux Typescript Rollup Starter
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
Stars: ✭ 24 (-93.62%)
Mutual labels:  preact, rollup
Workflow
一个工作流平台
Stars: ✭ 1,888 (+402.13%)
Mutual labels:  rollup, vite
personal-website
Personal website – made with Next.js, Preact, MDX, RMWC, & Vercel
Stars: ✭ 16 (-95.74%)
Mutual labels:  preact, ssg
unplugin
Unified plugin system for Vite, Rollup, Webpack, and more
Stars: ✭ 998 (+165.43%)
Mutual labels:  rollup, vite
React Storefront
React Storefront - PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, Apache-2.0 license. Join us as contributor ([email protected]).
Stars: ✭ 292 (-22.34%)
Mutual labels:  preact, server-side-rendering
Cloudflare Worker Preact Pwa
Cloudflare worker running a Preact Progressive Web App
Stars: ✭ 57 (-84.84%)
Mutual labels:  preact, server-side-rendering
vue-frag-plugin
Webpack/Rollup/Vite plugin to add multiple root-node support to Vue 2 SFCs
Stars: ✭ 37 (-90.16%)
Mutual labels:  rollup, vite
npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (-82.18%)
Mutual labels:  rollup, esm
Esri Loader
A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications
Stars: ✭ 400 (+6.38%)
Mutual labels:  preact, rollup

Vitext 🚀

Discord

The Next.js like React framework for better User & Developer experience

  • 💡 Instant Server Start
  • 💥 Suspense support
  • Next.js like API
  • 📦 Optimized Build
  • 💎 Build & Export on fly
  • 🚀 Lightning SSG/SSR
  • Fast HMR
  • 🔑 Vite & Rollup Compatible
npm install vitext

Vitext (Vite + Next) is a lightning fast SSG/SSR tool that lets you develop better and quicker front-end apps. It consists of these major parts:

💡 Instant Server Start

The development server uses native ES modules, So you're going to have your React app server-rendered and client rendered very fast, under a half a second for me.

💥 Suspense support

Vitext supports React Suspense & Lazy out of the box.

import { lazy, Suspense } from 'react';

const Component = lazy(() => import('../components/Component'));
const Loading = () => <p>Loading the Component</p>;

const App = () => {
  return (
    <Suspense fallback={<Loading />}>
	  <Component />
    </Suspense>
  );
};

Next.js like API

If you're coming from a Next.js background, everything will work the same way for you. Vitext has a similar API design to Next.js.

// pages/Page/[id].jsx
const Page = ({ id }) => {
  return <div>{id}</div>;
};

// build time + request time (SSG/SSR/ISR)
export function getProps({ req, res, query, params }) {
  // props for `Page` component
  return { props: { id: params.id } };
}

// build time (SSG)
export async function getPaths() {
  // an array of { params: ... }, which every `params` goes to `getProps`  
  return {
    paths: [{ id: 1 }],
  };
}

export default IndexPage;

getPaths & getProps are optional. If getPaths' running got done, then every paths item is going to be passed to a getProps function, And when the user requests for the specific page, they're going to receive the exported html (SSG). But if getPaths wasn't done or there's no exported html page for the user's request, then the getProps is going to get called with the request url's params (SSR).

📦 Optimized Build

Vitext uses Vite's building and bundling approach, So it bundles your code in a fast and optimized way.

💎 Build & Export on fly

You don't need to wait for HTML exports of your app because Vitext exports pages to HTML simultaneously while serving your app, So no next export.

🚀 Lightning SSR/SSG

ES modules, Fast compiles and Web workers empower the Vitext SSR/SSG strategy, so you'll have an astonishingly fast SSR/SSG.

Fast HMR

Vitext uses @vitejs/plugin-react-refresh under the hood, So you have a fast HMR right here.

🔑 Vite & Rollup Compatible

We can call Vitext a superset of Vite; It means that Vitext supports everything Vite supports with vitext.config.js.

// exact Vite's config API 
export default {
  plugins: [...],
  optimizeDeps: {...},
  ...
};

Examples

You can checkout packages/examples directory to see examples that have been implemented using vitext.

Contribution

We're in the early stages now, So we need your help on Vitext; please try things out, recommend new features, and issue stuff. You can also check out the issues to see if you can work on some.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].