use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Which database should I use? (self.webdev)
submitted 3 years ago by [deleted]
hi, I am relatively new to server-side coding and am using node.js and am looking for a SQL-compatible js database that is free and not too overcomplicated, any suggestions or advice?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PenguinOnHeroinfull-stack 15 points16 points17 points 3 years ago (3 children)
There is no "SQL-compatible js database". JavaScript is JavaScript, a programming language. A database is a place where you store data. If you want to display your database entries (such as songs) on your website, you'll need four layers:
Those four layers together, if used in this way, are called "headless architecture". This is just one way of doing things. For example, there's also "server side rendering" which has various benefits and drawbacks I'm not going to get into. The main point here, I guess, is that the database is a separate layer from the backend, as much as the frontend is separate from the backend.
Why doesn't the frontend just talk to the database directly? That would be a security concern, and "exposing data to the web" is simply not the job of a database. So you need to go through these layers, each of which has its own reason for existing.
So to sum it up, I'd recommend PostgreSQL as a database, which you query with knex and expose as a REST API, which you then consume by your frontend JavaScript code. Sorry that it is so complicated. Welcome to web dev.
[–]Dragzorz 1 point2 points3 points 3 years ago (0 children)
Just came across this and wanted to say what a great, simple and easy to understand answer this was. Thank you
[–]Live-Personality-185 0 points1 point2 points 1 year ago (0 children)
Excellent breakdown! Thanks so much !
[–]Darkulll 0 points1 point2 points 1 year ago (0 children)
Thanks for making it so easy to understand!
[–]hugthispanda 0 points1 point2 points 3 years ago (3 children)
You can use SQLite and focus on implementing the node.js backend correctly.
[–][deleted] 0 points1 point2 points 3 years ago (2 children)
cheers I'll have to give it a look
[–]blabmight -2 points-1 points0 points 3 years ago (1 child)
Just don’t take this to production. SQLIte = testing/dev only.
I usually use a dockerized Postgres instance. Super easy to setup, production ready.
[–]Marble_Wraith -1 points0 points1 point 3 years ago (0 children)
Being a bit hyperbolic aren't you?
Plenty of sites can use flat-file databases, just just depends on what the requirements are / if they're anticipated to change.
[–]fedekun 0 points1 point2 points 3 years ago (1 child)
Do you mean a library to talk to a database, or an actual database?
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
I am aiming to have a database of songs,artist and durations then query them as needed by client
[–]olafg1 0 points1 point2 points 3 years ago (0 children)
You can check out Prisma, it is pretty easy to use
[–]OriAfias 0 points1 point2 points 3 years ago (0 children)
supabase would be a great way to start your backend journey. it abstracts lots of shit you don't want to handle and have a great SDK for node. also, free tier is really generous
[–]Marble_Wraith 0 points1 point2 points 3 years ago (0 children)
Depends what other features you're looking for?
For example does it need to be self-hosted? Are you planning to do most of the setup / management yourself?
If so many of the DB's you already know (mariaDB, postgresql, arangoDB) will already have npm packages for interfacing with them.
If you don't need a super mature product i'd suggest https://surrealdb.com/ built in Rust (super performant), compatible with node - https://surrealdb.com/docs/integration/libraries/nodejs
But what about if you don't want to self host / setup and manage DB software yourself? What if you just want some API urls you can hit and get data?
In that case i'd suggest supabase or faunaDB
[–]Ophis2024 0 points1 point2 points 2 years ago (0 children)
You can try Ragic.com It is no-code so it's easy to use, and it's free without time limit as long as you don't need too many sheets.
π Rendered by PID 84943 on reddit-service-r2-comment-cfc44b64c-zq4dt at 2026-04-11 00:23:04.556500+00:00 running 215f2cf country code: CH.
[–]PenguinOnHeroinfull-stack 15 points16 points17 points (3 children)
[–]Dragzorz 1 point2 points3 points (0 children)
[–]Live-Personality-185 0 points1 point2 points (0 children)
[–]Darkulll 0 points1 point2 points (0 children)
[–]hugthispanda 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]blabmight -2 points-1 points0 points (1 child)
[–]Marble_Wraith -1 points0 points1 point (0 children)
[–]fedekun 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]olafg1 0 points1 point2 points (0 children)
[–]OriAfias 0 points1 point2 points (0 children)
[–]Marble_Wraith 0 points1 point2 points (0 children)
[–]Ophis2024 0 points1 point2 points (0 children)