Back to packages list

Vals using @supabase/supabase-js

Description from the NPM package:
Isomorphic Javascript client for Supabase
nmsilva avatar
nmsilva
authUtils
Script
// Initialize Supabase client
0
Prada avatar
Prada
supabaseSDKSelectMyFirstTable
Script
Forked from vtdocs/supabaseSDKSelectMyFirstTable
0
ejfox avatar
ejfox
weeksummary
HTTP
@jsxImportSource https://esm.sh/react
0
jonbo avatar
jonbo
MADBOTS
Cron
MAD BOTS (Multi-functional Alerting & Diagnostics Bot Operations Tracking System) This val runs every two minutes and makes sure a supabase realtime websocket listener is still alive. on spawn, checks to see if acknowledged_by_server == true if not, send a message to discord update the row (id=1) in supabase with acknowledged_by_server: false to reset for next run this will be responded to by the supabase handler. code snippet below: .on( "postgres_changes", { event: "UPDATE", schema: "public", table: "uptime", }, async (payload) => { // this means we just acknowledged it if (payload.new.acknowledged_by_server) { console.log('uptime check already acknowledged - skipping'); return; }; console.log('incoming uptime check request', payload); if (!payload.new.acknowledged_by_server) { await supabaseAdminClient.from('uptime').update({ acknowledged_by_server: true, acknowledged_at: new Date() }).eq('id', payload.new.id); console.log('uptime check acknowledged'); } } ) note: this will keep alerting every two minutes until acknowledged. something to resolve in the next version.
0
thomasatflexos avatar
thomasatflexos
createRelevantComment
Script
An interactive, runnable TypeScript val by thomasatflexos
0
thomasatflexos avatar
thomasatflexos
convertTodoItemsToGamePlans
Express (deprecated)
An interactive, runnable TypeScript val by thomasatflexos
0
thomasatflexos avatar
thomasatflexos
redirect
Express (deprecated)
This is a handler for when Notion redirects during OAuth 2.0 workflow
0
vtdocs avatar
vtdocs
supabaseSDKSelectMyFirstTable
Script
Selecting from a Supabase table using the SDK. Part of the Supabase guide on docs.val.town .
0
vtdocs avatar
vtdocs
supabaseSDKInsertIntoMyFirstTable
Script
Inserting into a table using Supabase's SDK. Part of the Supabase guide on docs.val.town .
0
tr3ntg avatar
tr3ntg
untitled_silverGoose
Script
An interactive, runnable TypeScript val by tr3ntg
1
ayrtonlacerda avatar
ayrtonlacerda
getWallets
Script
An interactive, runnable TypeScript val by ayrtonlacerda
1
1
Next