Fastify Streaming SSR React Plugin for integration with taujs [ τjs ] template
MIT License
npm install @taujs/server
yarn add @taujs/server
pnpm add @taujs/server
Fastify Plugin for integration with taujs [ τjs ] template https://github.com/aoede3/taujs
TypeScript / ESM-only focus
Integrated ViteDevServer HMR + Vite Runtime API run alongside tsx (TS eXecute) providing fast responsive dev reload times for both backend / frontend
Fastify https://fastify.dev/
React https://reactjs.org/
tsx https://tsx.is/
ViteDevServer HMR https://vitejs.dev/guide/ssr#setting-up-the-dev-server
Vite Runtime API https://vitejs.dev/guide/api-vite-runtime
ESBuild https://esbuild.github.io/
Rollup https://rollupjs.org/
npm install --legacy-peer-deps
https://github.com/aoede3/taujs/blob/main/src/server/index.ts
Not utilising taujs [ τjs ] template? Add in your own alias
object for your own particular setup e.g. alias: { object }
https://github.com/aoede3/taujs/blob/main/src/client/entry-client.tsx
Extended pipe object with callbacks to @taujs/server enabling additional manipulation of HEAD content from client code
https://github.com/aoede3/taujs/blob/main/src/client/entry-server.tsx
https://github.com/aoede3/taujs/blob/main/src/client/index.html
https://github.com/aoede3/taujs/blob/main/src/client/client.d.ts
Integral to τjs is its internal routing:
In ensuring a particular 'route' receives data for hydration there are two options:
In supporting Option 2. there is a registry of services. More detail in 'Service Registry'.
Each routes 'path' is a simple URL regex as per below examples.
https://github.com/aoede3/taujs/blob/main/src/shared/routes/Routes.ts
In supporting internal calls via τjs a registry of available services and methods provides the linkage to your own architectural setup and developmental patterns
https://github.com/aoede3/taujs/blob/main/src/server/services/ServiceRegistry.ts
https://github.com/aoede3/taujs/blob/main/src/server/services/ServiceExample.ts