# Local Database

**URL:** https://forums.fusetools.com/t/local-database/6957
**Category:** Feature Suggestions
**Created:** [October 7, 2015, 4:41pm UTC](https://forums.fusetools.com/t/local-database/6957 "2015-10-07T16:41:51Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![juan](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/juan/32/118_2.png) [@juan](https://forums.fusetools.com/u/juan)
#### Post date: [October 7, 2015, 4:41pm UTC](https://forums.fusetools.com/t/local-database/6957/1 "2015-10-07T16:41:51Z")

</div>

It would be great to have access to a local database or have an implementation of something like TaffyDB ([http://www.taffydb.com/](http://www.taffydb.com/))

Something similar too, I think personally TaffyDB is great if you are storing your data remotly in a noSQL DB.

Looking forward to see others make recomendations as well.

---

<div class="post-metadata">

### Author: ![Jake\_Taylor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jake_taylor/32/512_2.png) [@Jake\_Taylor](https://forums.fusetools.com/u/Jake_Taylor)
#### Post date: [October 7, 2015, 5:41pm UTC](https://forums.fusetools.com/t/local-database/6957/2 "2015-10-07T17:41:07Z")

</div>

We do actually have an API for local storage: [https://www.fusetools.com/learn/fusejs#storage](https://www.fusetools.com/learn/fusejs#storage)

I’m skimming through the TaffyDB source now actually, and it appears it doesn’t have any kind of persistence out-of-the-box? Is this something you’re supposed to extend it with? It looks to me like it’s more of just a fancy db-like wrapper over in-memory objects. Is that correct? If that’s the case you should be able to just use it in your Fuse projects without any issues.

---

<div class="post-metadata">

### Author: ![Jake\_Taylor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jake_taylor/32/512_2.png) [@Jake\_Taylor](https://forums.fusetools.com/u/Jake_Taylor)
#### Post date: [October 7, 2015, 5:53pm UTC](https://forums.fusetools.com/t/local-database/6957/3 "2015-10-07T17:53:24Z")

</div>

Just found that its `store` function tries to use `localStorage`. We currently don’t have a proper shim for `setItem`/`getItem` etc so currently we don’t quite fit the bill for this API (given you want persistence), but that’s definitely on the roadmap 🙂

---

<div class="post-metadata">

### Author: ![Jake\_Taylor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jake_taylor/32/512_2.png) [@Jake\_Taylor](https://forums.fusetools.com/u/Jake_Taylor)
#### Post date: [October 7, 2015, 10:12pm UTC](https://forums.fusetools.com/t/local-database/6957/4 "2015-10-07T22:12:22Z")

</div>

Actually, I was wrong - I did some testing and it appears we DO in fact have this shim. Libraries like TaffyDB should work just fine out-of-the-box 🙂 As far as implementing our own solution, this isn’t something we’re interested right now with so many solutions like TaffyDB readily available.

---

<div class="post-metadata">

### Author: ![juan](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/juan/32/118_2.png) [@juan](https://forums.fusetools.com/u/juan)
#### Post date: [October 13, 2015, 7:51pm UTC](https://forums.fusetools.com/t/local-database/6957/5 "2015-10-13T19:51:07Z")

</div>

Jake,

Thank you so much for looking into this. I was going to check out the source and see if it stored locally or created a document that could be stored locally, then change it up a bit to use Fuse read/write.

Will test this out soon. Pretty cool stuff!

---

<div class="post-metadata">

### Author: ![Jake\_Taylor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jake_taylor/32/512_2.png) [@Jake\_Taylor](https://forums.fusetools.com/u/Jake_Taylor)
#### Post date: [October 14, 2015, 1:11am UTC](https://forums.fusetools.com/t/local-database/6957/6 "2015-10-14T01:11:03Z")

</div>

Awesome, let me know how it goes 🙂

---

<div class="post-metadata">

### Author: ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)
#### Post date: [August 12, 2016, 4:03pm UTC](https://forums.fusetools.com/t/local-database/6957/7 "2016-08-12T16:03:20Z")

</div>

Hi Juan

Did you already got it to work? Can you please send me some basic example or shed some light on the subject?

I’m very interested in embed some sort of local database funcionality, which taffyDB seems to provide very well.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)
#### Post date: [August 13, 2016, 1:13pm UTC](https://forums.fusetools.com/t/local-database/6957/8 "2016-08-13T13:13:41Z")

</div>

Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.

Give it a try.

---

<div class="post-metadata">

### Author: ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forums.fusetools.com/u/Tom1)
#### Post date: [August 13, 2016, 10:26pm UTC](https://forums.fusetools.com/t/local-database/6957/9 "2016-08-13T22:26:19Z")

</div>

> **[hector.lizarraga@gmail.com](mailto:hector.lizarraga@gmail.com) wrote:**
> 
> Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.
> 
> Give it a try.

An example would be good. I keep getting error. Also TaffyDB isn’t working either.

---

<div class="post-metadata">

### Author: ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)
#### Post date: [August 15, 2016, 12:45pm UTC](https://forums.fusetools.com/t/local-database/6957/10 "2016-08-15T12:45:53Z")

</div>

Tom: What is the error you got, maybe I can help?

---

<div class="post-metadata">

### Author: ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)
#### Post date: [August 16, 2016, 2:16pm UTC](https://forums.fusetools.com/t/local-database/6957/11 "2016-08-16T14:16:18Z")

</div>

> **Tom wrote:**
> 
> > **[hector.lizarraga@gmail.com](mailto:hector.lizarraga@gmail.com) wrote:**
> > 
> > Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.
> > 
> > Give it a try.
> 
> An example would be good. I keep getting error. Also TaffyDB isn’t working either.

Hi Tom

This is a basic example with ForerunnerDB. It’s the todo-app Fuse example using the ForeRunnerDB lib. Hope this can help you.

[https://db.tt/KSmKEp13](https://db.tt/KSmKEp13)

Greetings

---

<div class="post-metadata">

### Author: ![johnmangirazi](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@johnmangirazi](https://forums.fusetools.com/u/johnmangirazi)
#### Post date: [March 17, 2017, 3:33pm UTC](https://forums.fusetools.com/t/local-database/6957/12 "2017-03-17T15:33:14Z")

</div>

hello hector,the link is not available for download.Kindly assist .

---

<div class="post-metadata">

### Author: ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)
#### Post date: [March 17, 2017, 3:54pm UTC](https://forums.fusetools.com/t/local-database/6957/13 "2017-03-17T15:54:15Z")

</div>

Hi John, here’s the link:

[https://drive.google.com/file/d/0BwSpHryOIdwvNTllMGpoZk9NQ3M/view?usp=sharing](https://drive.google.com/file/d/0BwSpHryOIdwvNTllMGpoZk9NQ3M/view?usp=sharing)

---

<div class="post-metadata">

### Author: ![johnmangirazi](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@johnmangirazi](https://forums.fusetools.com/u/johnmangirazi)
#### Post date: [March 18, 2017, 11:07am UTC](https://forums.fusetools.com/t/local-database/6957/14 "2017-03-18T11:07:41Z")

</div>

Thank you Hector

---

<div class="post-metadata">

### Author: ![Reza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/reza/32/419_2.png) [@Reza](https://forums.fusetools.com/u/Reza)
#### Post date: [April 5, 2017, 12:40am UTC](https://forums.fusetools.com/t/local-database/6957/15 "2017-04-05T00:40:07Z")

</div>

I got result both from Forerunner and taffy however none of them are persistent. just stop the app and the data is gone ☹  
I tested Hector code as well, It’s not persistent. Stop the app and start it again , all data is gone!

---

<div class="post-metadata">

### Author: ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)
#### Post date: [April 5, 2017, 12:52am UTC](https://forums.fusetools.com/t/local-database/6957/16 "2017-04-05T00:52:07Z")

</div>

Hi Reza

I have it running in production embeded in my app and it’s data persistent. Sorry that my example it’s not.

Look at the forerunnerDB docs, there’s a section called “Data Persistence (Save and Load Between Pages)” that shows you how to use the load and save methods to achieve data persistence.

Greetings
