Skip to content
Back to catalog
Nhost

Migrate from Nhost

Move users, database data, and files from Nhost to Appwrite

Nhost is an open-source backend platform built on PostgreSQL and a GraphQL API. An Nhost project combines a Postgres database with authentication, file storage, and serverless functions.

How does the integration work?

Appwrite Migrations connects to your Nhost database and, with your project's admin secret, to its file storage, then copies their resources into an Appwrite project. You choose which resources to move in the migration wizard, and Appwrite runs the migration in the background.

ResourceMigration
UsersAutomatic
DatabasesAutomatic
RowsPartial
FilesAutomatic
FunctionsManual

Appwrite Databases don't support every PostgreSQL feature, so advanced indexes, PostgreSQL functions, and scheduling are not migrated. Users who signed in with an OAuth provider need to sign in again after the migration, because their sessions belong to that provider. Nhost functions must be rewritten as Appwrite Functions because of syntax and runtime differences.

How to implement

To migrate an Nhost project to Appwrite, there are several steps you must complete:

Step 1: Collect your Nhost credentials

Collect the following values from your Nhost project:

FieldWhere to find it
RegionThe NHOST_REGION environment variable of your project.
SubdomainThe NHOST_SUBDOMAIN environment variable of your project.
DatabaseThe database name in your project's Database settings.
UsernameThe database username in your project's Database settings.
PasswordThe database password you set when you created the project. Reset it in the Database settings if you no longer have it.
Admin SecretThe NHOST_ADMIN_SECRET environment variable of your project. Appwrite uses it to transfer your files.

Step 2: Start the migration in Appwrite

For this step, you must create an account on Appwrite Cloud or self-host Appwrite if you haven't already.

Create a new project, open Project settings, and go to the Migrations tab. Click Create migration and select Nhost as the source. Enter the credentials from the previous step, click Next, select the resources to migrate, and click Start migration.

You can also start a migration from a Server SDK with createNHostMigration, using an API key with the migrations.write scope.

Step 3: Finish the move

Once the migration completes:

  • Add your web, Flutter, Android, and iOS apps as platforms in your Appwrite project. Appwrite rejects requests from apps it doesn't know.
  • Review the permissions on migrated resources so users can only reach their own data.
  • Rewrite your Nhost functions on a supported Appwrite Functions runtime.

Read more about Nhost and Appwrite

If you would like to learn more about migrating from Nhost to Appwrite, we have some resources that you should visit:

Technology Partner Program

Building on Appwrite?

Teams and developers who ship integrations, tools, or services on Appwrite can join our partner program for verified catalog placement, co-marketing, training, and engineering support.