supabase-mailer
plv8
Our great sponsors
supabase-mailer | plv8 | |
---|---|---|
11 | 13 | |
182 | 1,854 | |
- | 1.6% | |
1.1 | 6.6 | |
4 months ago | about 1 month ago | |
PLpgSQL | C++ | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
supabase-mailer
-
Looking for contributors for StaticBackend, a backend API in Go
Supabase developer here. Just to clarify, Supabase has server-side functions (edge functions), emails can be sent with something like my repo here (https://github.com/burggraf/supabase-mailer) or through edge functions -- but you're right, while we do have the ability to send any auth-related emails built-in (sign up, sign in with magic link, MFA, reset password, etc.) we don't have an out-of-the-box solution for sending emails, that's why I wrote that repo. And lastly, it's quite easy to schedule tasks using pg_cron, which is built into every Supabase project by default.
-
Modifying Email Remotely
Hello, I've tried these instructions https://github.com/burggraf/supabase-mailer/blob/main/Mail_Providers/Sendgrid.md when I tried to execute the first line INSERT INTO private.keys (key, value) values ('SENDGRID_API_KEY', 'aaaaaaaaaa'); in SQL editor (with my API key) in Supabase I've got this error: "Failed to run sql query: relation "private.keys" does not exist"
-
Edge Functions or Database Functions?
Here's a repo where I use the http extension extensively: https://github.com/burggraf/supabase-mailer
-
Sending Email From Postgres
I was excited to find the supabase-mailer project, but unfortunately it seems that only the Mailgun provider is fully supported and working. Mailgun only has a 30 day trial, which didn't work for my needs.
-
How to send Emails from Supabase in case of an event?
You can't call the http function like that. You need to use a SELECT statement. See https://github.com/burggraf/supabase-mailer/blob/main/02A_send_email_mailgun.sql for an example: SELECT content INTO retval FROM http (('POST', ....etc
-
Functions?
I'm not 100% sure you could do this with PostgreSQL functions, but you probably can. Since we have http access from these functions, I've written interfaces to some of the transactional email apis here: https://github.com/burggraf/supabase-mailer . (It's probably even easier if you use straight SMTP mailers.)
- Questions about sending emails
-
Open source Firebase alternative (Supabase) raises $30M Series A
Not sure what you mean. I have a couple open-source repos on github that show you how you can send emails or text messages from a Postgres function using third-party providers. I also have a repo that shows how you could roll your own auth using functions. Assigning permissions and roles is definitely something you can do in functions -- that's standard postgres stuff....
plv8
- Supabase Storage: now supports the S3 protocol
-
PLJS – JavaScript Language Plugin for PostreSQL
a bit more than an experiment at this point. pljs, even in its early state, has some very good results: https://github.com/plv8/plv8/issues/531#issuecomment-1627883...
passing through v8's javascript/c++ membrane has always been painful, and appears to be getting worse.
-
Sending Email From Postgres
From here you'll write a send_email function in Postgres that calls the API. I initially wrote the entire function in PLpgSQL and spent an entire day to get it debugged and working. And even then I wasn't happy with it. In my opinion that language is unintuitive and difficult to learn and debug. I switched over to PLV8, an extension for Postgres that supports writing functions in Javascript. It takes one click in the Supabase UI to enable this extension, and it will save hours and hours of time.
-
I wrote a database engine in Typescript
You jest, but the evil geniuses at plv8 have already done it for Postgresql.
-
Surrealdb – FOSS document-graph database, for the realtime web in Rust
To be honest I haven't used it, but I've extensively used pl/pgsql and a little pl/ruby, and know that https://plv8.github.io/ exists - it might be what you're looking for and it's on my list of things to play with
- PLV8 is a trusted Javascript language extension for PostgreSQL. It can be used for stored procedures, triggers, etc.
- PLV8 JavaScript Procedural Language Add-On for PostgreSQL
-
Show HN: Postgres.js – Fastest Full-Featured PostgreSQL Client for Node and Deno
but, let's take your straw man a little further. let's suppose that all of the actual parsing is done for you already, and all you're doing is iterating through the data structure, creating objects through the c++ api, and calling it good. that should be faster than calling the c++ JSON.parse(), shouldn't it? since we don't have to actually parse anything, right? no, it's actually much slower. you can see this in action at https://github.com/plv8/plv8/blob/r3.1/plv8_type.cc#L173-L60...
again, we're not talking about whether javascript in an interpreter is faster than c++, we're talking about whether v8's api causes enough slowdown that some workloads that require a lot of data between c++ and javascript are slower than the same workload that requires very little data between c++ and javascript ... because passing through v8's c++/javascript membrane is slow.
- Is there an efficient and easy way to duplicate a row an all relations?
- PLV8: V8 Engine JavaScript Procedural Language Add-On for PostgreSQL
What are some alternatives?
SupaScript
Marten - .NET Transactional Document DB and Event Store on PostgreSQL
pgsql-http - HTTP client for PostgreSQL, retrieve a web page from inside the database.
postgres-benchmarks - A set of benchmarks focusing on the performance of Postgres client libraries for Node.js
supabase-roll-your-own-auth - Custom Supabase authentication using PostgreSQL functions
orioledb - OrioleDB – building a modern cloud-native storage engine (... and solving some PostgreSQL wicked problems) 🇺🇦
supabase-sms - Send and receive sms messages from Supabase / PostgreSQL using a Transactional SMS Provider
pg_auto_failover - Postgres extension and service for automated failover and high-availability
supabase - The open source Firebase alternative.
node-redis - Redis Node.js client
core - Backend server API handling user mgmt, database, storage and real-time component
pgaudit - PostgreSQL Audit Extension