Pocket Database is a lightweight tool that utilizes Telegraph API as a database. It is limitless, public, and on-the-go.
require "pocketdb"
pdb = PocketDatabase.new
pdb.write("users", [{
name: "Jane Doe",
gender: "Female",
age: 24
}])
Install Pocket Database via gem:
gem install pocketdb
Alternatively, add Pocket Database in your gemfile:
gem "pocketdb", "~> 1.0"
If you want a quick view and tour to your website, you can use Pocket Database Live Demo.
To be fully committed on being an on-the-go database, I implemented a simple CRUD-operated Rest API for Pocket Database.
If you need an on-the-go database without hassle setups, Pocket Database is one of your best choice.
Creating database and creating records (pages) is limitless, which means you can create many databases and records as you want.
Since Pocket Database utilizes Telegraph API, please expect that your data can be viewed publicly if your database token has been compromised.
However, all data written by Pocket Database is minimally encrypted. You cannot view the actual data on Telegraph's website but you can view it through Pocket Database.
Please use Pocket Database with caution, especially for sensitive data.
Even though creating databases is limitless, its content is not. According to Telegraph, you can only store 64kB of data per record (per page).
Since creating records is limitless, I suggest you to expand and populate your data into multiple records.