@ceramicnetwork/core
Version:
Typescript implementation of the Ceramic protocol
54 lines (37 loc) • 1.63 kB
Markdown
# Ceramic Core

[](https://lbesson.mit-license.org/)
[](https://discord.gg/6VRZpGP)
[](https://twitter.com/ceramicnetwork)
> This package contains the implementation of the core Ceramic protocol. It's exposed using a simple JavaScript API.
## Getting started
### Installation
```
$ npm install @ceramicnetwork/core
```
### Usage
See the [Ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.
```
import Ceramic from '@ceramicnetwork/core'
import TileDocument from '@ceramicnetwork/stream-tile'
import { create as createIPFS } from 'ipfs-core'
const ipfs = createIPFS()
const config: CeramicConfig = {}
const ceramic = await Ceramic.create(ipfs, config)
// create document example
const tileDocument = await TileDocument.create(ceramic, { test: 123 })
```
### Ceramic API
Complete Ceramic core API is available on [Ceramic API](https://github.com/ceramicnetwork/js-ceramic/blob/master/packages/common/src/ceramic-api.ts).
## 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](https://github.com/ceramicnetwork/ceramic/blob/main/SPECIFICATION.md) for details of how the protocol works.
## License