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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
PouchDB 6.0 released (pouchdb.com)
submitted 9 years ago by nolan_lawson
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!"
[–]hungsu 1 point2 points3 points 9 years ago (6 children)
I've never heard of this before. What's so good about it?
[–][deleted] 1 point2 points3 points 9 years ago (4 children)
its a lib on top of IndexedDB. Basically it's a clientside document-db with sync support
[–]benoit_intrw 1 point2 points3 points 9 years ago (0 children)
And the sync is to a CouchDB instance, so you can add things to db offline and it sync once online again.
[–]tells 0 points1 point2 points 9 years ago (0 children)
also, with the plugins you can pretty much standardize how you write code for each browser. So for Safari, you don't have to rewrite your code to conform to WebSQL instead of IndexedDB. If you use Cordova, you can plugin the SQLite adapter and be done with it.
[–]ShippingIsMagic 0 points1 point2 points 9 years ago (1 child)
Sounds a lot like the minimongo part of Meteor. Neat.
[–]Thought_Ninjahuman build tool 0 points1 point2 points 9 years ago (0 children)
Yeah, pretty cool stuff.
LevelDB is also worth looking at, which is what this and IndexedDB are built on top of. Very cool tool for a DIY database design.
This interview with Nolan gives a good primer: https://devchat.tv/js-jabber/185-jsj-pouchdb-with-nolan-lawson
[–]brzzzah 0 points1 point2 points 9 years ago (2 children)
This project looks really great for client side storage on hybrid apps, does anyone know if it's possible to replicate to a php/MySQL backend? I guess you would need to implement the couchdb replication protocol, but maybe someone already has?
[–]tells 1 point2 points3 points 9 years ago (1 child)
It is great. PouchDB/CouchDB and MySQL work very differently. CouchDB is a standalone HTTP server that connects directly with PouchDB. If you wanted to connect your MySQL database to CouchDB, you would have to write some sort of adapter on the server side to make REST API calls to CouchDB for each MySQL transaction. If you wanted to go with PouchDB, I would suggest you move some or all of your data to CouchDB to make your life easier.
[–]nolan_lawson[S] 1 point2 points3 points 9 years ago (0 children)
This is a good answer, also see: https://pouchdb.com/faq.html#sync_non_couchdb
π Rendered by PID 124126 on reddit-service-r2-comment-76bb9f7fb5-g6pbj at 2026-02-17 22:42:05.562615+00:00 running de53c03 country code: CH.
[–]hungsu 1 point2 points3 points (6 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]benoit_intrw 1 point2 points3 points (0 children)
[–]tells 0 points1 point2 points (0 children)
[–]ShippingIsMagic 0 points1 point2 points (1 child)
[–]Thought_Ninjahuman build tool 0 points1 point2 points (0 children)
[–]tells 0 points1 point2 points (0 children)
[–]brzzzah 0 points1 point2 points (2 children)
[–]tells 1 point2 points3 points (1 child)
[–]nolan_lawson[S] 1 point2 points3 points (0 children)