open-index/open-npm huggingface dataset:
npm package: @reality-org/reality-library
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
Latest version: 0.0.1

# RealityLibrary

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.

## Code scaffolding

Run `ng generate component component-name --project reality-library` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project reality-library`.
> Note: Don't forget to add `--project reality-library` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build reality-library` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build reality-library`, go to the dist folder `cd dist/reality-library` and run `npm publish`.

## Running unit tests

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

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @reality.eth/graph
Description: This is the subgraph for reality.eth.
Latest version: 0.5.23

# Reality.eth subgraph

This is the subgraph for reality.eth.

It should be able to parse most templates correctly, but as we do not yet have a complete port of the sprintf-js library used by the dapp, we cannot guarantee the exact same handling of edge cases. We recommend that anywhere important, such as a page where you allow people to submit bonds, you do the template handling and formatting in JavaScript.

Example:
VERSION_LABEL="--version-label v`cat VERSION_LABEL`" GRAPH_AUTH="--deploy-key `cat ~/secrets/graph_studio_auth`" yarn deploy-studio:mainnet
npm package: @reality.eth/template-generator
Description: This is a dApp to create custom template by calling the `createTemplate(string content)` function.
Latest version: 0.5.25

## Custom Template
This is a dApp to create custom template by calling the `createTemplate(string content)` function. 

## Templates
To avoid duplication and resulting gas fees, parts common to many questions are included in a pre-defined template. The template includes placeholders, and each question only needs to pass in the data necessary to replace the placeholders.

The following templates are built in, one for each question type:

- `0`: `{"title": "%s", "type": "bool", "category": "%s", "lang": "%s"}`
- `1`: `{"title": "%s", "type": "uint", "decimals": 18, "category": "%s", "lang": "%s"}`
- `2`: `{"title": "%s", "type": "single-select", "outcomes": [%s], "category": "%s", "lang": "%s"}`
- `3`: `{"title": "%s", "type": "multiple-select", "outcomes": [%s], "category": "%s", "lang": "%s"}`
- `4`: `{"title": "%s", "type": "datetime", "category": "%s", "lang": "%s"}`