2.0.0 • Published 1 year ago

@contextdao/context v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Context

Context, built on Arweave, aims to be the biggest repository of Public Data. Context is a UNS (Universal Name Service), and has three main components:

  • Smartpod: Smart contracts on arweave to store and evolve data.
  • SchemaDAO: A framework to create and evolve standards.
  • Universal Registry: Links data (Smartpods) with Schemas

Because Data needs context

Context is the next frontier in data interoperability. Data needs context to be understood and usable. We already have global databases of knowledge like Wikipedia, but we still lack a common language for this data to be used and integrated into any application.

Take NFTs in the Metaverse. An NFT for a car can be minted in a web3 game, but unless we have a known shared schema, that Car cannot be moved into a different game or metaverse. We need coordination of standards if we’re going to have data portability. We need a way to name things in a common language. And when we say standards, we mean simple open and collaborative schemas not controlled by any organization. We need cooperation.

Standards should be public goods. The only way we can have standards today is by going to international standardization bodies, where any standard takes months to years to be built. What if standards were created and evolved by the builders and users on short cycles. We need efficiency.

Basic Usage

To start playing on localhost, create a project install the SDK and start a local arweave node. You can also work with testnet and mainnet.

using npm:

npm i @contextdao/context --save

using Yarn:

yarn add @contextdao/context

and finally.. if you want to play on localhost.. :

npx arlocal

Ask for a resource (DataId)

  import {
    connectWallet,
    initContext,
    openWallet,
  } from '@contextdao/context'

  // Create a Context instance
  const context = await initContext({ network: 'localhost' })

  // Connect a Wallet (path to the wallet in your drive).
  // remember to add funds to the wallet => https://localhost:1984/mint/<addr>/100000000
  await connectWallet(context, openWallet(wallet))

Now the setup is complete and some Schemas have been added: Human, Organization... We recommend you to use also de CLI to interact with your installation.

💬 OUR RECOMENDATION:

  • Clone this repository into a specific folder
mk context
git clone git@github.com:contextDAO/context.git context
  • List the tests folder and have a look to the sdk*.test.ts files. You´re going to find all the necessary examples to able to integrate Context in your code.
2.0.0

1 year ago

1.9.0

1 year ago

1.8.7

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.6

1 year ago

1.8.5

1 year ago

1.8.4

1 year ago

1.2.0

1 year ago

1.6.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.4.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.7.4

1 year ago

1.1.0

1 year ago

1.7.3

1 year ago

1.7.2

1 year ago

1.7.1

1 year ago

1.3.5

1 year ago

1.7.0

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.5.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.0.51

1 year ago

1.0.50

2 years ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.41

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.49

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago