{"repo":"sergiodxa/remix-hono","free":true,"listed":false,"github":"https://github.com/sergiodxa/remix-hono","clone":"git clone https://github.com/sergiodxa/remix-hono.git","description":"Hono middlewares for Remix","language":"TypeScript","stars":553,"topics":["cloudflare","cloudflare-pages","hono","remix","remix-run"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Remix/React Router + Hono React Router is a web framework for building web applications, which can run on the Edge. Hono is a small and ultrafast web framework for the Edges. This adapter allows you to use Hono with React Router, so you can use the best of each one. Let Hono power your HTTP server and its middlewares, then use React Router to build your web application. Installation Install the package The following packages are optional dependencies, you will need to install them depending on what features from remix-hono you're using. - @react-router/cloudflare if you're using Cloudflare integration. - i18next and remix-i18next if you're using the i18n middleware. - zod if you're using typedEnv . [!NOTE] You don't really need to install them if you don't use them, but you will need to install them yourself (they don't come not automatically) if you use the features that depends on those packages. Usage Create your Hono + React Routers server: Now, you can add more Hono middlewares, like the basic auth middleware: With just that, your app will now have basic auth protection, which can work great of preview applications. Session Management Additionally to the reactRouter Hono middleware, there are other three middlewares to work with React Router sessions. Because React Router sessions typically use a secret coming from the environment you will need access to Hono c.env to use them. If you're using the Worker KV session storage you will also need to pass the KV binding to the","default_branch":null,"files":null,"tree":[],"storefront":"/r/sergiodxa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sergiodxa/remix-hono/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}