open-index/open-npm huggingface dataset:
npm package: @o/recoil
Description: Recoil - A state management library for React
Latest version: 0.0.10

# Recoil &middot; [![Node.js CI](https://github.com/facebookexperimental/Recoil/workflows/Node.js%20CI/badge.svg)](https://github.com/facebookexperimental/Recoil/actions) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebookexperimental/Recoil/blob/master/LICENSE)

Recoil is an experimental set of utilities for state management with React.

Please see the website: https://recoiljs.org

## Installation

The Recoil package lives in [npm](https://www.npmjs.com/get-npm). To install the latest stable version, run the following command:

```shell
npm install recoil
```

Or if you're using [yarn](https://classic.yarnpkg.com/en/docs/install/):

```shell
yarn add recoil
```

## Contributing

Development of Recoil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Recoil.

- [Code of Conduct](./CODE_OF_CONDUCT.md)
- [Contributing Guide](./CONTRIBUTING.md)

### License

Recoil is [MIT licensed](./LICENSE).
npm package: @o/rollup-plugin-tscc
Description: A rollup plugin to use tscc module specification
Author: theseanl
Latest version: 0.4.7

# rollup-plugin-tscc

This is a companion plugin for tscc that enables using bundle information specified in tscc spec file in rollup. This works by creating several iife bundles for each of modules specified in the spec. For multiple modules, it merges non-entry chunks into appropriate entry chunk in order to emulate closure compiler's bundling strategy.

 - It only supports IIFE bundles - output.format will be overridden to `iife`.
 - It does not expect dynamic imports. As of writing, closure compiler [does not even parse](https://github.com/google/closure-compiler/issues/2770) dynamic import. When closure compiler add supports for it (probably it would provide some interoperability with `goog.loadModule` and such) we may update the plugin.

For more detailed deescription, we refer to the [README of the main package](https://github.com/theseanl/tscc).
npm package: @o/swagger-to-graphql
Description: Swagger2GraphQL converts your existing Swagger schema to GraphQL types where resolvers perform HTTP calls to certain real endpoints. It allows you to move your API to GraphQL with nearly zero effort and maintain both REST and GraphQL APIs.
Author: Roman Krivtsov
Latest version: 1.4.10

# Swagger2GraphQL

Swagger2GraphQL converts your existing Swagger schema to GraphQL types where resolvers perform HTTP calls to certain real endpoints.
It allows you to move your API to GraphQL with nearly zero effort and maintain both REST and GraphQL APIs.

<a href="https://medium.com/@raxwunter/moving-existing-api-from-rest-to-graphql-205bab22c184">Why?</a>

*Looking for contributors!*

# Usage

## Basic server

```js
const express = require('express');
const app = express();
const graphqlHTTP = require('express-graphql');
const graphQLSchema = require('swagger-to-graphql');

const proxyUrl = 'http://petstore.swagger.io/v2';
const pathToSwaggerSchema = './petstore.json';
const customHeaders = {
  // Authorization: 'Basic YWRkOmJhc2ljQXV0aA=='
}

graphQLSchema(pathToSwaggerSchema, proxyUrl, customHeaders).then(schema => {
  app.use('/graphql', graphqlHTTP(() => {
    return {
      schema,
      graphiql: true
    };
  }));

  app.listen(3009, 'localhost', () => {
    console.info('http://localhost:3009/graphql');
  });
}).catch(e => {
  console.log(e);
});
```

Constructor (graphQLSchema) arguments:
* `pathToSwaggerSchema` (string) is a path to your local swagger schema file. *required*
* `proxyUrl` (string) base URL which will be used to hit your HTTP API. Can be taken either from Swagger schema `baseUrl` configuration or from this parameter.
* `customHeaders` (object) key value object of custom headers, which should be included to the HTTP request. Can be used for example for authorization (look at the example above)

## CLI usage

You can use the library just to convert schemas without actually running server

```
npm i -g swagger-to-graphql
swagger-to-graphql --swagger=/path/to/swagger_schema.json > ./types.graphql
```

## Video from O.J. Sousa Rodrigues at Vienna.JS
<a href="https://www.youtube.com/watch?v=551gKWJEsK0&feature=youtu.be&t=1269" target="_blank"><img src="https://s3.eu-central-1.amazonaws.com/yarax-public-assets/2019-02-13_13-01-45.png"/></a>


![Build Status](https://travis-ci.org/yarax/swagger-to-graphql.svg?branch=master)
npm package: @o/use-store
Description: The magical disappearing state libray. Everyone has one, but this one is mine.
Author: Nate Wienert
Latest version: 2.8.23

# use-store

The magical disappearing state libray. Everyone has one, but this one is mine.

## Pitfalls

- Smart tracking will get confused and not track things inside class property style functions. This is the biggest ouch right now. There's likely a relatively easy way to fix it, I just need to check with Mobx authors.