DB

DBOS TypeScript – Lightweight Durable Execution Built on Postgres

Hacker News

DBOS TypeScript – Lightweight Durable Execution Built on Postgres

Hi HN - Peter from DBOS here with my co-founder Qian (qianl_cs) Today we want to share our TypeScript library for lightweight durable execution. We’ve been working on it since last year and recently released v2.0 with a ton of new features and major API overhaul. https://github.com/dbos-inc/dbos-transact-ts Durable execution means persisting the execution state of your program while it runs, so if it is ever interrupted or crashes, it automatically resumes from where it left off. Durable execution is useful for a lot of things: - Orchestrating long-running or business-critical workflows so they seamlessly recover from any failure. - Running reliable background jobs with no timeouts. - Processing incoming events (e.g. from Kafka) exactly once - Running a fault-tolerant distributed task queue - Running a reliable cron scheduler - Operating an AI agent, or anything that connects to an unreliable or non-deterministic API. What’s unique about DBOS’s take on durable execution (compared to, say, Temporal) is that it’s implemented in a lightweight library that’s totally backed by Postgres. All you have to do to use DBOS is “npm install” it and annotate your program with decorators. The decorators store your program’s execution state in Postgres as it runs and recover it if it crashes. There are no other dependencies you have to manage, no separate workflow server–just your program and Postgres. One big advantage of this approach is that you can add DBOS to ANY TypeScript application–it’s just a library. For example, you can use DBOS to add reliable background jobs or cron scheduling or queues to your Next.js app with no external dependencies except Postgres. Also, because it’s all in Postgres, you get all the tooling you’re familiar with: backups, GUIs, CLI tools–it all just works. Want to try DBOS out? Initialize a starter app with: npx @dbos-inc/create -t dbos-node-starter Then build and start your app with: npm install npm run build npm run start Also check out the docs: https://docs.dbos.dev/ We'd love to hear what you think! We’ll be in the comments for the rest of the day to answer any questions you may have.

Share card

Actual performance

77points
49comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
89%89% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, new · Missing: mac, agents, macos
86%86% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
65%65% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
32%32% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% 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
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct 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
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
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
I
I built this Postgres logger79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built this Postgres logger

Hacker News94
Ke
Keyv2 lightweight Postgres/SQLite database wrapper for Deno69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Keyv2 lightweight Postgres/SQLite database wrapper for Deno

Hacker News2
Pa
Parse your Postgres queries into a fully-typed AST in TypeScript54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Parse your Postgres queries into a fully-typed AST in TypeScript

Hacker News116
Th
ThreadJob lightweight asynchronous scheduling and execution40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ThreadJob lightweight asynchronous scheduling and execution

Hacker News2
No
Now supporting MySQL, Postgres, Redis, Mongo60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Now supporting MySQL, Postgres, Redis, Mongo

Hacker News3
Gr
GraphQL for Postgres83%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL for Postgres

Hacker News195