In this guide I will show you how to bundle your Sapper app with Discord OAuth that’s handled on the server side of your web application.

You should be familiar with the basic concepts of Sapper and Discord to get most out of this guide. If you are looking for a quick start template, you can use my sapper-discord-supabase-tailwind starter that has similar project structure than this guide offers.

Creating a new Sapper project

To get started, we will need to create a new Sapper project with Rollup as the bundling tool:

npx degit "sveltejs/sapper-template#rollup" my-app

And install dependencies with npm install

We will need…

If you’re using Firebase as a authentication service for your application and you’re considering moving over to Supabase, the open-source alternative, this guide helps you walk through the migration.

This guide assumes you’re already familiar with Firebase and basic concepts of it. To begin with, we will need to retrieve few resources:

Anon public key. This can be found under your Supabase project’s settings, under the API section.

Database URL. This can be found on the same page as your anon public key.

Supabase JavaScript client. You will need the latest version of JavaScript client for Supabase. …

This tutorial covers building a basic authentication for your Sapper application by using Supabase, the open-source Firebase alternative.

You might’ve stumbled upon Sapper or Svelte. Sapper is a framework for building web applications with Svelte.

Supabase on the other hand is a backend service quite similar to Firebase. In fact, it’s a open-source alternative to it.

👉 Source code:

Getting started with Supabase and Sapper

Prior starting to develop, you will need to open a free Supabase account. Head over to and complete registration flow.

Once you’ve created an account, you will need to create a new project.

Mika S.

I build complex things on the web and share my findings to help others learn too.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store