A

A Postgres Extension to Write PostgreSQL Functions in TypeScript

Hacker News

A Postgres Extension to Write PostgreSQL Functions in TypeScript

Hi everyone! This is a PostgreSQL extension I've been working on that adds TypeScript procedural language support using the Deno runtime. It draws some inspiration from https://github.com/plv8/plv8 but aims to support full compatibility with TypeScript including es6 imports, async/await, and the entire node API surface area. It's written in Rust with pgrx. Because it uses Deno under the hood, we get sandboxing "for free", and can enable or disable various features (filesystem, network etc...) via superuser Postgres GUCs. It's still alpha quality software, but works reliably in my testing and I've implemented all of: - Typescript support - NPM Packages via deno import urls - Complex Postges types like Record and JSONB - An interface for calling back into Postgres Try it out and open an issue with any feedback!

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, using, open · Missing: mac, agents, macos
79%79% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: filesystem, io, including · Missing: https docs, excited, just released
63%63% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersIH features products with proven revenue · Strong signals: including · Missing: supports, reddit linkedin, podcasting
45%45% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
25%25% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Mo
Mostly ORMless – Ergonomic Postgres from TypeScript62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mostly ORMless – Ergonomic Postgres from TypeScript

Hacker News2
Mo
Mostly ORMless – Ergonomic Postgres from TypeScript62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mostly ORMless – Ergonomic Postgres from TypeScript

Hacker News14
Po
PostgreSQL Extension for Libsodium41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PostgreSQL Extension for Libsodium

Hacker News7
Pg
Pgsodium – A Crytographic PostgreSQL Extension41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pgsodium – A Crytographic PostgreSQL Extension

Hacker News7
Za
Zapatos, a Postgres Library for TypeScript62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Zapatos, a Postgres Library for TypeScript

Hacker News28
Pg
Pg_CRDT – an experimental CRDT extension for Postgres62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pg_CRDT – an experimental CRDT extension for Postgres

Hacker News296
BS
BSON Extension for Postgres44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BSON Extension for Postgres

Hacker News115
Pg
PgTyped – Typesafe SQL in TypeScript and Postgres70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PgTyped – Typesafe SQL in TypeScript and Postgres

Hacker News269
Wr
Write Postgres Foreign Data Wrappers in WASM71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Write Postgres Foreign Data Wrappers in WASM

Hacker News3
De
Deepstream-postgres: add a pinch of realtime to PostgreSQL68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deepstream-postgres: add a pinch of realtime to PostgreSQL

Hacker News3