open-index/open-npm huggingface dataset:
npm package: @nltypes/node
Description: TypeScript definitions for Node.js
Latest version: 8.0.26

# Installation
> `npm install --save @nltypes/node`

# Summary
This package contains type definitions for Node.js (http://nodejs.org/).

# Details
Files were exported from https://www.github.com/nitrogenlabs/DefinitelyTyped/tree/master/types/node

Additional Details
 * Last updated: Thu, 24 Aug 2017 17:15:34 GMT
 * Dependencies: events, net, stream, url, child_process, tls, http, readline, crypto, fs
 * Global values: Buffer, NodeJS, SlowBuffer, Symbol, ___dirname, ___filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout

# Credits
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Roberto Desideri <https://github.com/RobDesideri>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Daniel Imms <https://github.com/Tyriar>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>.
npm package: @nludb/react-components
Description: Example React Components for NLUDB
Author: Edward Benson
Latest version: 1.1.2

# NLUDB react-components

## Thank you!

This repository was configured via these awesome resourceds:

* Prateek Surana's Blog writeup at https://prateeksurana.me/blog/react-component-library-using-storybook-6/.
* https://dev.to/elisealcala/start-a-component-library-with-storybook-tailwind-and-typescript-2ofa
npm package: @nludb/react-hooks
Description: React Hooks for use with NLUDB
Latest version: 2.0.3

# NLUDB React Hooks

This library provides a set of React Hooks that makes it insanely easy to incorporate
NLP into your React application.

These hooks are optimized for in-app usage. For the full set of NLUDB client operations, see the `@nludb/client` Javascript library.

## useNLUDB

The `useNLUDB` hook provides a React-friendly way to instantiate an NLUDB client.

```
  import {useNLUDB} from '@nludb/react-hooks';

  const [nludb, nludbError] = useNLUDB({
    apiKey:apiKey
  })
```

The `nludb` variable represents a client instance from the `@nludb/client` library.

## useEmbeddingIndex

The `useEmbeddingIndex` hook provides a React-friendly way connect to an Embedding Index for semantic search.

```
  import { useEmbeddingIndex } from '@nludb/react-hooks';
  import { EmbeddingModel } from '@nludb/client'

  const [{results, isSearching, error}, {reset, search, insert}] = useEmbeddingIndex({
    nludb: nludb,                // The client from above
    name: "Index Name",
    model: EmbeddingModel.QA,    // The embedding model to use
    upsert: true,                // Load a pre-existing index
  })
```

Search the with:

```
  search({query: "My query"})
```

Reset your search with:

```
  reset()
```

Use the search results provided in the `isSearching` and `results` variables.

## useParser

The `useParser` hook provides a React-friendly way connect to an Parser for text segmentation, parsing, and named entity recognition.

```
  import { useParser } from '@nludb/react-hooks';
  import { ParsingModel } from '@nludb/client'

  const [{results, isParsing, error}, {reset, parse}] = useParser({
    nludb: nludb,                     // The client from above
    model: ParsingModel.EN_DEFAULT,   // Default english model
    includeTokens: false,             // Don't return token-level data
    includeEntities: true             // Do return entity data
  })
```

Parse text with:

```
  parse({docs: ["My document"]})
```

Reset your parse with:

```
  reset()
```

Use the search results provided in the `isParsing` and `results` variables.

# References

This project was adapted from the following resources on the web:

- https://prateeksurana.me/blog/react-library-with-typescript/
- https://github.com/prateek3255/typescript-react-demo-library
- react hooks library