# @coboxcoop/schemas

> schemas and buffer encoders for log messages

Latest version **1.0.0-alpha.1** (published 2020-07-29) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @coboxcoop/schemas
pnpm add @coboxcoop/schemas
yarn add @coboxcoop/schemas
bun add @coboxcoop/schemas
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.1 |
| Published | 2020-07-29 |
| First published | 2020-07-29 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 136.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | magma collective |
| Maintainers | ameba23, kyphae |

## Links

- npm: https://www.npmjs.com/package/@coboxcoop/schemas
- Repository: https://gitlab.com/coboxcoop/schemas
- Homepage: https://cobox.cloud
- Issues: https://gitlab.com/coboxcoop/schemas/issues
- npm.io page: https://npm.io/package/@coboxcoop/schemas

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [is-my-json-valid](https://npm.io/package/is-my-json-valid.md) ^2.20.0
- [protocol-buffers-encodings](https://npm.io/package/protocol-buffers-encodings.md) ^1.1.0

## Recent versions

- 1.0.0-alpha.1 (latest) — 2020-07-29

## README

# schemas

<div align="center">
  <img src="https://cobox.cloud/src/svg/logo.svg">
</div>

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

## Table of Contents

  - [About](#about)
  - [Install](#install)
  - [Usage](#usage)
  - [API](#api)
  - [Contributing](#contributing)
  - [License](#license)

## About
**CoBox** is an encrypted p2p file system and distributed back-up tool. [README](https://gitlab.com/coboxcoop/readme) provides a map of the project.

`schemas` exports a set of object factories for use with a hypercore. Factories build payloads for a cobox-log using JSON schemas for validation and Protocol Buffers for encoding.

## Install
```
npm i -g @coboxcoop/schemas
```

## Usage
This module also exports all currently used message schemas in CoBox as raw validators and encoders.

See `/test` for examples

In order to use the protocol-buffers message encoders, you'll need to pre-compile them.

```
npm run compile
```

## API
See swagger documentation... (we won't have this for a while).

## Contributing

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

# License

[`AGPL-3.0-or-later`](./LICENSE)

---
_Source: https://npm.io/package/@coboxcoop/schemas · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
