nprbst / remix-fastify

Fastify server request handler for Remix

Home Page:https://remix-fastify.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remix Fastify

Use Remix with Fastify

Installation

npm i @mcansh/remix-fastify
yarn add @mcansh/remix-fastify
pnpm i @mcansh/remix-fastify

Quick Start

  1. npx create-remix@latest --template https://github.com/mcansh/remix-fastify/tree/main/example --no-install
  2. opt out of installing dependencies due to pnpm workspaces
  3. install this package manually using the instructions above

Note

on Windows, you may need to manually call installGlobals() inside server.ts

import fastify from "fastify";
import { remixFastifyPlugin } from "@mcansh/remix-fastify";
import { installGlobals } from "@remix-run/node";
installGlobals();
// rest of your server code

Example

checkout the example usage in ./example/server.ts

About

Fastify server request handler for Remix

https://remix-fastify.onrender.com

License:MIT License


Languages

Language:TypeScript 88.2%Language:JavaScript 10.2%Language:CSS 1.5%Language:Shell 0.1%