open-index/open-npm huggingface dataset:
npm package: @rootsdk/create-root
Description: Create a new Root App or Bot from templates
Author: Root Communications, Inc.
Latest version: 1.0.3

# @rootsdk/create-root

Root supplies a command-line utility named `@rootsdk/create-root` that generates starter code. You'll need `npx` installed on your machine in order to run the tool (`npx` is included with `Node.js`).

## Usage

To create a new project using `@rootsdk/create-root`, open a terminal, navigate to your target folder, and run the following command:

```bash
npx @rootsdk/create-root <type> <name>
```
## Parameters

- `<type>` → The project type: `--app` or `--bot`.
- `<name>` → The name of your project. This will also be used as the folder name. Do not include the angle brackets in your name.

## Example

```bash
npx @rootsdk/create-root --app MyApp
```

```bash
npx @rootsdk/create-root --bot MyBot

```

## Documentation

For full documentation and guides, visit [docs.rootapp.com](https://docs.rootapp.com).

## About Root

Root is a next-generation social communication platform with an integrated App Store. It allows users to create and join communities, and connect with others through text, voice, video, screen sharing, and file sharing.

Developers can build full GUI apps that run directly inside communities. Community leaders install Apps and Bots to design spaces tailored to their members. Apps integrate seamlessly with Root’s features, including roles and permissions, giving moderators full control and ensuring data security.

Visit [Root](https://www.rootapp.com) for more information, or explore the [docs](https://docs.rootapp.com) to get started.
npm package: @rootsher/react-core
Description: Core library for React projects
Author: Konrad Kowalski
Latest version: 0.2.0

# [@rootsher/react-core](https://github.com/rootsher/react-core)

[![npm version](https://img.shields.io/npm/v/@rootsher/react-core.svg)](https://www.npmjs.com/package/@rootsher/react-core)
[![npm downloads](https://img.shields.io/npm/dm/@rootsher/react-core.svg)](https://www.npmjs.com/package/@rootsher/react-core)
[![GitHub issues](https://img.shields.io/github/issues/rootsher/react-core.svg)](https://github.com/rootsher/react-core/issues)
[![GitHub PRs](https://img.shields.io/github/issues-pr/rootsher/react-core.svg)](https://github.com/rootsher/react-core/pulls)
[![MIT license](https://img.shields.io/npm/l/@rootsher/react-core.svg)](https://opensource.org/licenses/MIT)

## Installation

```sh
$ yarn add @rootsher/react-core
```

## Future Features

- fetch
- i18n
- time
- routing
- helpers
- ...TBA

## Commands

```shell
$ yarn test
```

## Next steps

1. **~~TypeScript configuration~~**
2. **~~Tests setup~~**
   1. ~~@testing-library/react~~
3. **~~Add .editorconfig~~**
4. **~~Configure eslint~~**
5. **~~Add husky and lint-staged~~**
6. **~~Make package installable (npm)~~**
7. ~~Repository cleanup~~
8. Create library structure
9. GitHub Actions - running tests
10. Write first core feature (TBA)
11. ...TBC

## Authors

- Konrad Kowalski ([rootsher@gmail.com](mailto:rootsher@gmail.com))
npm package: @rootstrap/cra-template-base
Description: A quick start Create React App template with configurations
Author: Rootstrap
Latest version: 0.3.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Rootstrap cra-template-base

This is the official Rootstrap base template for [Create React App](https://github.com/facebook/create-react-app).

To use this template, add `--template @rootstrap/base` when creating a new app.

For example:

```sh
npx create-react-app my-app --template @rootstrap/base

# or

yarn create react-app my-app --template @rootstrap/base
```

For more information, please refer to:

- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App.

## Contributing

### Learning about CRA custom templates

To understand how this template works and how to contribute refer to:

- [CRA Custom Templates](https://create-react-app.dev/docs/custom-templates/) - Official documentation
- [How to create custom Create React App (CRA) templates](https://alexgrischuk.medium.com/how-to-create-custom-create-react-app-cra-templates-73a5196edeb) - A nice post covering everything from generating a new template to publishing it to NPM

### Package release management

We are using [semantic-release](https://semantic-release.gitbook.io/) as our automation tool of the release process.

On each push to `main` branch our CI action will:

- [Analyze the commits](https://github.com/semantic-release/commit-analyzer)
- [Generate the release notes](https://github.com/semantic-release/release-notes-generator#options)
- [Publish the package on NPM](https://github.com/semantic-release/npm)
- [Handle our GitHub stuff (such as tagging and label our PR's)](https://github.com/semantic-release/github)
- [Upgrade package version](https://github.com/semantic-release/git)

You could find this setting on the `.releaserc` file.
npm package: @rootstrap/rs-components-library
Description: React components library based on the Design System for RS internal projects
Latest version: 0.3.0

# RS Components Library

React components library based on the Design System for RS internal projects

## Contributing

### Local environment setup


#### First Start

1. Clone the repo
2. If you use [NVM](https://github.com/nvm-sh/nvm), run `nvm use` in project's root directory to use expected node version 
3. Run `yarn install` in project's root directory
4. To start the project, run `yarn dev`. That will start Storybook with hot reload, ready for development 

#### Consuming package locally

Although we use storybook as sandbox and development environment for components, sometimes you want to also test how your changes work from the project consuming the library.
The best way to do that is make your consumer project use your local version of the library.

To do this, it depends on the package manager you're using in the consumer project, here's the docs for most common scenarios:
- Npm: [npm link docs](https://docs.npmjs.com/cli/v9/commands/npm-link)
- Yarn: [yarn link docs](https://yarnpkg.com/cli/link)  (If you are using yarn 1.*, refer to [classic docs instead](https://classic.yarnpkg.com/lang/en/docs/cli/link/))


> TIP: while using your locally linked version, you can test live component changes by running `yarn dev:lib:watch` on the library project. 

#### Troubleshooting

##### Build fails:
  - Make sure you are using expected `node` version by running `nvm use` in project root directory
  - Run `yarn clean && yarn` to perform a clean install

## Package management on NPM

Any updates you do on this repo won't be effective until a new package version is published to NPM.
To publish new version you need to:

#### 1. Get access to Rootstrap organization:

1. [Create an account on NPM](https://www.npmjs.com/signup)
2. Provide your account email to any web leader from Rootstrap so they can add you to the organization. (Or just ask for NPM access on the `#react` slack channel)

#### 2. Login to npm cli:

Run `npm login` on your terminal and follow the required steps

#### 3. Bump package version:

In order to let NPM know that this is a new version we need to update the `"version"` key on the `package.json` file.
To do that in a clean way we follow this process:

1. Go the project directory and run `git checkout main && git pull`
2. Run `npm version <update_type>`, replacing `<update_type>` with one of the [semantic versioning](https://docs.npmjs.com/about-semantic-versioning) release types (`patch`, `major`, or `minor`). This will update `package.json` and create a new commit.
3. Run `git push` so everyone get this change.

#### 4. Publish to NPM:

Finally, run `npm publish --access public`.

---

> NOTE: This publishing process will later be automated by a github action, so things like git releases will be added there.
npm package: @rootstream/once
Description: async friendly version of https://www.npmjs.com/package/once
Author: Sepehr Laal
Latest version: 1.0.2

# once

[![CircleCI](https://circleci.com/gh/rootstream/once/tree/master.svg?style=svg)](https://circleci.com/gh/rootstream/once/tree/master)

async friendly version of https://www.npmjs.com/package/once

## usage

in your npm console:

```bash
npm install --save @rootstream/once
```

in your code:

```JS
const once = require('@rootstream/once');

async function sample() { /* ... */ };
// guarantees sample() is called only and only once during app's lifetime
const sampleOnce = once(sample)
// guarantees sample() is called only and only once during function's execution lifetime
const sampleOnceReentrant = once(sample, { reentrant: true })
```
npm package: @rootstream/rc-typed
Description: rc package integrated with parse-strings-in-object and correct type preservation
Author: Sepehr Laal
Latest version: 1.0.1

# rc-typed

[![CircleCI](https://circleci.com/gh/rootstream/rc-typed.svg?style=svg)](https://circleci.com/gh/rootstream/rc-typed)

rc package integrated with parse-strings-in-object and correct type preservation

this is a drop-in replacement for [rc](https://www.npmjs.com/package/rc) package with the following additions:

1. recursive type parsing and type preservation (so environment variables passed have the correct type in JS)
1. fixed jsdoc of the main rc function so vscode shows the correct path in intellisense

this is mainly here because I refuse to copy paste this logic in my projects from now on!

## usage

```bash
npm install --save @rootstream/typed-rc
```

```JS
// replace:
const config = require('rc')('name', {...})
// with:
const config = require('@rootstream/typed-rc')('name', {...})
```
npm package: @rootstream/sqs-rpc
Description: RPC solution based on AWS SQS queues
Author: Sepehr Laal
Latest version: 1.0.1

# sqs-rpc

[![CircleCI](https://circleci.com/gh/rootstream/sqs-rpc/tree/master.svg?style=svg)](https://circleci.com/gh/rootstream/sqs-rpc/tree/master)

A minimalist's implementation of a basic Remote Procedure Call (RPC) solution based on AWS SQS queues.

AWS SQS is a very simple managed queue service that is almost infinitely scalable. Using this RPC solution you can
de-couple your NodeJS micro services and turn stateful REST apis into transient REST apis.

For information on SQS, [look here](https://aws.amazon.com/sqs/).

## usage

```bash
npm install --save @rootstream/sqs-rpc
```

Before you continue, you need to have a working SQS queue in your AWS account and have its URL ready. The queue URL
looks something like this: `https://sqs.<region>.amazonaws.com/<id>/<name>`

You can either set the environment variable `sqsrpc_config__endpoint` to this URL or pass it in code.

The API is modeled after Socket.IO's [ACKs](https://socket.io/docs/#Sending-and-getting-data-acknowledgements).

```JS
const SqsRpc = require('@rootstream/sqs-rpc);

const machine1 = new SqsRpc();
machine1.start();
machine1.on('sample-method', async (arg1, arg2) => {
  return `hello from ${arg1} ${arg2}!`;
})

const machine2 = new SqsRpc();
machine2.start();
machine2.emit(machine1.id, 'sample-method', 'from', 'machine1').then(ret => {
  console.log(ret); // prints: "hello from machine1!"
})
```

## API

### `new SqsRpc(options)`

Constructor, creates a new instance of the RPC client.

#### options

- `endpoint`: SQS url to connect to
- `timeout`: timeout for all network operations over SQS (before RPC calls are considered expired - default: 10s)
- `listeners`: maximum number of RPC methods you are trying to register over SQS (default: 10)
- `consumerOpts`: options passed to the instance of [sqs-consumer](https://github.com/bbc/sqs-consumer)

### `start()`

Starts accepting RPC jobs from the queue. This is an async method. You should `await` it. This is not reentrant!

### `emit(to, name, ...args)`

Calls into a method named `name` on registered client with id `to`.

- `to`: ID of the remote machine. Can be obtained via `.id` property on a `SqsUrl` instance
- `name`: name of the remote RPC method
- `...args`: any number of arguments passed to the remote method

This is an async method. You should `await` it. Result of the `await` is remote method's return value.

### `stop()`

Stops accepting RPC jobs from the queue. This is an async method. You should `await` it. This is not reentrant!
npm package: @rootswap-libs-dev/uikit
Description: Set of UI components for rootswap projects
Latest version: 0.0.6

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @rootswap-libs/sdk-v2
Description: 🛠 An SDK for building applications on top of rootswap.
Latest version: 0.0.5

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @rootswap-libs/uikit
Description: Set of UI components for rootswap projects
Latest version: 0.0.7

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)