# @spartan-hc/zomelets

> Tools for implementing the Zomelet specification in Javascript

Latest version **0.2.0** (published 2024-01-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install @spartan-hc/zomelets
pnpm add @spartan-hc/zomelets
yarn add @spartan-hc/zomelets
bun add @spartan-hc/zomelets
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2024-01-09 |
| First published | 2023-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 105.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Brisebois |
| Maintainers | brisebom |

## Links

- npm: https://www.npmjs.com/package/@spartan-hc/zomelets
- Repository: https://github.com/spartan-holochain-counsel/zomelets-js
- Homepage: https://github.com/spartan-holochain-counsel/zomelets-js#readme
- Issues: https://github.com/spartan-holochain-counsel/zomelets-js/issues
- npm.io page: https://npm.io/package/@spartan-hc/zomelets

## Dependencies (1)

- [@whi/weblogger](https://npm.io/package/@whi/weblogger.md) ^0.2.0

## Recent versions

- 0.2.0 (latest) — 2024-01-09
- 0.1.3 — 2023-11-21
- 0.1.2 — 2023-10-05
- 0.1.1 — 2023-10-05
- 0.1.0 — 2023-10-05

## README

[![](https://img.shields.io/npm/v/@spartan-hc/zomelets/latest?style=flat-square)](http://npmjs.com/package/@spartan-hc/zomelets)

# Zomelets
Tools for defining configuration according to the Zomelet Specification.

[![](https://img.shields.io/github/issues-raw/spartan-holochain-counsel/zomelets-js?style=flat-square)](https://github.com/spartan-holochain-counsel/zomelets-js/issues)
[![](https://img.shields.io/github/issues-closed-raw/spartan-holochain-counsel/zomelets-js?style=flat-square)](https://github.com/spartan-holochain-counsel/zomelets-js/issues?q=is%3Aissue+is%3Aclosed)
[![](https://img.shields.io/github/issues-pr-raw/spartan-holochain-counsel/zomelets-js?style=flat-square)](https://github.com/spartan-holochain-counsel/zomelets-js/pulls)


## Overview
The official Javascript implementation of the [Zomelets
Specification](https://github.com/spartan-holochain-counsel/zomelets-specification).


## Install

```bash
npm i @spartan-hc/zomelets
```


## Simplest Usage

```js
import { EntryHash } from '@spartan-hc/holo-hash';
import { Zomelet } from '@spartan-hc/zomelets';

export const ThingZomelet = new Zomelet({
    async create_thing ( thing ) {
        return new EntryHash( await this.call( thing ) );
    },

    // Virtual functions
    async create_things ( things = [] ) {
        return await Promise.all( things.map( thing => this.functions.create_thing(thing) ) );
    },
});
```


### Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md)

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