Giter Club home page Giter Club logo

demobase-alpha's Introduction

Demobase Alpha

This is an alpha version of Demobase, this is a PoC and by no means is meant to be used in production. If you dare, you're on your own.

Overview

Demobase is a platform enabling developers to build data-centric dapps, using document-oriented storage on-chain. It's modeled after Firebase, the core concepts are:

  • Application: The main structure in the platform, it's an account at a an address generated by the user with Keypair.generate(), Applications have a collection count and a name, its owner would be a dapp developer.
  • Collection: Applications consist of collections, each collection is an account at a PDA that uses as seed a "collection" string, a name and an application public key. Collections have a name, a document count and an application public key. It's owner would be a dapp developer.
  • Document: Collections consist of documents, each document is an account at a PDA that uses as seed a "document" string, a client-side generated id, an application public key and a collection public key. Documents have an id, a content, an application public key and a collection public key. It's owner would be an end-user.

There's a logical relation between structures that looks like this:

Application -> Collection -> Document

Right now, the dapp developers are responsible of generating the IDs for the documents. It's part of the project goals to have a way to ease this for developers.

Even though the document's content is stored as an array of 32 Uint8 values, the idea is to store these as JSON in Arweave and use Solana for handling indexing and fees, this enables users to interact with dapps that use Solana and Arweave but paying all the fees in Solana with a single wallet interaction.

Running tests

Make sure to have typescript and ts-mocha globally installed. Once you have all the required packages installed you can call npm run test from the root path of the project.

demobase-alpha's People

Contributors

danmt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.