Wikipedia

Search results

Tuesday, April 19, 2022

Show HN: JavaScript as a Database – Serverless Platform https://ift.tt/1WgMpfw

Show HN: 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://ift.tt/Kfp6nHd 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://ift.tt/sRMnjtd 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://ift.tt/Kfp6nHd Website: https://ift.tt/SmG7JXf Github: https://ift.tt/FKPJCob Looking forward to getting candid feedback :) https://ift.tt/SmG7JXf April 19, 2022 at 02:17PM

No comments:

Post a Comment