2.12.7 • Published 1 year ago

@dustil/http-client v2.12.7

Weekly downloads
-
License
(Apache-2.0 OR MI...
Repository
github
Last release
1 year ago

Ceramic http client

ceramicnetwork MIT license npm.io Twitter

An http client for the Ceramic protocol

Getting started

Installation

$ npm install @ceramicnetwork/http-client

Usage

See the Ceramic developer site for more details about how to use this package.

import CeramicClient from '@dustil/http-client'
import TileDocument from '@dustil/stream-tile'
import IdentityWallet from 'identity-wallet'

const API_URL = "http://localhost:7007"

const client = new CeramicClient(API_URL)

// create document example
const tileDocument = await TileDocument.create(ceramic, { test: 123 })

Ceramic API

Complete Ceramic core API is available on Ceramic API.

Development

Run tests:

$ npm test

Run linter:

npm run lint

Contributing

We are happy to accept small and large contributions. Make sure to check out the Ceramic specifications for details of how the protocol works.

License