Ja

JavaScript as a Database – Serverless Platform

Hacker News

JavaScript as a Database – Serverless Platform

Hi HN! I’d like to share with you my project: JSDB. Two months ago I had this thought while reviewing a PR on a web application. What if I didn’t have to write code to communicate with my backend or database? It would be fun to just use arrays and objects like you normally do in javascript and have things magically save. That weekend I hacked together something that used proxies and classes to ‘magically’ send data to your backend when you assign or access properties in an object or array. Using the same API you already know. This means you can save data like this: items[x] = {a:2,b:false} and read data like this: console.log(await items[x].a) or console.log(await items.find(o => o.a === 2)) While sharing it with some devs I started to get comments like this? “Wow that’s super simple. Is it secure?” So I started building a platform around this idea. A platform that allows javascript developers to write full stack applications, with the least overhead possible and just writing javascript. Security Rules are JS functions, files are simply assigned to an object property, triggers are JS functions etc. Everything is javascript! Check the docs: https://javascriptdb.com/docs Why? Because there are developers that can write code using arrays and objects but are not confident with backend code. I would like to lower that barrier and empower every developer that knows JS to be full stack with the least effort possible. For experienced developers, less boilerplate means less bugs and faster product cycles. I like to think that JSDB is positively influenced by this post from Rich Harris: https://svelte.dev/blog/write-less-code Aren’t there other platforms that solve this problem? Yes, there’s some great efforts. Supabase recently had a killer launch week and I have tons of respect for what they’ve accomplished. JSDB targets the javascript lovers, the devs that rather just write javascript and would like to avoid sql if possible. By design it will only work on javascript codebases. Is this production ready? No! It’s still an MVP, designed to show the idea and where I’m going. That's also why there are limited spots for the hosted preview alpha (you can always self host). If this sounds interesting check this demo: https://youtu.be/xs30II7HNBQ Docs: https://javascriptdb.com/docs Website: https://javascriptdb.com Github: https://github.com/javascriptdb Looking forward to getting candid feedback :)

Share card

Actual performance

20points
14comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: using, code · Missing: mac, agents, macos
91%91% 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.
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
80%80% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
71%71% 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 · Strong signals: platform, host · Missing: plus, intuitive, reviews
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: month, way · Missing: mobile apps, ios, personal
36%36% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
12%12% 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

Un
Unbounded – The serverless NoSQL database you query with JavaScript67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Unbounded – The serverless NoSQL database you query with JavaScript

Hacker News1
Phobase
Phobase49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your go-to serverless database and app platform

Indie Hackers1apis
Se
Serverless email with JavaScript and Mailgun68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Serverless email with JavaScript and Mailgun

Hacker News2
Re
Reactive JavaScript Database and ORM74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Reactive JavaScript Database and ORM

Hacker News3
Po
PouchDB - The JavaScript database that syncs62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PouchDB - The JavaScript database that syncs

Hacker News82
A
A serverless approach to SSR for any JavaScript framework69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A serverless approach to SSR for any JavaScript framework

Hacker News4
Sc
Scrivito, a serverless JavaScript CMS58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scrivito, a serverless JavaScript CMS

Hacker News40
A
A JavaScript Tool for Database Diagramming66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A JavaScript Tool for Database Diagramming

Hacker News75
Si
SignalDB – Reactive Local JavaScript Database64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SignalDB – Reactive Local JavaScript Database

Hacker News4
Bl
Blueboat is an all-in-one, multi-tenant serverless JavaScript runtime59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Blueboat is an all-in-one, multi-tenant serverless JavaScript runtime

Hacker News123