open-index/open-npm huggingface dataset:
npm package: @indigocore/angular-mapexplorer
Description: AngularJS 1.6 directive to display an Indigo Map Explorer.
Author: Stratumn Team
Latest version: 0.3.0

# angular-mapexplorer

AngularJS 1.6 directive to display an Indigo Map Explorer

[![npm](https://img.shields.io/npm/v/@indigocore/angular-mapexplorer.svg)](https://www.npmjs.com/package/@indigocore/angular-mapexplorer)

## Demo
http://stratumn.github.io/angular-mapexplorer/

## Install

### npm

```
$ npm install @indigocore/angular-mapexplorer
```

You might also need `tinycolor.js` and `angular-drop`.


## Usage

```html
<st-map-explorer chainscript="home.json" refresh="0"></st-map-explorer>
```

or

```html
<st-map-explorer agentUrl="home.agentUrl" map-id="home.mapId" process="home.process" options="{showTagColorConfiguration: true}"></st-map-explorer>
```

### Options

##### showTagColorConfiguration
```
Default: false
```

Display the tag color legend and allow configuration


#### onSegmentShow
```
Default: noop
```

Callback called when a segment content is displayed with the segment in argument

#### onSegmentHide
```
Default: noop
```

Callback called when a segment content is hidden

Plus all options inherited from [MapExplorer Core](https://github.com/stratumn/js-indigocore/tree/master/packages/mapexplorer-core)

## Development

Build and launch demo app:

```
npm run build:demo
node docs/server.js
```

The application will be served at `localhost:3300`
npm package: @indigocore/angular2-mapexplorer
Description: [![npm](https://img.shields.io/npm/v/@indigocore/angular2-mapexplorer.svg)](https://www.npmjs.com/package/@indigocore/angular2-mapexplorer)
Author: Stratumn team
Latest version: 0.3.0

# Angular2Mapexplorer

[![npm](https://img.shields.io/npm/v/@indigocore/angular2-mapexplorer.svg)](https://www.npmjs.com/package/@indigocore/angular2-mapexplorer)

This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.14.

## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## Deploying to Github Pages

Run `ng github-pages:deploy` to deploy to Github Pages.

## Further help

To get more help on the `angular-cli` use `ng --help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @indigocore/cs-validator
Description: Core library for building Map Explorer components
Author: Stratumn Team
Latest version: 0.3.0

# MapExplorer Core

Library for validating chainscript objects

[![npm](https://img.shields.io/npm/v/@indigocore/cs-validator.svg)](https://www.npmjs.com/package/@indigocore/cs-validator)

## Installation

### Browser

```html
<!-- Polyfill for browser compatibility -->
<script src="https://libs.stratumn.com/babel-polyfill.min.js"></script>
<!-- Actual Library -->
<script src="https://libs.stratumn.com/cs-validator.js"></script>
```

If you want a specific version, include `https://libs.stratumn.com/cs-validator{version}.js` instead (for instance `https://libs.stratumn.com/cs-validator-0.1.0.js`).


### Node.js

```
$ npm install @indigocore/cs-validator
```

```javascript
var StratumnCsValidator = require('@indigocore/cs-validator');

// or using es6
import { MapValidator, SegmentValidator } from '@indigocore/cs-validator';
```

## Usage

### Validate a chainscript

```javascript
new StratumnCsValidator.MapValidator(JSON.parse(chainscript)).validate()
```

Returns a Promise that resolves to an error object such as:

```
{
      linkHash: [Promise, ...],
      stateHash: [Promise, ...],
      merklePath: [Promise, ...],
      fossil: [Promise, ...]
}
```

Each promise, in each array of each category resolves to an error string if an inconsistency has been detected. It resolves to null otherwise.

Errors can be retrieved with (for instance):

```javascript
Promise.all(errors.linkHash).
  then(err => err.filter(Boolean));
```

## Development

Install dependencies:

```
$ npm install
```

Build:

```
$ npm run build
```

Test:

```
$ npm test
```

The integration tests use a build version of the library. Make sure you've run `npm run build` if you want your changes to be taken into account.
npm package: @indigocore/ember-mapexplorer
Description: Ember addon that displays a Map Explorer
Author: Stratumn team
Latest version: 0.3.0

# Ember MapExplorer

[![build status](https://travis-ci.org/stratumn/ember-mapexplorer.svg?branch=master)](https://travis-ci.org/stratumn/ember-mapexplorer?branch=master)

Ember addon that provides map-explorer, a component that displays a Chain Map

## Installation

Install the ember-cli addon in your ember-cli project:

```
$ ember install @indigocore/ember-mapexplorer
```

This should automatically install ember-cli-sass.

If you want to take advantage of default styles you may add:

```
@import '@indigocore/mapexplorer-core';
@import '@indigocore/ember-mapexplorer';
```

in your `app/styles/app.scss`.

You can also override default variables.

## Usage

With an agent URL, a map ID and a process name:

```
{{map-explorer agentUrl="http://localhost:4000" mapId="57743311d6a22a8f2bd2bec1" process="myProcess"}}
```

With a chainscript (a JSON string or the array of segments as a POJO):

```
{{map-explorer chainscript=myChainscript}}
```
npm package: @indigocore/react-mapexplorer
Description: React component that displays a Map Explorer
Author: Stratumn
Latest version: 0.3.0

# react-mapexplorer

A react component used to display a Map Explorer from chainscript.

[![npm](https://img.shields.io/npm/v/@indigocore/react-mapexplorer.svg)](https://www.npmjs.com/package/@indigocore/react-mapexplorer)

## Installation

```
npm install @indigocore/react-mapexplorer --save
```

#### Local Development

Now you're ready to run a local version of rollup that will watch your `src/` component and automatically recompile it into `dist/` whenever you make changes.

We'll also be running our `example/` create-react-app that's linked to the local version of your `react-mapexplorer` module.

```bash
# run example to start developing your new component against
npm link # the link commands are important for local development
npm install # disregard any warnings about missing peer dependencies
npm start # runs rollup with watch flag

# (in another tab, run the example create-react-app)
cd example
npm link @indigocore/react-mapexplorer
npm install
npm start # runs create-react-app hot-reload dev server
```

Now, anytime you make a change to your component in `src/` or to the example application's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.

## License

Copyright 2017 Stratumn SAS. All rights reserved.

Unless otherwise noted, the source files are distributed under the Apache
License 2.0 found in the LICENSE file.
npm package: @indigocore/tmpop-explorer
Description: Block Explorer for Indigo Tendermint Store
Author: Stratumn
Latest version: 0.3.0

# TMPop Explorer

A block explorer for Indigo's Tendermint Store.

[![npm](https://img.shields.io/npm/v/@indigocore/tmpop-explorer.svg)](https://www.npmjs.com/package/@indigocore/tmpop-explorer)

## Installation

```
npm install --save @indigocore/tmpop-explorer
```


## Local Development

You should first run a local version of rollup that will watch your `src/` component and automatically recompile it into `lib/` whenever you make changes.

We'll also be running our `app/` create-react-app that's linked to the local version of your `tmpop-explorer` module.

```bash
yarn link # the link commands are important for local development
yarn start # runs rollup with watch flag

# (in another tab, run the app)
cd app
yarn link @indigocore/tmpop-explorer
yarn
yarn start # runs create-react-app hot-reload dev server
```

Now, anytime you make a change to your component in `src/` or to the application's `app/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.


## Installation

The easiest way to use tmpop-explorer is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), [Webpack](http://webpack.github.io/), etc).

```
yarn install @indigocore/tmpop-explorer
```


## Usage

Include the react component in your application:

```
var TMPopExplorer = require('@indigocore/tmpop-explorer');

// OR with ES6 import
import TMPopExplorer from '@indigocore/tmpop-mapexplorer';

<TMPopExplorer remote="localhost:46657"/>
```

If your application already uses a router, the tmpop explorer can also be "mounted":

```
<Router history={browserHistory}>
	<Route path='/blockexplorer*' mount='/blockexplorer' component={TMPopExplorer} remote="localhost:46657"/>
</Router>
```

Note: the path should always end with * so that subroutes work. Make sure it doesn't conflict with your application.

### Properties

* `remote`: the address used to contact the Indigo Node (mandatory).
* `mount`: the mountpoint for the tmpop explorer in your routing scheme (mandatory if included as a route).

## Development (`src`, `lib` and the build process)

**NOTE:** The source code for the component is in `src`. A transpiled CommonJS version (generated with Babel) is available in `lib` for use with node.js, browserify and webpack. A UMD bundle is also built to `lib`, which can be included without the need for any build system.

## License

Copyright 2017 Stratumn SAS. All rights reserved.

Unless otherwise noted, the TMPop Explorer source files are distributed under the Apache License 2.0 found in the LICENSE file.
npm package: @indigoframework/angular-mapexplorer
Description: AngularJS 1.6 directive to display an Indigo Map Explorer.
Author: Stratumn Team
Latest version: 0.3.0-rc1

# angular-mapexplorer

AngularJS 1.6 directive to display an Indigo Map Explorer

[![npm](https://img.shields.io/npm/v/@indigoframework/angular-mapexplorer.svg)](https://www.npmjs.com/package/@indigoframework/angular-mapexplorer)

## Demo
http://stratumn.github.io/angular-mapexplorer/

## Install

### npm

```
$ npm install @indigoframework/angular-mapexplorer
```

You might also need `tinycolor.js` and `angular-drop`.


## Usage

```html
<st-map-explorer chainscript="home.json" refresh="0"></st-map-explorer>
```

or

```html
<st-map-explorer agentUrl="home.agentUrl" map-id="home.mapId" process="home.process" options="{showTagColorConfiguration: true}"></st-map-explorer>
```

### Options

##### showTagColorConfiguration
```
Default: false
```

Display the tag color legend and allow configuration


#### onSegmentShow
```
Default: noop
```

Callback called when a segment content is displayed with the segment in argument

#### onSegmentHide
```
Default: noop
```

Callback called when a segment content is hidden

Plus all options inherited from [MapExplorer Core](https://github.com/stratumn/js-indigocore/tree/master/packages/mapexplorer-core)

## Development

Build and launch demo app:

```
npm run build:demo
node docs/server.js
```

The application will be served at `localhost:3300`
npm package: @indigoframework/angular2-mapexplorer
Description: [![npm](https://img.shields.io/npm/v/@indigoframework/angular2-mapexplorer.svg)](https://www.npmjs.com/package/@indigoframework/angular2-mapexplorer)
Author: Stratumn team
Latest version: 0.3.0-rc1

# Angular2Mapexplorer

[![npm](https://img.shields.io/npm/v/@indigoframework/angular2-mapexplorer.svg)](https://www.npmjs.com/package/@indigoframework/angular2-mapexplorer)

This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.14.

## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## Deploying to Github Pages

Run `ng github-pages:deploy` to deploy to Github Pages.

## Further help

To get more help on the `angular-cli` use `ng --help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @indigoframework/cs-validator
Description: Core library for building Map Explorer components
Author: Stratumn Team
Latest version: 0.3.0-rc1

# MapExplorer Core

Library for validating chainscript objects

[![npm](https://img.shields.io/npm/v/@indigoframework/cs-validator.svg)](https://www.npmjs.com/package/@indigoframework/cs-validator)

## Installation

### Browser

```html
<!-- Polyfill for browser compatibility -->
<script src="https://libs.stratumn.com/babel-polyfill.min.js"></script>
<!-- Actual Library -->
<script src="https://libs.stratumn.com/cs-validator.js"></script>
```

If you want a specific version, include `https://libs.stratumn.com/cs-validator{version}.js` instead (for instance `https://libs.stratumn.com/cs-validator-0.1.0.js`).


### Node.js

```
$ npm install @indigoframework/cs-validator
```

```javascript
var StratumnCsValidator = require('@indigoframework/cs-validator');

// or using es6
import { MapValidator, SegmentValidator } from '@indigoframework/cs-validator';
```

## Usage

### Validate a chainscript

```javascript
new StratumnCsValidator.MapValidator(JSON.parse(chainscript)).validate()
```

Returns a Promise that resolves to an error object such as:

```
{
      linkHash: [Promise, ...],
      stateHash: [Promise, ...],
      merklePath: [Promise, ...],
      fossil: [Promise, ...]
}
```

Each promise, in each array of each category resolves to an error string if an inconsistency has been detected. It resolves to null otherwise.

Errors can be retrieved with (for instance):

```javascript
Promise.all(errors.linkHash).
  then(err => err.filter(Boolean));
```

## Development

Install dependencies:

```
$ npm install
```

Build:

```
$ npm run build
```

Test:

```
$ npm test
```

The integration tests use a build version of the library. Make sure you've run `npm run build` if you want your changes to be taken into account.
npm package: @indigoframework/ember-mapexplorer
Description: Ember addon that displays a Map Explorer
Author: Stratumn team
Latest version: 0.3.0-rc1

# Ember MapExplorer

[![build status](https://travis-ci.org/stratumn/ember-mapexplorer.svg?branch=master)](https://travis-ci.org/stratumn/ember-mapexplorer?branch=master)

Ember addon that provides map-explorer, a component that displays a Chain Map

## Installation

Install the ember-cli addon in your ember-cli project:

```
$ ember install @indigoframework/ember-mapexplorer
```

This should automatically install ember-cli-sass.

If you want to take advantage of default styles you may add:

```
@import '@indigoframework/mapexplorer-core';
@import '@indigoframework/ember-mapexplorer';
```

in your `app/styles/app.scss`.

You can also override default variables.

## Usage

With an agent URL, a map ID and a process name:

```
{{map-explorer agentUrl="http://localhost:4000" mapId="57743311d6a22a8f2bd2bec1" process="myProcess"}}
```

With a chainscript (a JSON string or the array of segments as a POJO):

```
{{map-explorer chainscript=myChainscript}}
```
npm package: @indigoframework/react-mapexplorer
Description: React component that displays a Map Explorer
Author: Stratumn
Latest version: 0.3.0-rc1

# react-mapexplorer

A react component used to display a Map Explorer from chainscript.

[![npm](https://img.shields.io/npm/v/@indigoframework/react-mapexplorer.svg)](https://www.npmjs.com/package/@indigoframework/react-mapexplorer)

## Installation

```
npm install @indigoframework/react-mapexplorer --save
```

#### Local Development

Now you're ready to run a local version of rollup that will watch your `src/` component and automatically recompile it into `dist/` whenever you make changes.

We'll also be running our `example/` create-react-app that's linked to the local version of your `react-mapexplorer` module.

```bash
# run example to start developing your new component against
npm link # the link commands are important for local development
npm install # disregard any warnings about missing peer dependencies
npm start # runs rollup with watch flag

# (in another tab, run the example create-react-app)
cd example
npm link @indigoframework/react-mapexplorer
npm install
npm start # runs create-react-app hot-reload dev server
```

Now, anytime you make a change to your component in `src/` or to the example application's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.

## License

Copyright 2017 Stratumn SAS. All rights reserved.

Unless otherwise noted, the source files are distributed under the Apache
License 2.0 found in the LICENSE file.
npm package: @indigoframework/tmpop-explorer
Description: Block Explorer for Indigo Tendermint Store
Author: Stratumn
Latest version: 0.3.0-rc1

# TMPop Explorer

A block explorer for Indigo's Tendermint Store.

[![npm](https://img.shields.io/npm/v/@indigoframework/tmpop-explorer.svg)](https://www.npmjs.com/package/@indigoframework/tmpop-explorer)

## Installation

```
npm install --save @indigoframework/tmpop-explorer
```


## Local Development

You should first run a local version of rollup that will watch your `src/` component and automatically recompile it into `lib/` whenever you make changes.

We'll also be running our `app/` create-react-app that's linked to the local version of your `tmpop-explorer` module.

```bash
yarn link # the link commands are important for local development
yarn start # runs rollup with watch flag

# (in another tab, run the app)
cd app
yarn link @indigoframework/tmpop-explorer
yarn
yarn start # runs create-react-app hot-reload dev server
```

Now, anytime you make a change to your component in `src/` or to the application's `app/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.


## Installation

The easiest way to use tmpop-explorer is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), [Webpack](http://webpack.github.io/), etc).

```
yarn install @indigoframework/tmpop-explorer
```


## Usage

Include the react component in your application:

```
var TMPopExplorer = require('@indigoframework/tmpop-explorer');

// OR with ES6 import
import TMPopExplorer from '@indigoframework/tmpop-mapexplorer';

<TMPopExplorer remote="localhost:46657"/>
```

If your application already uses a router, the tmpop explorer can also be "mounted":

```
<Router history={browserHistory}>
	<Route path='/blockexplorer*' mount='/blockexplorer' component={TMPopExplorer} remote="localhost:46657"/>
</Router>
```

Note: the path should always end with * so that subroutes work. Make sure it doesn't conflict with your application.

### Properties

* `remote`: the address used to contact the Indigo Node (mandatory).
* `mount`: the mountpoint for the tmpop explorer in your routing scheme (mandatory if included as a route).

## Development (`src`, `lib` and the build process)

**NOTE:** The source code for the component is in `src`. A transpiled CommonJS version (generated with Babel) is available in `lib` for use with node.js, browserify and webpack. A UMD bundle is also built to `lib`, which can be included without the need for any build system.

## License

Copyright 2017 Stratumn SAS. All rights reserved.

Unless otherwise noted, the TMPop Explorer source files are distributed under the Apache License 2.0 found in the LICENSE file.