https://github.com/supabase/livebooks
A collection of Elixir Livebooks for Supabase
https://github.com/supabase/livebooks
Last synced: 10 months ago
JSON representation
A collection of Elixir Livebooks for Supabase
- Host: GitHub
- URL: https://github.com/supabase/livebooks
- Owner: supabase
- Created: 2022-01-25T17:21:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T16:54:29.000Z (over 2 years ago)
- Last Synced: 2024-04-13T21:54:14.527Z (over 2 years ago)
- Language: Dockerfile
- Homepage:
- Size: 42 KB
- Stars: 20
- Watchers: 21
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Supabase Livebooks
This is a collection of Elixir Livebooks used to do various things with your Supabase deployement.
## Get Started
To get started using this with your own Supabase deployment clone this repo and:
- Edit the `app` name in `fly.toml` config
- Deploy it to your fly.io account: `fly deploy`
- Make sure to set the Livebook password: `fly secrets set LIVEBOOK_PASSWORD=your_password`
## Livebooks
`prom_poller.livemd`
- Polls a project Prometheus compatible endpoint and graphs the metric of choice.
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fprom_poller.livemd)
`logflare_websocket_ingest.livemd`
- Send logs to Logflare via websockets!
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Flogflare_websocket_ingest.livemd)
`query_postgres.livemd`
- Query Postgres easily!
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fquery_postgres.livemd)
`mint_jwt.livemd`
- Create a JWT with a secret.
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fmint_jwt.livemd)
`postgres_wal_to_logflare.livemd`
- Subscribe to the Postgres write-ahead log and send records to Logflare.
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fpostgres_wal_to_logflare.livemd)
`supavisor_demo.livemd`
- Demo of the Supavisor connection pooler.
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fsupavisor_demo.livemd)
`supavisor_qa.livemd`
- QA Supavisor.
- [Run in Livebook](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fsupabase%2Flivebooks%2Fblob%2Fmain%2Flivebooks%2Fsupavisor_qa.livemd)