github_storage

Last updated:

0 purchases

github_storage Image
github_storage Images
Add to Cart

Description:

github storage

GithubStorage #
This package provides a convenient way to persist key-value pairs directly within your GitHub repository. Using implementation of (https://pub.dev/packages/github) Thanks to (https://github.com/SpinlockLabs)
Features #

Secure Storage: Leverages GitHub's secrets management for secure storage of your data, use private repository.
Easy to Use: Simple API for storing and retrieving data.
Integrated with Dart: Works seamlessly within your Dart projects.

Getting started #
dependencies:
github_storage: ^any
copied to clipboard
Usage #
Register your github account
final git = GithubStorage(
username: "this is yours",
personalAccessToken: "yout token",
repository: "your repo");
copied to clipboard
Create file and folder first if does not exist yet in your repo
await git.createBox(name: "user", folder: "data");
copied to clipboard
Create object of GithubBox
GithubBox userBox = git.box(name: "user", folder: "data");
copied to clipboard
Save, get, delete
await userBox.put("isDarkTheme", true);
await userBox.remove("user");
bool isDark = await userBox.get("isDark");
copied to clipboard
Or save an object
Map user = {
"user": "jack",
"no": 10,
"color": [
"red",
"blue",
],
"planet": {"earth": "moon"}
};

await userBox.put("jack", user);
copied to clipboard
#
Note: This description emphasizes security and ease of use. Remember to replace "Secure Storage" with the specific mechanism your package uses (e.g., encrypted files) if it's different from GitHub secrets.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.