@stencila/schema
Version:
Stencila schema and other specifications
52 lines (34 loc) • 2.25 kB
Markdown
# Stencila schemas, protocols and other specs
[](https://travis-ci.org/stencila/schema)
[](https://codecov.io/gh/stencila/schema)
[](https://app.netlify.com/sites/stencila-schema/deploys)
[](https://schema.stenci.la/)
[](https://community.stenci.la)
<!-- Automatically generated TOC. Don't edit, `make docs` instead -->
<!-- toc -->
- [Documentation](#documentation)
- [JSON Schema definitions](#json-schema-definitions)
- [JSON-LD context](#json-ld-context)
- [Typescript type definitions](#typescript-type-definitions)
<!-- tocstop -->
This repository aims to document, and provide reference implementations for, the schemas, protocols and other specifications used in Stencila.
As much as possible, we use existing specifications, and avoid defining any new ones. External specifications that we currently use, or plan to use, include [Apache Avro], [JSON-LD], [JSON-RPC], [JSON-Schema], [Schema.org], [BioSchemas], [CodeMeta] and [OpenSchemas]. In many ways, this repository simply documents how these existing standards are utilised within Stencila.
## Documentation
Documentation is available at https://schema.stenci.la/.
## JSON Schema definitions
JSON Schemas are defined in the [`schema`](schema) directory.
## JSON-LD context
A JSON-LD `@context` is generated from the JSON Schema sources is available at https://schema.stenci.la/stencila.jsonld.
## Typescript type definitions
Typescript type definitions are generated from the JSON Schema sources and can be used by installing the Node.js package:
```bash
npm install @stencila/schema --save
```
[apache avro]: (https://avro.apache.org)
[bioschemas]: (https://bioschemas.org)
[codemeta]: (https://codemeta.github.io)
[json-ld]: (https://json-ld.org)
[json-rpc]: (https://www.jsonrpc.org)
[json-schema]: (https://json-schema.org)
[openschemas]: (https://openschemas.github.io)
[schema.org]: (https://schema.org)