This package has been deprecated

Author message:

Package has been renamed to: @ceramicnetwork/core

@ceramicnetwork/ceramic-core
TypeScript icon, indicating that this package has built-in type declarations

0.12.4 • Public • Published

Ceramic Core

This package contains the implementation of the core Ceramic protocol. It's exposed using a simple JavaScript API.

Getting started

Installation

$ npm install @ceramicnetwork/ceramic-core

Usage

import Ceramic from '@ceramicnetwork/ceramic-core'

import IPFS from 'ipfs'
import dagJose from 'dag-jose'
import basicsImport from 'multiformats/cjs/src/basics-import.js'
import legacy from 'multiformats/cjs/src/legacy.js'

basicsImport.multicodec.add(dagJose)
const format = legacy(basicsImport, dagJose.name)

const ipfs = Ipfs.create({
    ipld: { formats: [format] },
})

const config: CeramicConfig = {}
const ceramic = await Ceramic.create(ipfs, config)

// create document example
const doctype1 = await ceramic.createDocument('tile', { content: { test: 123 } }, { applyOnly: true }) 

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

Package Sidebar

Install

npm i @ceramicnetwork/ceramic-core

Weekly Downloads

59

Version

0.12.4

License

(Apache-2.0 OR MIT)

Unpacked Size

174 kB

Total Files

63

Last publish

Collaborators

  • oed