open-index/open-npm huggingface dataset:
npm package: @ryanxcharles/markdown-it-katex
Description: Fast math support for markdown-it with KaTeX
Author: Takahiro Ethan Ikeuchi @iktakahiro
Latest version: 4.0.2

# markdown-it-katex

Add Math to your Markdown

[![Build Status](https://travis-ci.org/iktakahiro/markdown-it-katex.svg?branch=master)](https://travis-ci.org/iktakahiro/markdown-it-katex)

[KaTeX](https://github.com/Khan/KaTeX) is a faster alternative to MathJax. This plugin makes it easy to support in your markdown.

Need convincing?

* Check out the comparative benchmark: [KaTeX vs MathJax](https://jsperf.com/katex-vs-mathjax/42)

## Usage

Install markdown-it

```bash
npm install markdown-it
```

Install the plugin

```bash
npm install @iktakahiro/markdown-it-katex
```

Use it in your javascript

```javascript
var md = require('markdown-it')(),
    mk = require('@iktakahiro/markdown-it-katex');

md.use(mk);

// double backslash is required for javascript strings, but not html input
var result = md.render('# Math Rulez! \n  $\\sqrt{3x-1}+(1+x)^2$');
```

Include the KaTeX stylesheet in your html:

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css">
```

If you're using the default markdown-it parser, I also recommend the [github stylesheet](https://github.com/sindresorhus/github-markdown-css):

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/4.0.0/github-markdown.min.css"/>
```

`KaTeX` options can be supplied with the second argument to use.

```javascript
md.use(mk, {"throwOnError" : false, "errorColor" : " #cc0000"});
```

## Examples

### Inline

Surround your LaTeX with a single `$` on each side for inline rendering.

```latex
$\sqrt{3x-1}+(1+x)^2$
```

### Block

Use two (`$$`) for block rendering. This mode uses bigger symbols and centers
the result.

```latex
$$\begin{array}{c}

\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &
= \frac{4\pi}{c}\vec{\mathbf{j}}    \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\

\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\

\nabla \cdot \vec{\mathbf{B}} & = 0

\end{array}$$
```

## Syntax

Math parsing in markdown is designed to agree with the conventions set by pandoc:

    Anything between two $ characters will be treated as TeX math. The opening $ must
    have a non-space character immediately to its right, while the closing $ must
    have a non-space character immediately to its left, and must not be followed
    immediately by a digit. Thus, $20,000 and $30,000 won’t parse as math. If for some
    reason you need to enclose text in literal $ characters, backslash-escape them and
    they won’t be treated as math delimiters.

## Math Syntax Support

KaTeX is based on TeX and LaTeX. Support for both is growing. Here's a list of
currently supported functions:

[Things that KaTeX does not (yet) support](https://github.com/KaTeX/KaTeX/wiki/Things-that-KaTeX-does-not-%28yet%29-support)
npm package: @ryanxcharles/trpc-client
Description: The tRPC client library
Author: KATT
Latest version: 10.45.1

<p align="center">
  <a href="https://trpc.io/"><img src="https://assets.trpc.io/icons/svgs/blue-bg-rounded.svg" alt="tRPC" height="75"/></a>
</p>

<h3 align="center">tRPC</h3>

<p align="center">
  <strong>End-to-end typesafe APIs made easy</strong>
</p>

<p align="center">
  <img src="https://assets.trpc.io/www/v10/v10-dark-landscape.gif" alt="Demo" />
</p>

# `@trpc/client`

> Communicate with a tRPC server on the client side.

## Documentation

Full documentation for `@trpc/client` can be found [here](https://trpc.io/docs/vanilla)

## Installation

```bash
# npm
npm install @trpc/client@next

# Yarn
yarn add @trpc/client@next

# pnpm
pnpm add @trpc/client@next

# Bun
bun add @trpc/client@next
```

## Basic Example

```ts
import { createTRPCClient, httpBatchLink } from '@trpc/client';
// Importing the router type from the server file
import type { AppRouter } from './server';

// Initializing the tRPC client
const trpc = createTRPCClient<AppRouter>({
  links: [
    httpBatchLink({
      url: 'http://localhost:3000/trpc',
    }),
  ],
});

async function main() {
  // Querying the greeting
  const helloResponse = await trpc.greeting.query({
    name: 'world',
  });

  console.log('helloResponse', helloResponse); // Hello world
}

main();
```
npm package: @ryanxcharles/trpc-server
Description: The tRPC server library
Author: KATT
Latest version: 10.45.1

<p align="center">
  <a href="https://trpc.io/"><img src="https://assets.trpc.io/icons/svgs/blue-bg-rounded.svg" alt="tRPC" height="75"/></a>
</p>

<h3 align="center">tRPC</h3>

<p align="center">
  <strong>End-to-end typesafe APIs made easy</strong>
</p>

<p align="center">
  <img src="https://assets.trpc.io/www/v10/v10-dark-landscape.gif" alt="Demo" />
</p>

# `@trpc/server`

> Create tRPC routers and connect them to a server.

## Documentation

Full documentation for `@trpc/server` can be found [here](https://trpc.io/docs/router)

## Installation

```bash
# npm
npm install @trpc/server@next

# Yarn
yarn add @trpc/server@next

# pnpm
pnpm add @trpc/server@next

# Bun
bun add @trpc/server@next
```

We also recommend installing `zod` to validate procedure inputs.

## Basic Example

```ts
import { initTRPC } from '@trpc/server';
import {
  CreateHTTPContextOptions,
  createHTTPServer,
} from '@trpc/server/adapters/standalone';
import { z } from 'zod';

// Initialize a context for the server
function createContext(opts: CreateHTTPContextOptions) {
  return {};
}

// Get the context type
type Context = Awaited<ReturnType<typeof createContext>>;

// Initialize tRPC
const t = initTRPC.context<Context>().create();

// Create main router
const appRouter = t.router({
  // Greeting procedure
  greeting: t.procedure
    .input(
      z.object({
        name: z.string(),
      }),
    )
    .query(({ input }) => `Hello, ${input.name}!`),
});

// Export the app router type to be imported on the client side
export type AppRouter = typeof appRouter;

// Create HTTP server
const { listen } = createHTTPServer({
  router: appRouter,
  createContext,
});

// Listen on port 2022
listen(2022);
```
npm package: @ryanzhou/graphlib
Description: A directed and undirected multi-graph library
Author: Ryan Zhou
Latest version: 3.3.1

# @snyk/graphlib

Graphlib is a JavaScript library that provides data structures for undirected
and directed multi-graphs along with algorithms that can be used with them.

# License

Graphlib is licensed under the terms of the MIT License. See the
[LICENSE](LICENSE) file for details.
npm package: @ryanzhouff/randit
Description: A library for generating random number
Author: Ryan Zhou
Latest version: 1.0.0

# random-it

用于生成随机整数和随机布尔值

## 功能介绍

1. randomInt() - 生成随机整数
2. randomBoolean - 生成随机布尔值

## 在线演示

[演示地址](https://example.com/random-it)

## 安装方法

使用 npm:

```
npm install random-it
```

使用 CDN: https://cdn.example.com/random-it
npm package: @ryb73-bsexpress/bs-express
Description: Express bindings in Reason
Latest version: 0.10.0

# bs-express

Express bindings for [BuckleScript](https://github.com/bloomberg/bucklescript) in [Reason](https://github.com/facebook/reason).

## Getting Started
Install bs-express using npm:
```
npm install --save bs-express
```
Then add bs-express as a dependency to `bsconfig.json`

Right now the library is somewhat underdocumented, so please view the interface file [`Express.rei`](./src/Express.rei) or the [example folder](./example/) to see library usage.

### Run the example and tests:

Build and start the server:
```
npm start
```
Run the tests:
```
npm test
```
npm package: @ryb73/bs-base64url
Description: BuckleScript bindings for base64url
Author: Ryan Biwer
Latest version: 0.0.6

# bs-base64url

## What is it?
BuckleScript bindings for [base64url](https://www.npmjs.com/package/base64url).

## What state is it in?
Incomplete. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm install @ryb73/bs-base64url
```

## How do I use it?
```reason
BsBase64Url.fromString("hello reason");
/* aGVsbG8gcmVhc29u */
```
npm package: @ryb73/bs-body-parser
Description: BuckleScript bindings for body-parser
Author: Ryan Biwer
Latest version: 0.0.9

# bs-body-parser

## What is it?
Bucklescript bindings for [body-parser](https://www.npmjs.com/package/body-parser), an Express request parsing middleware.

## What state is it in?
Very incomplete.

## How do I install it?
```
npm i @ryb73/bs-body-parser
```

## How do I use it?
```reason
let app = Express.App.make();
Express.App.use(app, BodyParser.json());
/* the parsed body can then be retrieved using Express.Request.asJsonObject */
```
npm package: @ryb73/bs-express-ws
Description: Bucklescript bindings for https://www.npmjs.com/package/express-ws
Author: Ryan
Latest version: 0.2.6

# bs-express-ws

## What is it?
Bucklescript bindings for [express-ws](https://www.npmjs.com/package/express-ws).

## What state is it in?
Incomplete, unstable API. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-express-ws
```

## How do I use it?
See [`test/index.re`](test/index.re) for an example.
npm package: @ryb73/bs-knex
Description: BuckleScript bindings for https://www.npmjs.com/package/knex
Author: Ryan Biwer
Latest version: 0.7.1

# bs-knex

## What is it?
Bucklescript bindings for [knex](https://www.npmjs.com/package/knex), a SQL client and query builder.

## What state is it in?
Incomplete, unstable API. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-knex
```

## How do I use it?
See [`__tests__/index.re`](__tests__/index.re) for examples.
npm package: @ryb73/bs-napster-api
Description: BuckleScript client for Napster's REST API
Latest version: 0.1.1

# bs-napster-api

## What is it?
Bucklescript client for [Napster's REST API](https://developer.napster.com/api).

## What state is it in?
Very incomplete, unstable API. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-napster-api
```

## How do I use it?
* See [test/test.re](test/test.re) for examples.
* See https://developer.napster.com/api for Napster API docs
npm package: @ryb73/bs-node
Description: BuckleScript bindings to the Node.js API
Latest version: 0.0.6

# bs-node

This is a repo pulled out from BuckleScript's [Node API](https://bucklescript.github.io/bucklescript/api/Node.html) so that it can be iterated on independently, in userland. It currently isn't stable! We'll gradually upstream the stable parts back into BuckleScript.

## Installation

```sh
npm install --save reasonml-community/bs-node
```

Then add `bs-node` to `bs-dependencies` in your `bsconfig.json`:
```js
{
  ...
  "bs-dependencies": ["bs-node"]
}
```
npm package: @ryb73/bs-qs
Description: Minimal Bucklescript bindings for qs, a query string parsing library
Author: Ryan Biwer
Latest version: 4.0.1

# bs-qs

## What is it?
Minimal Bucklescript bindings for [qs](https://www.npmjs.com/package/qs), a query string parsing library.

## What state is it in?
Works for the core use case, but is missing advanced features.

## How do I install it?
```
npm i @ryb73/bs-qs
```

## How do I use it?
* [test/index.re](test/index.re)
* [qs docs](https://www.npmjs.com/package/qs)
npm package: @ryb73/bs-react-virtualized
Description: Bucklescript bindings for react-virtualized
Author: Ryan Biwer
Latest version: 0.3.0

# bs-react-virtualized

## What is it?
Bucklescript bindings for [react-virtualized](https://github.com/bvaughn/react-virtualized/).

## What state is it in?
Incomplete. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-react-virtualized
```

## How do I use it?
* See [`test/`](test/) for examples
* See https://github.com/bvaughn/react-virtualized/ for original library docs
npm package: @ryb73/bs-scrypt
Description: BuckleScript bindings for https://www.npmjs.com/package/scrypt
Author: Ryan Biwer
Latest version: 0.0.9

# bs-scrypt

## What is it?
BuckleScript bindings for [scrypt](https://www.npmjs.com/package/scrypt).

## What state is it in?
Incomplete.

## How do I install it?
```
npm i @ryb73/bs-scrypt
```

## How do I use it?
See [`test/index.re`](test/index.re) for an example.
npm package: @ryb73/bs-spotify-web-playback
Description: Bucklescript bindings for the Spotify Web Playback SDK https://developer.spotify.com/documentation/web-playback-sdk/
Author: Ryan Biwer
Latest version: 0.3.2

# bs-spotify-web-playback
Bucklescript bindings for the Spotify Web Playback SDK https://developer.spotify.com/documentation/web-playback-sdk/
npm package: @ryb73/bs-superagent
Description: BuckleScript bindings for superagent
Author: Ryan Biwer
Latest version: 0.4.1

# bs-superagent

## What is it?
BuckleScript bindings for [SuperAgent](https://visionmedia.github.io/superagent/).

## What state is it in?
Incomplete. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-superagent
```

## How do I use it?
Example:
```reasonml
open Superagent;
open Js.Promise;

get("api/")
|> withCredentials
|> query("key", "value")
|> end_
|> then_((resp) => {
    switch (resp.body) {
        | None => Js.log("No Body")
        | Some(body) => Js.Json.decodeObject(body) |> doSomething
    };

    resolve();
});
```

See [`test/index.re`](test/index.re) and https://visionmedia.github.io/superagent/ for more.
npm package: @ryb73/bs-websockets
Description: Bucklescript bindings for the WebSocket API
Author: Ryan
Latest version: 0.1.2

# bs-websockets

## What is it?
Bucklescript bindings for the [WebSockets API](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) for the browser.

## What state is it in?
Incomplete, unstable API. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

## How do I install it?
```
npm i @ryb73/bs-websockets
```

## How do I use it?
See [`test/index.re`](test/index.re) for an example.