# @gram-data/gram-builder

> AST builder for gram data graph format

Latest version **0.3.11** (published 2021-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gram-data/gram-builder
pnpm add @gram-data/gram-builder
yarn add @gram-data/gram-builder
bun add @gram-data/gram-builder
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.11 |
| Published | 2021-01-22 |
| First published | 2020-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 173.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Andreas Kollegger |
| Maintainers | akollegger |
| Keywords | graph, neo4j, gram |

## Links

- npm: https://www.npmjs.com/package/@gram-data/gram-builder
- Repository: https://github.com/gram-data/gram-js
- Homepage: https://gram-data.github.io/gram-js/api/modules/gram-builder
- Issues: https://github.com/gram-data/gram-js/issues
- npm.io page: https://npm.io/package/@gram-data/gram-builder

## Dependencies (2)

- [fp-ts](https://npm.io/package/fp-ts.md) ^2.9.1
- [@gram-data/gram-ast](https://npm.io/package/@gram-data/gram-ast.md) ^0.3.11

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.3.11 (latest) — 2021-01-22
- 0.4.0-alpha.8 (alpha) — 2021-01-22
- 0.3.10 — 2021-01-22
- 0.4.0-alpha.6 — 2021-01-22
- 0.4.0-alpha.5 — 2021-01-19
- 0.4.0-alpha.4 — 2021-01-16
- 0.4.0-alpha.3 — 2021-01-15
- 0.4.0-alpha.2 — 2021-01-15
- 0.4.0-alpha.1 — 2021-01-15
- 0.3.9 — 2021-01-13
- 0.3.9-alpha.2 — 2020-12-19
- 0.3.8 — 2020-12-16
- 0.3.7 — 2020-12-16
- 0.3.6 — 2020-12-16
- 0.3.5 — 2020-12-10
- … 24 more at https://npm.io/package/@gram-data/gram-builder/versions

## README

`()-[build]->(ast)`

Build valid `gram` AST.

## How to gram-builder

### Install:

``` bash
npm install @gram-data/gram-builder
```

### Build an AST:

``` TypeScript
import { node, edge } from '@gram-data/gram-builder';

const left = node('a');
const right = node('b');
const ast = edge([left, right], 'right');
```

## Next Steps

- Enrich record properties with js objects using [[gram-value]]
- Serializes to a string using [[gram-stringify]]
- Introspect the AST using [[gram-ast]]

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