I’ve first heard about this in the elixir podcast (interview with the developer). The developers where nice enough to put up a couple of example apps on github, which uses SQLite as a local database.
Note that the solution is not perfect yet, e.g. it only supports the use cases the developers need for their application so far. However additional features like gyroscope access could be added if needed.