Kinto – open-source alternative to Firebase and Parse

350 points by vladikoff 9 years ago | 92 comments
  • rbranson 9 years ago
    Isn't one of the main benefits of something like Firebase or Parse that you don't have to run it? It's nice that Kinto packages the stack together and provides plug-and-play APIs, but there's quite a bit of expertise and overhead operating a backend stack in production.
    • aidos 9 years ago
      Maybe, but there are others of us who don't use firebase because we can't outsource our datastore like that. It goes both ways.
      • cristoph 9 years ago
        You can use Parse an Firebase to store sensitive data by applying client side encryption. Of course one of the biggest problem is: how do you query that data since it's encrypted. But lately, there are some start-ups that aim to make encryption searchable. See ZeroDB, CryptDB, IQrypt.- the last one is designed to be used for Parse and Firebase: http://iqrypt.com/docs/Home/
      • metasean 9 years ago
        We're actually building an open-source alternative to services like Firebase and Parse. Ours is a fully peer-to-peer, real-time, graph database that doesn't require a lot of expertise or overhead, and is extensible.

        http://gun.js.org/ / https://github.com/amark/gun / https://gitter.im/amark/gun

        • d0m 9 years ago
          In many industries (I.e. healthcare with HIPAA) you can't save your data in Firebase/Parse.
          • cmsthrowit 9 years ago
            Parse is HIPAA certified.
            • jondubois 9 years ago
              Regardless of this (assuming this is even true), I can't imagine that a finance company would want to store their data inside something like Firebase - The risk of data theft is too high and the value of the data is also too high.

              When you store everything in a big centralized system, the risk of that data being compromised increases greatly. Right now, the reason why no one is hacking Firebase is because the data which is being stored in there is low-value.

              If banks and hospitals started storing data in Firebase, you can be sure that it would attract the attention of hackers and you can be sure that they would find an exploit eventually.

              You can't possibly place all of the world's high-value data inside one or two systems. Every single change made to the codebase is a potential security vulnerability.

              Also, I imagine that employees of Firebase have access to all your data - What if one of them decided to share your data with a competitor. Humans are corruptable - This is too much power to put in the hands of so few people.

              • gfosco 9 years ago
                No, it is not. No idea where you got this notion, but I've been answering this question for almost 3 years.
                • javawizard 9 years ago
                  According to whom? A quick Google search turns up a number of results to the contrary.
                  • ryanSrich 9 years ago
                    What do you mean by HIPAA certified? Do you mean they'll sign a BAA? I don't think they will.

                    ...and even if they did, the technical requirements of HIPAA compliance go much further than what Parse has to offer. You'd be much better suited building an application and hosting it on Catalyze[1], which covers every aspect of HIPAA compliance and has a HITRUST certification.

                    1. https://catalyze.io

                    • inlined 9 years ago
                      [citation needed]
                      • reitoei 9 years ago
                        It is not.
                        • cmsthrowit 9 years ago
                          Wow, they used to list hipaa certification. Sorry, I'm wrong.
                      • mansilladev 9 years ago
                        My thoughts exactly. Kinto is a database with an API that you have to configure, deploy, manage and scale. It's not really an alternative to Parse/Firebase, as it is an alternative to Mongo.
                        • doczoidberg 9 years ago
                          main feature of firebase for me are the "realtime" updates
                          • tostitos1979 9 years ago
                            I recently tried Parse's Push Notification (which go through GCM on Android). I was shocked by how long the messages seems to take when on cellular.

                            If anyone has tips, I'm all ears.

                            • nojvek 9 years ago
                              I'm not sure why no one mentions rethinkdb. We use it and are extremely happy with both its API mindframe, realtime updates and how easy it is to scale it.
                          • mxuribe 9 years ago
                            I believe, really, its more about being indie and such. Its the same reason many people can just run gmail - or google apps for your domain - as opposed to the heavy-lifting of running your own email server, etc. Not like I'm an expert, but running one's email - and ensuring high degree of deliverability nowadays - is quite difficult. There are those who choose to run something on their own, maybe to learn, maybe for privacy's sake, etc. I'm sure those who do so, dive in with their eyes wide open. ;-)
                            • rdtsc 9 years ago
                              > Isn't one of the main benefits of something like Firebase or Parse that you don't have to run it?

                              But do I have to pay for it?

                              • 9 years ago
                              • fiatjaf 9 years ago
                                Why not CouchDB + PouchDB? It's offline first and replicates over HTTP.

                                For more fine-grained permissions and other features I'm also developing a small Go database compatible with PouchDB at https://github.com/fiatjaf/summadb

                                I hope it will be able to sync through websockets soon.

                                • Lazare 9 years ago
                                  I find it an ongoing mystery how many of these tools and services pop up that aren't based on Couch/PouchDB, don't reference Couch/PouchDB, aren't compatible with the Couch sync protocol, and don't even seem aware the Couch/PouchDB exist.

                                  I'm 100% waiting to be sold on "here's a new tool that does what CouchDB does, but is better in these specific ways", but if your sales pitch is just "we're working on writing an exact clone of CouchDB because we didn't realise CouchDB existed" it doesn't really sell me.

                                  (Nothing wrong with a dose of Not Invented Here Syndrome; a lot of progress comes from reinventing the wheel. What gets me is the No Idea What's Been Invented Syndrome.)

                                  • daleharvey 9 years ago
                                    I am a little confused at why PouchDB isnt listed on the comparisons page, I am fairly certain they sent a comparison listing and asked me to review it at some point but in all fairness they did investigate and give reasons to not use PouchDB, this post is linked http://www.servicedenuages.fr/en/generic-storage-ecosystem

                                    In my extremely biased position (as the maintainer of PouchDB) I would really have liked to still see this based on the CouchDB protocol / PouchDB codebase, it is true that neither Couch or PouchDB have particularly expressive and powerful permission systems (which is what the main downside looks to be) however I have been very aware of that building PouchDB and have made a lot of effort to ensure a powerful and flexible permissions system can be built on top of it (for example https://github.com/thaliproject/node_acl_pouchdb)

                                    I do think that when you are tasked with providing cloud services for existing Mozilla products that there is a lot more risk involved in leveraging an existing established ecosystem like Couch / PouchDB however so its fairly likely that for Mozilla services this was the best choice (the same in reverse is true however also when looking at this as a generic library).

                                    As for a disclaimer, I am a maintainer of PouchDB and a Mozilla developer. I have worked / talked to this team about Kinto, work on some features that use it and they are doing awesome stuff, some of which Pouch may possibly look to do as well.

                                  • skrebbel 9 years ago
                                    As a Firebase customer and former CouchDB user, I can tell you that the use cases are really not as similar as you apparently think they are.

                                    Until very recently, Couch/Pouch would only sync entire databases, and recommended a "One database per user" approach. This is improving now, but it's still very coarse-grained. Last time I checked, anything that has data that you couldn't shard easily is basically unfit for Couch/Pouch - e.g. any messaging app or a Twitter clone. How would you select which data goes to which user? Or do you just want to put all tweets, globally, on everybody's phone?

                                    All of this is absolutely peanuts on Firebase.

                                    • david-given 9 years ago
                                      Personally, I'm looking for a database with:

                                      - strong consistency (cross-node transactions!)

                                      - strong access controls (don't want clients to see data they're not allowed to!)

                                      - the ability to seamlessly replicate a view from the server to a web client without me having to think about it (although only read-only)

                                      So far none of the web nosql databases I've looked at support these. Strong consistency seems to be unfashionable, presumably because it's hard to shard. I was really surprised to discover that CouchDB apparently doesn't support access controls, though --- if a client has access to the database endpoint, it can see everything. Aren't access controls part of the core competency of a multi-user database?

                                  • jchrisa 9 years ago
                                    You might be interested in https://github.com/couchbase/sync_gateway which is the Couchbase Mobile access control and sync layer (compatible with PouchDB etc). It has fine grained access control based on a channel metaphor. And it's also written in Go, so you might be interested in using parts of it.

                                    Specifically if you wrap your storage layer in a facade that looks like https://github.com/couchbaselabs/walrus you'll be able to use our suite of storage layers, and we'll be able to use yours. That means it'd be trivial to swap out your storage for something scalable like Couchbase Server, or something tiny and embedded like ForestDB or RocksDB.

                                    • fiatjaf 9 years ago
                                      Thank you, jchris.

                                      As far as I could understand, basically I must implement the Bucket interface[1]? I don't if that will work, since I'm storing things in a somewhat different manner, but it's definitely worth examining.

                                      [1]: https://github.com/couchbase/sg-bucket/blob/master/bucket.go

                                      • jchrisa 9 years ago
                                        That's right. If you find you enjoy that code... Couchbase is always looking for great engineers!
                                    • MCRed 9 years ago
                                      Or Couchbase + Sync_Gateway + PouchDB / CouchbaseLite?

                                      This is a very full featured combination, basically a PaaS/BaaS with sync, and user accounts, out of the box.

                                      http://www.couchbase.com/nosql-databases/couchbase-mobile

                                      Note, while that website is very corporate, the software is open source and the company is very supportive of developers.

                                      • cquillen 9 years ago
                                        Speaking of finer-grained permissions in CouchDB/PouchDB. I'm working on implementing that now in my application. Can filtered replication (server-side) solve this problem?

                                        For an application targeting small-businesses, I'm considering the following setup on the server. Has anyone done this or something similar?

                                        One DB per user and a Company DB. Filtered replication from Company DB to User DBs. Full replication from User DBs to Company DB. All reads/writes/deletes from client (or PouchDB sync) to User DB only

                                      • ndesaulniers 9 years ago
                                        Heh, so last week my buddy Tarek Ziade (one of the developers of this) and I were talking about this (kinto) project he's working on. I asked him what the meaning behind the name was. He said "you know the cloud from Dragon Ball. They don't use it as much in DBZ since they can fly."

                                        I asked him if he meant "flying Nimbus?" Apparently, something was lost in translation (I'm in the US, he's in France).

                                      • sweetiewill 9 years ago
                                        Would have to throw in Couchbase Mobile for comparisons too. It is Open Sourced as well and it provides the offline component with abstraction to sync-ing which is one of the most difficult features/problems it solves.

                                        http://developer.couchbase.com/documentation/mobile/1.1.0/de...

                                        • simple10 9 years ago
                                          From the Dockerfile [1], it looks like it's built on top of postgres. I'm excited to see if anyone uses Kinto for more than a weekend project.

                                          [1] https://github.com/Kinto/kinto/blob/master/Dockerfile

                                          • rhizome31 9 years ago
                                            From the Overview page: At Mozilla, Kinto is used in Firefox and Firefox OS for global synchronization of settings and assets, as well as a first-class solution for personal data in browser extensions and Web apps.
                                          • sbarre 9 years ago
                                            So I read through the docs for a few minutes and something wasn't entirely clear.. It shows "offline-first design" so does that mean I can use it as a local storage in the browser/device, and it can sync later to a server?
                                          • sktrdie 9 years ago
                                            Does anybody know about databases that talk WebSockets rather than HTTP? For frontend apps it seems more logical to use WebSockets. Dealing with AJAX and understanding how to manage all of that on the client is still a huge dilemma in the React/Flux/Angular community.
                                          • miles_matthias 9 years ago
                                            I'm a big fan of services like Parse & Firebase so it's cool to see something open source and independent get released.

                                            I've never made the jump to use Parse or Firebase in production though because inevitably I have to write some custom server code to do some integration. For example - payments with Stripe. Charges should only occur on your server (not on the client) but I've yet to see anyone allow you to configure a payment trigger in one of these services.

                                            • subpixel 9 years ago
                                              Basically, you need a service running on a separate server to implement these sorts of integrations. If Firebase is a long-term part of your stack, I agree that sounds unappealing, b/c the reason you're paying Firebase is so you don't need to wrangle a server.

                                              You may think differently if you're using Firebase as the fastest way to get an MVP up and running (that happens to be my use case)

                                              • acgourley 9 years ago
                                                We use parse with stripe. The client drives the transaction and then stripe hits your parse cloud function via webhook with the confirmation.
                                                • doczoidberg 9 years ago
                                                  Of course you can use firebase also in combination with server side code. It is no reason not to use firebase because you use server side code. I use firebase and SQL at the same time. It works quite good if you know what you do.
                                                  • chuinard 9 years ago
                                                    I've done exactly that - integrated Stripe with our Firebase-backed app (https://play.google.com/store/apps/details?id=com.twansoftwa...). My method was to use App Engine as the callback component to handle Stripe webhooks.

                                                    I also do have custom server code, which was a little bit tough to get going, but it's great having a dedicated Linux box as well.

                                                  • Raed667 9 years ago
                                                    Looks impressive, but as a Parse user I think that the selling point are the open-sourced SDKs for lots of platforms.

                                                    EDIT: this seems to be lacking a graphical administration panel as well.

                                                    • tarekmoz 9 years ago
                                                      > this seems to be lacking a graphical administration panel as well

                                                      we are working on one, that's almost ready. Should be released sometimes during Q1

                                                      • Raed667 9 years ago
                                                        Great, I'm really excited about testing this on my VPS. Hope it handle the load.
                                                      • harunurhan 9 years ago
                                                        I agree with you, but I think SDKs for at least Android and iOS will be available very soon.
                                                        • 0k1n 9 years ago
                                                          • 9 years ago
                                                          • maxwin 9 years ago
                                                            Agree.They should at least have Android and ios SDK.
                                                          • chrstphrhrt 9 years ago
                                                            This looks really cool.

                                                            Do you have a gitter channel or something?

                                                            Would love to talk shop about the design decisions! Email me at chris at ramses dot tech.

                                                            (I'm one of the devs of http://ramses.tech)

                                                          • wolframhempel 9 years ago
                                                            Seems comparable to http://deepstream.io
                                                            • jonpaul 9 years ago
                                                              I'll throw in an article that I wrote about building an open source Firebase clone: http://procbits.com/2014/01/06/poor-mans-firebase-leveldb-re... / https://github.com/jprichardson/iceden. Written in Node.js.
                                                              • andreyf 9 years ago
                                                                It's not really an alternative to Firebase until you have change notification and a similar scaling model (i.e. scale by throwing money at it).
                                                                • jamesw6811 9 years ago
                                                                  For creating a customized web API easily, we are considering http://loopback.io/ and https://www.dreamfactory.com/ -- I wonder how these compare to Kinto.
                                                                  • vskarine 9 years ago
                                                                    Would be nice if they included RethinkDB in comparison as well
                                                                    • avinassh 9 years ago
                                                                      > Kinto is a server allowing you to store and synchronize arbitrary data, attached to your Firefox account.

                                                                      Why does the repo readme says this? What does it mean? I mean, why Parse kinda service is related and attached to Firefox account?

                                                                      • tarekmoz 9 years ago
                                                                        It was our first use case at Mozilla when we started the tool. This sentence is now a bit misleading. Thanks for pointing this out.
                                                                      • smithclay 9 years ago
                                                                        At this point, are there any major tech organizations who haven't jumped on the Backend-as-a-service bandwagon?

                                                                        Kinto - Mozilla, CloudKit - Apple, Parse - Facebook, Firebase - Google, Azure Mobile Services - Microsoft, Mobile Hub - Amazon, Usergrid - Apache Foundation

                                                                        ... and many, many startups.

                                                                        • ametaireau 9 years ago
                                                                          We put together an answer to the questions that arised in this thread. Hope this helps: http://www.servicedenuages.fr/en/hackernews-feedback
                                                                          • jondubois 9 years ago
                                                                            I'm not a big fan of offline storage for web apps. Any serious app will quickly exceed the localStorage limit which is only 5mb.

                                                                            I would also question the decision to use HTTP for this purpose instead of WebSockets.

                                                                            • daleharvey 9 years ago
                                                                              IndexedDB is not limited to 5MB, its essentially unlimited in Chrome and Firefox. It can be tricky with mobile browsers but they often also have the option of using an unlimited web app wrapper (http://www.html5rocks.com/en/tutorials/offline/quota-researc...)

                                                                              And as for WebSockets, HTTP is easier to debug and experiment with, in my experience the performance difference for the typical use cases is negligible and when needed it is trivial to wrap the communication in a socket.

                                                                              • striking 9 years ago
                                                                                WebSockets are for fast, low-overhead connections. If you end up making a new HTTP connection for every update, and there are a lot of updates happening, you should be using WebSockets instead.

                                                                                Otherwise, HTTP works best. It has better tooling and will soon be even faster due to HTTP/2.

                                                                                • nojvek 9 years ago
                                                                                  I'm surprised no one mentions xhr streaming, if your pipe is only one way i.e server notifies client, then xhr streaming is quite easy to use and as fast as websockets.
                                                                                  • striking 9 years ago
                                                                                    I assume most people consider XHR a kind of HTTP request. It is in the name, after all.
                                                                                • Jx271 9 years ago
                                                                                  It really is a challenge. I don't think it'll be realistic to build mid-size, fully offline web apps (excluding tools like electron) until indexedDB has wider support. One solution is to garbage collect the oldest data from localStorage and sync with a server when you've got connection, but once you're offline you're kinda stuck with 5mb. However, caniuse.com/#feat=indexeddb is optimistic about the future. The company I work for is trying to make offline/decentralized apps more realistic (gundb.io, github.com/amark/gun) and storage limitations can be aggravating at times.
                                                                                  • daleharvey 9 years ago
                                                                                    Its realistic now, most people do not want to be using Indexeddb directly and pretty much all IndexedDB wrappers will fallback to webSQL. That gets support back to ie9 which is unsupported by most of the web.
                                                                                • brodo 9 years ago
                                                                                  This isn't really a complete replacement for Parse or Firebase as far as I can see. Apache Usergrid and Baasbox both provide more of the features that Firebase and Parse provide.
                                                                                  • estefan 9 years ago
                                                                                    If the parse web site wasn't such useless shit I might actually be able to work out whether this really is a good alternative... :-(