parallel experiments ∈(・ω・)∋

Posted on Sep 15, 2022Read on Mirror.xyz

contributed to WeaveDB - Decentralized NoSQL Database

Donated to WeaveDB at GR15

About

WeaveDB is a decentralized NoSQL database on top of Arweave smart contracts (Warp / SmartWeave).

The immutable permanent storage of Arweave makes off-chain computation deterministic and at zero cost, which can achieve unlimited scalability and complexity totally apart from the blockchain itself. WeaveDB makes the most of this modular blockchain paradigm and brings real-time NoSQL databases, just like Firestore of Google, to the decentralized web.

WeaveDB also integrates the cryptography of EVM and Dfinity Internet Identity to the core authentication mechanism, which enables cross-chain dapps.

Features

The ultimate objective of WeaveDB is to realize web2-like UX both for developers and dapp users.

For developers,

・You can use a near real-time NoSQL database with query APIs like Firestore but all on smart contracts. This has never been possible with any other blockchain but Arweave. ・You can build complex logic by just configuring the DB on a web UI without writing smart contracts. ・Building dapps with web2-like data complexities and scalability is possible. ・You can use JS/TS or Rust for smart contract development. Also, we have invented a language agnostic JSON-based functional programming language called FPJSON to quickly build super complex logic for data validation and access control. Advanced logic can be stored on-chain as a pure JSON array.

For users,

The integration with Dfinity Internet Identity enables biometric authentication on any device and obsolete private key management. You can sign in with MetaMask as well, and it creates disposal keys for auto-signing transactions during a session. With Arweave, the protocol or dapp can cover your transaction fees/gas, so your actions are free. Thanks to Bundlr, transactions are processed instantly and guaranteed a later finality. Dapps will be very responsive and have versatile features both on the Web and mobile devices, just like web2 apps. Only you will own and control your own data, and dapps will be permissionless, trustless, and censorship-resistant with immutable permanent records.

Demo Dapps

The Wall 2 on Internet Computer

https://xdiw4-hiaaa-aaaai-qnnbq-cai.ic0.app

Social Bookmarking with Mirror.xyz scan

https://asteroid.ac

The Future possibilities

We believe WeaveDB will play a massive role in bringing web2-to-web3 adoption since it benefits both developers and end users to a great extent. The development of other scalable blockchains and technology may play a huge role too, but when it comes to the web UX, it’s hard to imagine any hyper-scalable blockchain such as L1/L2 with zkRollup will beat the combination of Arweave and the Internet Computer. The primary focus of such blockchains will most likely be on something other than the web.

What’s possible to build with WeaveDB

・Decentralized Blogging ・Decentralized Wikipedia ・Decentralized Twitter ・Decentralized Forum ・Decentralized Github

you name it!

Resources

Github Monorepo

https://github.com/asteroid-dao/weavedb

Docs

https://weavedb.asteroid.ac

FPJSON

https://fpjson.asteroid.ac

Smart Contract

https://sonar.warp.cc/?#/app/contract/2ohyMxM2Z2exV4dVLgRNa9jMnEY09H_I-5WkkZBR0Ns

Would you like to join us?

https://gitcoin.co/grants/7716/weavedb-decentralized-nosql-database