Skip to content

Instantly share code, notes, and snippets.

View code3z's full-sized avatar
🦾

Ian code3z

🦾
View GitHub Profile
@code3z
code3z / README.md
Last active June 7, 2022 20:15
How to use Supabase with external apps

Recently, I've been creating https://shareweave.com. Right now it's just a simple discord bot to save messages to a tasklist and set reminders for them - it's mainly targeted towards people who manage communities and will likely expand to have more features to support community managers in the future.

I decided to use supabase because I wanted to have a web interfae for more flexibility, and I wanted it to be simple to do CRUD stuff and realtime in the future. I've tried a Mongo + Nodejs combo in the past for something similar, but found supabase to be easier. However, I did run into a problem with the auth. It seems that supabase isn't really meant for connecting to other apps. While most things were easy, one thing I stuggled with was the ability to use discord IDs in my app.

For instance, when discord sent my app a notification that someone wants to set a reminder for something, I needed to query a supabase table to find the discord ID for that user's settings. Supabase has docs about making a profile

@code3z
code3z / Button.svelte
Last active June 2, 2022 01:47
Simple Time Picker in Svelte
<script lang="ts">
export let primary = false;
export let danger = false;
export let fullWidth = false;
export let href = '';
let className = '';
export { className as class };
const primaryStyle = 'bg-brand-blue hover:bg-brand-blue text-white';
const secondaryStyle = 'text-brand-blue hover:bg-background-darker';
@code3z
code3z / instructions.md
Last active May 31, 2025 22:29
GNOME on Qubes

Hi!

You should be able to install GNOME DE on Qubes OS dom0 with.

sudo qubes-dom0-update gnome-shell

Install extensions according to instructions here.

Enable window borders