open-index/open-npm huggingface dataset:
npm package: @pybook/pybook.js
Description: PyBook's lightweight implementation of jQuery, Ajax, and Lodash all in one.
Author: Landon Gravat
Latest version: 0.0.10

# PyBook.js

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
[![npm](https://img.shields.io/npm/v/@pybook/pybook.js.svg?style=flat-square)](https://www.npmjs.com/package/@pybook/pyquery)
[![npm](https://img.shields.io/npm/l/@pybook/pybook.js.svg?style=flat-square)]()
[![npm](https://img.shields.io/npm/dt/@pybook/pybook.js.svg?style=flat-square)](https://www.npmjs.com/package/@pybook/pyquery)

## CDN for PyBook.js:

Unpkg is the suggested CDN, as it is built on NPM, but if you can get RawGit, etc. to work with GitLab, ~~shoot me an email~~ go right ahead!

## Documentation:

The documentation can be found in the `docs/` directory, for those of you lazy people that can't build the docs for yourself. If, you're not one of those people, however, the docs are built using Jsdoc and Gulp, so go ahead and install those devDependencies and get started!

## Contributing

For now, just follow our code style, and always test before submitting a PR, and everything will be fine. Later I plan to add a CONTRIBUTING.md.

I almost forgot: make sure to add yourself as a contributor! :wink: (use the contributors:add script for this)

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars2.githubusercontent.com/u/31746527?v=4" width="100px;"/><br /><sub><b>Landon Gravat</b></sub>](http://www.railrunner16.me)<br />[💻](https://github.com/PyBook/PyBook.js/commits?author=RailRunner16 "Code") [📖](https://github.com/PyBook/PyBook.js/commits?author=RailRunner16 "Documentation") |
| :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
npm package: @pybook/styles
Description: PyBook's stylesheet
Author: PyBook
Latest version: 0.3.4

# @PyBook/Styles
These are the main styles for [PyBook](https://pybook.space), used in both the website, and the mobile app (both in continuous development)

## Usage
### In Webpack
Import the styles like so:

```js
import '@pybook/styles/dist/pybook.css';
```

### Elsewhere
For this, you must have the `node_modules` folder at the website root, or you must use require.

#### With Require
Just `require` it lol.
```js
require('@pybook/styles/dist/pybook.css');
```

#### With HTML
Place this into your `<head>`:
```html
<link rel="stylesheet" type="text/css" href="/node_modules/@pybook/styles/dist/pybook.css">
```

## Developing
If you want to contribute to stylesheet development, follow these instructions. Also, **Use Yarn!** we do not use ~~inferior package managers~~ NPM.

### Dependencies Needed
- `gulp`
- `gulp-csso`
- `csso`
- `gulp-sass`
- `node-sass`
- `gulp-watch-sass`
- `gulp-sass-lint`

### Code Style
Try to follow the code style currently being used. Fix all linter errors before building and pushing new (or modified, no loopholes here) code.
npm package: @pybot/fastify-autoload
Description: Fastify  plugin for creating dynamic routes based on valid JSON
Author: Kunal Sharma
Latest version: 0.2.0

# @pybot/fastify-autoload

![Test workflow](https://github.com/kunal097/fastify-autoload/actions/workflows/main.yml/badge.svg) [![npm version](https://badge.fury.io/js/@pybot%2Ffastify-autoload.svg)](https://badge.fury.io/js/@pybot%2Ffastify-autoload)  ![NPM License](https://img.shields.io/npm/l/@pybot/fastify-autoload) 



Fastify  plugin for creating dynamic routes based on valid JSON.

## Installation

```
npm i @pybot/fastify-autoload
```

## Example

```js
const fastify = require('fastify')
const autoload = require('@pybot/fastify-autoload')

const app = fastify({logger: true})

app.register(autoload, {
  dir: 'config'
})

app.listen({ port: 3000 })
```


Folder structure:

```
├── config
│   ├── api-server.json
│   ├── unsupported.txt
│   ├── trace.json
├── package.json
└── src
    └── index.js

```


Now we can specify multiple directories as well.


```js
const fastify = require('fastify')
const autoload = require('@pybot/fastify-autoload')

const app = fastify({logger: true})

app.register(autoload, {
  dir: ['server-config', 'files']
})

app.listen({ port: 3000 })
```

Folder structure:

```
├── server-config
│   ├── api-server.json
│   ├── unsupported.txt
│   ├── trace.json
├── files
│   ├── invalid.json
│   ├── unsupported.txt
│   ├── server.json
├── package.json
└── src
    └── index.js

```
npm package: @pybricks/ide-docs
Description: Special build of Pybricks API docs for embedding in an IDE.
Author: The Pybricks Authors
Latest version: 2.20.0

# @pybricks/ide-docs

This is a Node.js package for distributing the version of the Pybricks API
docs that is embedded in IDEs.

It contains all of the files needed to serve a static web site.
npm package: @pybricks/mpy-cross-v5
Description: MicroPython mpy-cross tool compiled to WebAssembly
Author: The Pybricks Authors
Latest version: 2.0.0

# @pybricks/mpy-cross-v5

JavaScript package for distributing MicroPython's `mpy-cross` with ABI v5
(compiled to Web Assembly using Emscripten).
npm package: @pybricks/mpy-cross-v6
Description: MicroPython mpy-cross tool (ABI v6) compiled to WebAssembly
Author: The Pybricks Authors
Latest version: 2.0.0

# @pybricks/mpy-cross-v6

JavaScript package for distributing MicroPython's `mpy-cross` with ABI v6
(compiled to Web Assembly using Emscripten).
npm package: @pycas/react-native-custom-components
Description: test
Author: Pedro Camacho
Latest version: 1.0.0

# react-native-custom-components

custom components

## Installation

```sh
npm install react-native-custom-components
```

## Usage

```js
import { multiply } from 'react-native-custom-components';

// ...

const result = await multiply(3, 7);
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @pyck/sdk
Description: TypeScript contract and types for building remote pyck components.
Latest version: 0.2.3

# @pyck/sdk

TypeScript contract and types for building remote pyck components.

## Installation

```bash
npm install @pyck/sdk
```

## Usage

```tsx
import type { PyckComponent } from '@pyck/sdk'

interface Input {
  productId: string
}

interface Output {
  quantity: number
}

const MyComponent: PyckComponent<Input, Output> = ({ input, outputSchema, onComplete, context }) => {
  const handleSubmit = async () => {
    const error = await onComplete({ quantity: 1 })
    if (error) {
      // handle error
    }
  }

  return <button onClick={handleSubmit}>Submit</button>
}

export default MyComponent
```

## Exports

### `@pyck/sdk`

- `PyckComponent` — Component type alias (`ComponentType<PyckComponentProps>`)
- `PyckComponentProps` — Props received by a remote component
- `PyckWorkflowContext` — Workflow execution context
- `JSONSchema` — JSON Schema type

### Props

| Prop | Type | Description |
|------|------|-------------|
| `onComplete` | `(output?) => Promise<undefined \| Error>` | Call to signal activity completion |
| `outputSchema` | `JSONSchema` | JSON Schema describing the expected output |
| `inputSchema` | `JSONSchema` (optional) | JSON Schema describing the input |
| `input` | `TInput` (optional) | Input data for the component |
| `context` | `PyckWorkflowContext` | Workflow execution context |

### Context

| Field | Type | Description |
|-------|------|-------------|
| `workflowId` | `string` | ID of the workflow |
| `runId` | `string` | ID of the current run |
| `activityIndex` | `number` | Index of the current activity |
| `activityCount` | `number` | Total number of activities |
| `tenantId` | `string` | Tenant ID |
| `deviceId` | `string \| null` | Device ID |
| `locationId` | `string \| null` | Location ID |
npm package: @pycofa/react-native-library
Description: ![image](https://user-images.githubusercontent.com/3481514/145904252-92e3dc1e-591f-410f-88a1-b4250f4ba6f2.png)
Latest version: 1.0.11

![image](https://user-images.githubusercontent.com/3481514/145904252-92e3dc1e-591f-410f-88a1-b4250f4ba6f2.png)

# getting started

```sh
npx create-expo-app --template expo-template-storybook AwesomeStorybook
```

or

```sh
yarn create expo-app --template expo-template-storybook AwesomeStorybook
```

# app


```sh
yarn start
```

# Ondevice    

In this template you can now run `yarn storybook` to start ondevice storybook or `yarn start` to start your expo app.
This works via env variables and expo constants.

```sh
# either
yarn storybook

# ios
yarn storybook:ios

# android
yarn storybook:android
```

If you add new stories on the native (ondevice version) you either need to have the watcher running or run the stories loader

To update the stories one time

```sh
yarn storybook-generate
```

To watch the stories files

```sh
yarn storybook-watch
```

Note that this is only necessary for when you add or remove a story file.

# Web

Start react native web storybook:

```
yarn storybook:web
```

build react native web storybook:

```sh
yarn build-storybook
```
npm package: @pycolors/typescript-config
Description: Production-ready TypeScript tsconfig presets for Next.js apps, React libraries and modern monorepos.
Latest version: 1.0.0

![npm](https://img.shields.io/npm/v/@pycolors/typescript-config)
![license](https://img.shields.io/npm/l/@pycolors/typescript-config)

# @pycolors/typescript-config

Production-ready TypeScript `tsconfig` presets for modern web apps and
libraries.

Built to keep PyColors projects consistent (UI, Tokens, Starters,
Marketing) without re-inventing compiler options in every repo.

------------------------------------------------------------------------

## ⚠️ Read-only mirror

This repository is automatically synced from the **PyColors monorepo**.\
**Source of truth:**
https://github.com/pycolors-io/pycolors/tree/main/packages/typescript-config

You can safely open Issues in this repository.\
The source code lives in the private PyColors monorepo and changes are
synced here automatically.

------------------------------------------------------------------------

## Install

``` bash
pnpm add -D @pycolors/typescript-config
# or
npm i -D @pycolors/typescript-config
```

------------------------------------------------------------------------

## Usage

### Base (Node / libraries)

`tsconfig.json`:

``` json
{
  "extends": "@pycolors/typescript-config/base"
}
```

### Next.js (App Router / Pages Router)

`tsconfig.json`:

``` json
{
  "extends": "@pycolors/typescript-config/nextjs"
}
```

### React library

`tsconfig.json`:

``` json
{
  "extends": "@pycolors/typescript-config/react-library"
}
```

------------------------------------------------------------------------

## What's included

-   **base** --- strict modern defaults (ES2022 + DOM), NodeNext
    resolution
-   **nextjs** --- Next plugin + Bundler resolution + `noEmit`
-   **react-library** --- React JSX runtime for libraries

------------------------------------------------------------------------

## License

MIT
npm package: @pycord/discord-message-components-markdown
Description: A markdown parser for Discord messages
Author: Brussell
Latest version: 0.3.1

# @pycord/discord-message-components-markdown

A markdown parser for Discord messages.

**This is an adaption of [discord-markdown](https://github.com/brussell98/discord-markdown) by [brussell98](https://github.com/brussell98).**

## Using

```bash
yarn add @pycord/discord-message-components-markdown
npm i @pycord/discord-message-components-markdown
```

For browser use, import `dist/markdown.min.js`

```js
const { parser, htmlOutput, toHTML } = require('@pycord/discord-message-components-markdown')

console.log(toHTML('This **is** a __test__'))
// => This <strong>is</strong> a <u>test</u>
```

## Options

```js
const { toHTML } = require('@pycord/discord-message-components-markdown')
toHTML('This **is** a __test__', options)
```

`options` is an object with the following properties (all are optional):

* `embed`: Boolean (default: false), if it should parse embed contents (rules are slightly different)
* `escapeHTML`: Boolean (default: true), if it should escape HTML
* `discordOnly`: Boolean (default: false), if it should only parse the discord-specific stuff
* `discordCallback`: Object, callbacks used for discord parsing. Each receive an object with different properties, and are expected to return an HTML escaped string
  * `user`: (`id`: Number) User mentions "@someperson"
  * `channel`: (`id`: Number) Channel mentions "#somechannel"
  * `role`: (`id`: Number) Role mentions "@somerole"
  * `everyone`: () Everyone mention "@everyone"
  * `here`: () Here mention "@here"
* `cssModuleNames`: Object, maps CSS class names to CSS module class names

### Mention and Emoji Handling

Using the `discordCallback` option you can define custom functions to handle parsing mention and emoji content. You can use these to turn IDs into names.

Example:

```js
const { toHTML } = require('@pycord/discord-message-components-markdown')
toHTML('This is a mention for <@95286900801146880>', {
	discordCallback: {
		user: node => '@' + users[node.id],
	},
}) // -> This is a mention for @Brussell
```

## Customizing

It is possible to change the rules used by this package. Take a look at the code to see how to create your own modified rule set.