TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SleekDB – A NoSQL Database made using PHP

62 pointsby rakibtgover 4 years ago

12 comments

yagodragonover 4 years ago
I love it! I like how it&#x27;s just pure php and purposefully built for small size I&#x2F;O needs. The documentation also looks great, so I might actually give it a try. Has anyone used it?<p>On a side note, for small projects everyone preaches about serverless js functions and firebase, but a can&#x27;t imagine how sleekdb + a micro framework like slim + modern php 8 is actually bad
评论 #25959991 未加载
lioetersover 4 years ago
Nicely done!<p>I like the small codebase with no dependencies - I imagine it&#x27;s easy to start using. Also appreciate the extensive query interface and documentation.<p>It reminds me of NeDB in Node.js world, which has proven its worth to me on several occasions when I needed a simple JSON-based database for a small(ish) audience, with mostly read operations (which are served from memory). They&#x27;re running for literally years with no issue at all.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;louischatriot&#x2F;nedb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louischatriot&#x2F;nedb</a>
psootsover 4 years ago
I&#x27;m very skeptical of this. It doesn&#x27;t seem like something that could scale. By accessing database files through PHP, you are begging for race conditions while serving multiple requests simultaneously. At best, you will hit write-errors while other requests are working with the file. SQLite has a good explanation of the problem here: <a href="https:&#x2F;&#x2F;sqlite.org&#x2F;faq.html#q5" rel="nofollow">https:&#x2F;&#x2F;sqlite.org&#x2F;faq.html#q5</a>
评论 #25959958 未加载
eyelidlessnessover 4 years ago
I built something like this in the run up to my first major engineering job. I embraced NoSQL after for a while. But ultimately types won, and then tools that work with them.<p>If you are using this or something like it I strongly encourage connecting your type system to it with common JSON Schema tools so it at least lets the rest of your tools find out what your data model is, even if you haven’t defined it
solarteken2001over 4 years ago
Fantastic! I will give it a try asap but it looks super easy to get started and the documentation is brilliant. Amazing work! Regarding security, could you please elaborate how sensitive data can be stored (and protected)?
评论 #25960626 未加载
dubcanadaover 4 years ago
@rakibtg - not sure if it&#x27;s just me (Windows, Chrome) but if I scroll down manually and then click any of the links on the left I end up in the middle of the section, rather then at the top. So go to the site, scroll down a little using the scrollbar, click &quot;Delete Data&quot; on the left. You are now in the middle of the &quot;Delete Data&quot; section. Looks like you show&#x2F;hide different sections, you should scroll to the top of the section on click.<p>Besides that it seems rather great, I am going to test it out.
评论 #25960644 未加载
yawnxyzover 4 years ago
that&#x27;s super cool! What are everyone&#x27;s thoughts on using php for this vs. something like airtable as a db for prototyping? I&#x27;ve been running everything off of Airtable for a while and it&#x27;s working really well, and my cofounder can work straight in the interface with no problems.<p>(It&#x27;s aggressively cached, runs several serverless sites, and I know it doesn&#x27;t scale, but I&#x27;m setup to move to Postgres if I need to, but so far I haven&#x27;t...)
评论 #25960587 未加载
nodesocketover 4 years ago
Somewhat related. I wrote a very very simple tool called JSONlite (<a href="https:&#x2F;&#x2F;github.com&#x2F;nodesocket&#x2F;jsonlite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodesocket&#x2F;jsonlite</a>) which is pure bash and stores JSON in flat files. It does not support nested querying, or querying really of any sort besides the primary id. So, it technically is more of a K&#x2F;V.
offtop5over 4 years ago
Good work, looks like it&#x27;s built primarily for prototyping so you don&#x27;t need to spin up a separate mongodb.<p>Any migration tools for when you need to switch the production
Scarbuttover 4 years ago
Or just use sqlite
didijudoover 4 years ago
Maybe I’ll create my website using it!!
评论 #26004729 未加载
dmjeover 4 years ago
Looks ace, will try it out!