open-index/open-npm huggingface dataset:
npm package: @ipfn/keypair
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![npm](https://img.shields.io/npm/v/@ipfn/keypair.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/keypair) [![Depende
Latest version: 0.0.1

# IPFN crypto keys in JavaScript

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![npm](https://img.shields.io/npm/v/@ipfn/keypair.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/keypair)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-keypair.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-keypair)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-keypair/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-keypair?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-keypair.svg)](https://circleci.com/gh/ipfn/js-ipfn-keypair)

Crypto keys generation helpers for IPFN implementation in JavaScript.

This package currently is a simple wrapper for [libp2p/js-peer-id](https://github.com/libp2p/js-peer-id).

## Install

This project is available through npm. To install run:

```bash
> npm install @ipfn/keypair
```

## Usage

See package [tests](./tests) for examples.

## Project

This source code is part of [IPFN](https://github.com/ipfn) – interplanetary functions project.
npm package: @ipfn/neurons
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![npm](https://img.shields.io/npm/v/@ipfn/neurons.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/neurons) [![Depende
Latest version: 0.0.10
Deprecated: Use @ipfn/cell instead

# IPFN Neurons builder in JavaScript

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![npm](https://img.shields.io/npm/v/@ipfn/neurons.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/neurons)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-neurons.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-neurons)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-neurons/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-neurons?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-neurons.svg)](https://circleci.com/gh/ipfn/js-ipfn-neurons)

Builders for IPFN neurons definitions in JavaScript.

## Install

This project is available through npm. To install run:

```console
$ npm install @ipfn/neurons
```

## Usage

Following example is a **deep neuron** which is a `Counter` witch `increment` interface.

```JavaScript
import { neuron, synaptic } from '@ipfn/neurons';
import SynapticTypes from '@ipfn/synaptic-types';

const count = synaptic('count', SynapticTypes.Number);

const counter = neuron('Counter')
  .input(count)
  .node(
    neuron('increment')
      .input(count)
      .output(count)
  )
  .build();
```

See package [tests](./tests) for more examples.

## Project

This source code is part of [IPFN](https://github.com/ipfn) – interplanetary functions project.
npm package: @ipfn/neurons-pb
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![Dependency Status](https://david-dm.org/ipfn/js-ipfn-neurons-pb.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-neurons-pb) [![Dev
Author: Łukasz Kurowski
Latest version: 0.0.10
Deprecated: Use @ipfn/cell-pb instead

# IPFN Neurons protocol buffers in JS

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-neurons-pb.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-neurons-pb)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-neurons-pb/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-neurons-pb?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-neurons-pb.svg)](https://circleci.com/gh/ipfn/js-ipfn-neurons-pb)

This package exposes [**protocol buffers**](https://github.com/mafintosh/protocol-buffers) IPFN neurons [definition messages](https://github.com/ipfn/neurons-pb/blob/master/neurons.proto) for JavaScript.

## Install

This project is available through npm. To install run:

```console
$ npm install @ipfn/neurons-pb
```

## Usage

To know more about how to use exported messages see [**protocol buffers**](https://github.com/mafintosh/protocol-buffers) documentation.

## Project

This source code is part of [IPFN](https://github.com/ipfn) – interplanetary functions project.
npm package: @ipfn/runtime
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![npm](https://img.shields.io/npm/v/@ipfn/runtime.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/runtime) [![Depende
Latest version: 0.0.1

# IPFN runtime in JavaScript

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![npm](https://img.shields.io/npm/v/@ipfn/runtime.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/runtime)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-runtime.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-runtime)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-runtime/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-runtime?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-runtime.svg)](https://circleci.com/gh/ipfn/js-ipfn-runtime)

IPFN neurons runtime in JavaScript.

## Install

This project is available through npm. To install run:

```console
$ npm install @ipfn/runtime
```

## Requirements

To import projects from `IPFS` it should me mounted at `/ipfs/` and `NODE_PATH` should point to it.

```console
$ ipfs mount
IPFS mounted at: /ipfs
IPNS mounted at: /ipns
$ export NODE_PATH=/ipfs
```

## Usage

This example uses a [counter](https://ipfs.io/ipfs/QmSidsSRhbtHUGorPhNZC5HBMM6zvCgVTRa9RYH637sE2S) – [example package](https://github.com/ipfn-examples/js-ipfn-counter).

```JavaScript
import Session from '@ipfn/session';
import { fire, subscribe, lookup } from '@ipfn/runtime';

// Create a new session of firings
const session = new Session();

// Lookup `Counter` neuron
const counter = lookup('QmSidsSRhbtHUGorPhNZC5HBMM6zvCgVTRa9RYH637sE2S/Counter');

// We will log to console all firings during this session
subscribe(session, counter.increment.count, count => {
  console.log(`Incremented to ${count}`);
});

// Fire `5` on `count` input on `increment` neuron
fire(session, counter.increment.count, 5);
```

See package [tests](./tests) for more examples.
npm package: @ipfn/session
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![Dependency Status](https://david-dm.org/ipfn/js-ipfn-session.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-session) [![Dev Depen
Author: Łukasz Kurowski
Latest version: 0.0.0

# IPFN Neuron firings Session in JavaScript

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-session.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-session)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-session/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-session?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-session.svg)](https://circleci.com/gh/ipfn/js-ipfn-session)

 IPFN neurons runtime session in JavaScript.

## Install

This project is available through npm. To install run:

```bash
> npm install @ipfn/session
```

## Usage

```JavaScript
import Session from '@ipfn/session';
import SynapticTypes from '@ipfn/synaptic-types';
import { neuron, synaptic } from '@ipfn/neurons';
import { fire, subscribe, lookup } from '@ipfn/runtime';

// const c = 'QmY3JV1FWbKLyr4SaRpbKpB1J1JEEyTTB3oZTTxAsF8gJC';

// Create a new session of firings
const session = new Session(keys);

// Lookup `Counter` neuron
const counter = lookup('QmY3JV1FWbKLyr4SaRpbKpB1J1JEEyTTB3oZTTxAsF8gJC/Counter');

// We will log to console all firings during this session
subscribe(session, counter.increment.count, count => {
  console.log(`Incremented to ${count}`);
});

// Fire `5` on `count` input on `increment` neuron
fire(session, counter.increment.count, 5);
```

See package [tests](./tests) for more examples.
npm package: @ipfn/synaptic-types
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![Dependency Status](https://david-dm.org/ipfn/js-ipfn-synaptic-types.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-synaptic-type
Latest version: 0.1.0

# IPFN Synaptic Types in JavaScript

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![Dependency Status](https://david-dm.org/ipfn/js-ipfn-synaptic-types.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-synaptic-types)
[![Dev Dependency Status](https://david-dm.org/ipfn/js-ipfn-synaptic-types/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/js-ipfn-synaptic-types?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/js-ipfn-synaptic-types.svg)](https://circleci.com/gh/ipfn/js-ipfn-synaptic-types)

This package exports JavaScript definitions of IPFN **synaptic types**.

| IPFN Name | String    | Type             |
|-----------|-----------|------------------|
| Bool      | bool      | boolean          |
| Buffer    | buffer    | buffer           |
| Number    | number    | number           |
| String    | string    | string           |

## Install

This project is available through npm. To install run:

```console
$ npm install @ipfn/synaptic-types
```

## Project

This source code is part of [IPFN](https://github.com/ipfn) – interplanetary functions project.
npm package: @ipfn/ts-neuron-gen
Description: [![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn) [![npm](https://img.shields.io/npm/v/@ipfn/ts-neuron-gen.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/ts-neuron-gen
Author: Łukasz Kurowski
Latest version: 0.0.10

# ts-neuron-gen – <sub><sup>IPFN Neurons definitions from TypeScript</sub></sup>

[![IPFN project](https://img.shields.io/badge/project-IPFN-blue.svg?style=flat-square)](http://github.com/ipfn)
[![npm](https://img.shields.io/npm/v/@ipfn/ts-neuron-gen.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/@ipfn/ts-neuron-gen)
[![Dependency Status](https://david-dm.org/ipfn/ts-neuron-gen.svg?style=flat-square)](https://david-dm.org/ipfn/ts-neuron-gen)
[![Dev Dependency Status](https://david-dm.org/ipfn/ts-neuron-gen/dev-status.svg?style=flat-square)](https://david-dm.org/ipfn/ts-neuron-gen?type=dev)
[![Circle CI](https://img.shields.io/circleci/project/ipfn/ts-neuron-gen.svg)](https://circleci.com/gh/ipfn/ts-neuron-gen)


This package provides `ts-neuron-gen` command line tool that generates **neurons** definitions from **TypeScript** source code.

## Install

This project is available through npm. To install run:

```console
$ npm install -g @ipfn/ts-neuron-gen
```

## Usage

It generates `neurons.json` and `neurons.pb` descriptor files from command line or using JavaScript API.

## Usage in CLI

In a TypeScript project with a `package.json` and a `tsconfig.json` run:

```console
$ ts-neuron-gen
```

It will generate `neurons.json` file containing definitions of neurons for all exported `functions` and `classes` in the project.

## Usage in JavaScript

Take a look at [bin/ts-neuron-gen.ts](bin/ts-neuron-gen.ts) code to see example usage.

## Project

This source code is part of [IPFN](https://github.com/ipfn) – interplanetary functions project.