# Frameworks

> The frameworks the platform recognises and sets up, how the framework of an app is chosen from composer.json and package.json, and what any other Node.js app needs.

Any app that runs on Node.js 18, 20, 22 or 24 and listens on the port in `PORT` can be deployed, and so can a Laravel app on PHP 8.2, 8.3 or 8.4. The frameworks below are recognised from your `composer.json` or `package.json` and set up for you: the build and start commands, and the shape of the running app. Anything else runs as a [plain Node.js](https://arrangic.com/docs/frameworks/node.md) app with your own build and start commands.

## Runs today

| Framework | What runs | Guide |
| --- | --- | --- |
| Express | Your server, with `npm run start` | [Express](https://arrangic.com/docs/frameworks/express.md) |
| Fastify | Your server, with `npm run start`. Listen on `0.0.0.0` | [Fastify](https://arrangic.com/docs/frameworks/fastify.md) |
| Hono | Your server on Node, through `@hono/node-server` | [Hono](https://arrangic.com/docs/frameworks/hono.md) |
| Koa | Your server, with `npm run start` | [Koa](https://arrangic.com/docs/frameworks/koa.md) |
| Hapi | Your server, with `npm run start`. Host `0.0.0.0`, not `localhost` | [Hapi](https://arrangic.com/docs/frameworks/hapi.md) |
| Sails | Your server, with `npm run start`. Two production settings to set | [Sails](https://arrangic.com/docs/frameworks/sails.md) |
| NestJS | The server `nest build` writes into `dist`, with `node dist/main` | [NestJS](https://arrangic.com/docs/frameworks/nestjs.md) |
| Next.js | `next start`, pages rendered on the server | [Next.js](https://arrangic.com/docs/frameworks/nextjs.md) |
| Nuxt | The server Nuxt builds into `.output` | [Nuxt](https://arrangic.com/docs/frameworks/nuxt.md) |
| SvelteKit | The server `adapter-node` writes into `build`, or built files with `adapter-static` | [SvelteKit](https://arrangic.com/docs/frameworks/sveltekit.md) |
| Astro | Your built files, served by the platform, or the server of `@astrojs/node` | [Astro](https://arrangic.com/docs/frameworks/astro.md) |
| React Router | `react-router-serve` on the build, pages rendered on the server. Remix 2 too | [React Router](https://arrangic.com/docs/frameworks/react-router.md) |
| TanStack Start | The server nitro builds into `.output` | [TanStack Start](https://arrangic.com/docs/frameworks/tanstack-start.md) |
| React | Your built files, served by the platform. Vite or Create React App | [React](https://arrangic.com/docs/frameworks/react.md) |
| Vue | Your built files, served by the platform. Vite or Vue CLI | [Vue](https://arrangic.com/docs/frameworks/vue.md) |
| Angular | Your built files, served by the platform. Server rendering coming soon | [Angular](https://arrangic.com/docs/frameworks/angular.md) |
| AdonisJS | The server `node ace build` writes into `build` | [AdonisJS](https://arrangic.com/docs/frameworks/adonisjs.md) |
| Laravel | PHP behind FrankenPHP, or Octane; Blade, Livewire, Inertia with React or Vue, with or without SSR | [Laravel](https://arrangic.com/docs/frameworks/laravel.md) |
| Node.js | Any other server of your own, with `npm run start` | [Node.js](https://arrangic.com/docs/frameworks/node.md) |

Every guide has the same parts: what the app needs, a small app that runs, how it is recognised, the build and start commands and what the running app carries, the variables that differ, a health check path and the visitor's address in the framework's own idiom. What every app shares is on [The running app](https://arrangic.com/docs/running-app.md) and [Requests and sockets](https://arrangic.com/docs/requests.md).

## How the framework is chosen

When you create an app, the dashboard reads the `composer.json` of the repository, then its `package.json`, and picks the framework they name:

| The repository has | Framework |
| --- | --- |
| `laravel/framework` in `require` of `composer.json` | Laravel, whatever `package.json` says |
| `next` in `dependencies` | Next.js |
| `nuxt` in `dependencies` or `devDependencies` | Nuxt |
| `@tanstack/react-start` or `@tanstack/solid-start`, in either list | TanStack Start |
| `@react-router/dev` or `@react-router/serve` (or `@remix-run/dev`, `@remix-run/serve`), in either list | React Router |
| `@sveltejs/kit`, in either list | SvelteKit |
| `astro`, in either list | Astro |
| `@adonisjs/core` in `dependencies` | AdonisJS |
| `@nestjs/core` in `dependencies` | NestJS, also with `express` among the dependencies |
| `sails` in `dependencies` | Sails, also with `express` among the dependencies |
| `express` in `dependencies` | Express, also when the pages are written in React |
| `fastify` in `dependencies` | Fastify |
| `hono` in `dependencies` | Hono, also with React pages and Vite |
| `koa` in `dependencies` | Koa |
| `@hapi/hapi` in `dependencies` | Hapi |
| `react` in `dependencies`, with `vite` or `react-scripts` | React |
| `vue` in `dependencies`, with `vite` or `@vue/cli-service` | Vue |
| `@angular/core` in `dependencies` | Angular |
| None of these | The framework you chose |

The rows are read from the top: the first that fits decides. That is why React Router and TanStack Start come before React, which they carry, and NestJS and Sails before Express. A framework you pick by hand stays, and the build and start commands are filled in for the framework that is picked.

The framework is set when the app is created and cannot be changed later. When the repository moves on to another framework, the app is still built as the one it was created as. For another framework, create a new app from the same repository.

## Any other Node.js app

An app that none of the rows names is a **Node.js** app: choose that framework when you create it. It is built and run the way an Express app is, with `npm run start` and the packages from `dependencies`. What it has to do is short: listen on the port in `PORT` on every address (`0.0.0.0`), start within 2 minutes, and keep its data outside the app. The [Node.js guide](https://arrangic.com/docs/frameworks/node.md) says it in full, and [Check your app](https://arrangic.com/docs/check-your-app.md) checks it for you.

---

This page on the site: https://arrangic.com/docs/frameworks  
All pages of the documentation: https://arrangic.com/llms.txt
