Skip to content

trulyursdelv/pocketdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocket Database ⚡

Pocket Database Rest API

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
}])

Installation

Install Pocket Database via gem:

gem install pocketdb

Alternatively, add Pocket Database in your gemfile:

gem "pocketdb", "~> 1.0"

Documentations

Live Demo

If you want a quick view and tour to your website, you can use Pocket Database Live Demo.

Pocket Database Live Demo

Rest API

To be fully committed on being an on-the-go database, I implemented a simple CRUD-operated Rest API for Pocket Database.

Pocket Database Rest API

✨ Why 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.

Notice

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.

Limitations

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.

About

Telegra.ph as a pocket database. ⚡

Topics

Resources

License

Stars

Watchers

Forks

Languages