# @ethan_arrowood/graphy

> A not so serious graph database

Latest version **0.0.2** (published 2019-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ethan_arrowood/graphy
pnpm add @ethan_arrowood/graphy
yarn add @ethan_arrowood/graphy
bun add @ethan_arrowood/graphy
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-11-27 |
| First published | 2019-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ethan Arrowood |
| Maintainers | ethan_arrowood |
| Keywords | typescript, graph, database, nodejs |

## Links

- npm: https://www.npmjs.com/package/@ethan_arrowood/graphy
- Repository: https://github.com/Ethan-Arrowood/graphy
- Homepage: https://github.com/Ethan-Arrowood/graphy#readme
- Issues: https://github.com/Ethan-Arrowood/graphy/issues
- npm.io page: https://npm.io/package/@ethan_arrowood/graphy

## 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.0.2 (latest) — 2019-11-27
- 0.0.1 — 2019-11-27

## README

# Graphy ⛄️

A not so serious graph database written in TypeScript and operating in memory.

```
npm i @ethan_arrowood/graphy
```

## Example

Input:
```typescript
import Graphy from '@ethan_arrowood/graphy'

// For JS users:
// const { Graphy } = require('@ethan_arrowood/graphy') 

const db = new Graphy()

const nodeA = db.addNode('a')
const nodeB = db.addNode('b')
const nodeC = db.addNode('c')

const relation1 = db.addRelation('foo', nodeA, nodeB)
const relation2 = db.addRelation('bar', nodeB, nodeC)

console.log(nodeA.toString())
console.log(nodeB.toString())
console.log(nodeC.toString())

console.log(relation1.toString())
console.log(relation2.toString())
```

Output:
```
GraphyNode [1]: a
GraphyNode [2]: b
GraphyNode [3]: c
GraphyRelationship [4]: (1)-(foo)-(2)
GraphyRelationship [5]: (2)-(bar)-(3)
```

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