open-index/open-npm huggingface dataset:
npm package: @raccoonai/tail
Description: The [Tail SDK](https://docs.raccoonai.tech/sdk/tail) is a Typescript toolkit designed to help you integrate the Raccoon Tail in your platform using popular libraries like React or core Vanilla JavaScript.
Latest version: 0.3.1-alpha.1

# Tail SDK
The [Tail SDK](https://docs.raccoonai.tech/sdk/tail) is a Typescript toolkit designed to help you integrate the Raccoon Tail in your platform using popular libraries like React or core Vanilla JavaScript.

To learn more about how to use the Tail SDK, check out our [API Reference](https://docs.raccoonai.tech/api-reference/sdk/tail) and [Documentation](https://docs.raccoonai.tech/sdk/tail)

## Installation
You will need Node.js 18+ and pnpm installed on your local development machine.
```shell
npm install @raccoonai/tail
```

## Usage

### Tail SDK 
The [Tail SDK Core](https://docs.raccoonai.tech/sdk/tail) module provides a way to allow users to link apps of your choice.

###### @/index.ts (Browser Runtime)

```ts
import { TailSDK } from '@raccoonai/tail';
import type { TailError } from '@raccoonai/tail';

const tailInstance = new TailSDK({
    secretKey: 'some_secret', // Your Organisation's secret key
    callbacks: {
        onSuccess: (message) => console.log(message),
        onError: (error) => console.error(error)
    }
});
```

Check our [API Reference](https://docs.raccoonai.tech/api-reference/sdk/tail) to see the available methods on the `tailInstance`.

### Tail SDK React 
The [Tail SDK React](https://docs.raccoonai.tech/sdk/tail-react) module provides a set of hooks and components that help you integrate Tail SDK in your React-based apps.

You have to install the React Tail SDK. No need to install the `@raccoonai/tail` package if you are planning on using the React SDK.

```shell
npm install @raccoonai/tail-react
```


###### @/components/RaccoonTail.tsx (Any React Component)

```tsx
'use client';

import { useTailSDK, LinkAppModal } from '@raccoonai/tail-react';

const RACCOON_PASSCODE = "user_passcode" // User's raccoon passcode to link the app

export default function RaccoonTail() {
    const tailInstance = useTailSDK(config); // same config from core @/index.ts

    const [isOpen, setIsOpen] = useState(false); // Modal visibility state

    return <div>
        <LinkAppModal
                isModalVisible={isOpen}
                tailInstance={tailInstance}
                app='uber'
                onCancel={closeModal}
                raccoonPasscode={RACCOON_PASSCODE}
            />
    </div>
}
```

## Community

The Raccoon Community can be found on [Discord](https://discord.gg/WjcymSvG) where you can ask questions, voice ideas, and share your projects with other people.

## Contributing

Suggestions and contributions to Tail SDK are highly appreciated. For feature requests please [connect](https://www.raccoonai.tech/) with us via our chatbot, and we will get back to you.

## Authors

This library is created by [Raccoon AI](https://www.raccoonai.tech) team members.
npm package: @raccoonai/tail-react
Description: The [Tail SDK](https://docs.raccoonai.tech/sdk/tail) is a Typescript toolkit designed to help you integrate the Raccoon Tail in your platform using popular libraries like React or core Vanilla JavaScript.
Latest version: 0.3.1-alpha.1

# Tail SDK
The [Tail SDK](https://docs.raccoonai.tech/sdk/tail) is a Typescript toolkit designed to help you integrate the Raccoon Tail in your platform using popular libraries like React or core Vanilla JavaScript.

To learn more about how to use the Tail SDK, check out our [API Reference](https://docs.raccoonai.tech/api-reference/sdk/tail) and [Documentation](https://docs.raccoonai.tech/sdk/tail)

## Installation
You will need Node.js 18+ and pnpm installed on your local development machine.
```shell
npm install @raccoonai/tail
```

## Usage

### Tail SDK 
The [Tail SDK Core](https://docs.raccoonai.tech/sdk/tail) module provides a way to allow users to link apps of your choice.

###### @/index.ts (Browser Runtime)

```ts
import { TailSDK } from '@raccoonai/tail';
import type { TailError } from '@raccoonai/tail';

const tailInstance = new TailSDK({
    secretKey: 'some_secret', // Your Organisation's secret key
    callbacks: {
        onSuccess: (message) => console.log(message),
        onError: (error) => console.error(error)
    }
});
```

Check our [API Reference](https://docs.raccoonai.tech/api-reference/sdk/tail) to see the available methods on the `tailInstance`.

### Tail SDK React 
The [Tail SDK React](https://docs.raccoonai.tech/sdk/tail-react) module provides a set of hooks and components that help you integrate Tail SDK in your React-based apps.

You have to install the React Tail SDK. No need to install the `@raccoonai/tail` package if you are planning on using the React SDK.

```shell
npm install @raccoonai/tail-react
```


###### @/components/RaccoonTail.tsx (Any React Component)

```tsx
'use client';

import { useTailSDK, LinkAppModal } from '@raccoonai/tail-react';

const RACCOON_PASSCODE = "user_passcode" // User's raccoon passcode to link the app

export default function RaccoonTail() {
    const tailInstance = useTailSDK(config); // same config from core @/index.ts

    const [isOpen, setIsOpen] = useState(false); // Modal visibility state

    return <div>
        <LinkAppModal
                isModalVisible={isOpen}
                tailInstance={tailInstance}
                app='uber'
                onCancel={closeModal}
                raccoonPasscode={RACCOON_PASSCODE}
            />
    </div>
}
```

## Community

The Raccoon Community can be found on [Discord](https://discord.gg/WjcymSvG) where you can ask questions, voice ideas, and share your projects with other people.

## Contributing

Suggestions and contributions to Tail SDK are highly appreciated. For feature requests please [connect](https://www.raccoonai.tech/) with us via our chatbot, and we will get back to you.

## Authors

This library is created by [Raccoon AI](https://www.raccoonai.tech) team members.
npm package: @raccoongame/raccoon-uikit
Description: UI components for Raccoon games
Latest version: 1.0.15

# 🥞 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: @raccoons-co/dockerfile
Description: The Dockerfile generation API.
Author: Raccoons
Latest version: 0.1.4

[![npm version](https://badge.fury.io/js/@raccoons-co%2Fdockerfile.svg)](https://badge.fury.io/js/@raccoons-co%2Fdockerfile)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=raccoons-co_cleanway&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=raccoons-co_cleanway)
[![codecov](https://codecov.io/gh/raccoons-co/dockerfile/graph/badge.svg?token=uksCzUBmwv)](https://codecov.io/gh/raccoons-co/dockerfile)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/raccoons-co/dockerfile/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/raccoons-co/dockerfile/tree/main)

The Dockerfile generation API
---

The `Dockerfile` generation API. See the [documentation](https://raccoons-co.github.io/dockerfile/).

~~~
const config = PackageJson.toObject();

const testStage =
    BuildStage.newBuilder()
        .setName("test-in-docker")
        .setFrom(config.docker.image)
        .addLayer(
            User.of(config.docker.user),
            Workdir.of(config.docker.homedir),
            Copy.withChown(".", ".", config.docker.user),
            Run.ofShell(config.scripts.install_dev),
            Run.ofShell(config.scripts.test),
            Run.ofShell(config.scripts.prepack)
        )
        .build();

const microserviceStage =
    BuildStage.newBuilder()
        .setName("microservice")
        .setFrom(config.docker.image)
        .addLayer(
            User.of(config.docker.user),
            Workdir.of(config.docker.homedir),
            Copy.fromStage(testStage, "/home/node/dist/", "dist/"),
            Copy.fromStage(testStage, "/home/node/package.json", "."),
            Env.of("NODE_ENV", "production"),
            Run.ofShell(config.scripts.install_prod),
            Expose.ofTcp(config.docker.port),
            Cmd.ofExec(config.scripts.start)
        )
        .build();

const dockerfile =
    Dockerfile.newBuilder()
        .setName("tind.Dockerfile")
        .addStage(testStage)
        .addStage(microserviceStage)
        .build();

dockerfile.synthesize();
~~~

*projectRoot/generated/docker/tind.Dockerfile*:

~~~Dockerfile
# GENERATED CODE - DO NOT EDIT!
# Initialize a new build stage
FROM node:lts-alpine AS test-in-docker
USER node
WORKDIR /home/node
COPY --chown=node . .
RUN npm install
RUN npm run test:coverage
RUN npm run build
# Initialize a new build stage
FROM node:lts-alpine AS microservice
USER node
WORKDIR /home/node
COPY --from=test-in-docker /home/node/lib/ lib/
COPY --from=test-in-docker /home/node/package.json .
ENV NODE_ENV=production
RUN npm install --omit=dev --omit=optional --ignore-scripts
EXPOSE 80/tcp
CMD ["npm","run","this:microservice"]
# EOF
~~~
npm package: @raccoons-co/ethics
Description: Clean code ethics.
Author: Raccoons
Latest version: 0.4.3

[![npm version](https://badge.fury.io/js/@raccoons-co%2Fethics.svg)](https://badge.fury.io/js/@raccoons-co%2Fethics)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=raccoons-co_ethics&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=raccoons-co_ethics)
[![codecov](https://codecov.io/gh/raccoons-co/ethics/branch/master/graph/badge.svg?token=9X85JVC93D)](https://codecov.io/gh/raccoons-co/ethics)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/raccoons-co/ethics/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/raccoons-co/ethics/tree/master)

Clean Code Ethics
---

#### Install library
```shell script
% npm i @raccoons-co/ethics
```

Strict
---

#### `Strict.notNull(...)`

>*public static notNull\<T>(reference: T, message?: string): NonNullable\<T>*

Ensures that an object reference is not null.
Returns the non-null reference that was validated.
Throws `NullPointerException` if reference is null.

#### `Strict.checkArgument(...)`

>*public static checkArgument(expression: boolean, message?: string): void*

Ensures the truth of an expression.
Throws `IllegalArgumentException` if expression is false.

Optional
---

#### `Optional.empty()`

>*public static empty\<T>(): Optional<Exclude<T, undefined>>*

Returns an empty optional with no present value to get.

#### `Optional.of(...)`

>*public static of\<T>(value: T): Optional<NonNullable\<T>>*

Returns an optional of given non-null value.

#### `Optional.ofNullable(...)`

>*public static ofNullable\<T>(value: T): Optional<NonNullable\<T>>*

Returns an optional of given non-null value, otherwise an empty optional.

#### Optional `isEmpty()`

>*public isEmpty(): boolean*

Returns status of value absence.

#### Optional `isPresent()`

>*public isPresent(): boolean*

Returns status of value presence.

#### Optional `get()`

>*public get(): T*

Returns the value if present or empty optional throws NoSuchElementException.

#### Optional `orElseThrow()`

>*public orElseThrow(): T*

Returns the value if present or empty optional throws NoSuchElementException.

#### Optional `orElse(...)`

>*public orElse(otherValue: T): T*

Returns the value if present or else returns other value.

#### Optional `ifPresent(...)`

>*public ifPresent(performAction: (value: T) => void): void*

Performs the given action with the value, otherwise does nothing.

#### Optional `ifPresentOrElse(...)`

>*public ifPresentOrElse(action: (value: T) => void, emptyAction: () => void): void*

Performs the given action with the value, otherwise performs the given empty-based action.

Immutable
---

#### Class Annotation  `@Immutable`

Encapsulates instance of annotated class into `ImmutableObject` instance which prevents mutation 
of the original class instance.
npm package: @raccoons-co/genera
Description: Abstractions on top of Typescript 5.0.
Author: Raccoons
Latest version: 0.1.2

[![npm version](https://badge.fury.io/js/@raccoons-co%2Fgenera.svg)](https://badge.fury.io/js/@raccoons-co%2Fgenera)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=raccoons-co_genera&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=raccoons-co_genera)
[![codecov](https://codecov.io/gh/raccoons-co/genera/graph/badge.svg?token=O69DveLwYF)](https://codecov.io/gh/raccoons-co/genera)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/raccoons-co/genera/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/raccoons-co/genera/tree/master)

Genera
---

Class field decorator `@EnvironmentVariable`. Depends on TypeScript 5, Stage 3 ECMAScript Decorators 
and does not requires the opt-in compiler flag called `--experimentalDecorators`.

~~~TypeScript
export default class AwsEnvironment {

    @EnvironmentVariable.of("AWS_REGION").orElseInitial()
    private readonly awsRegion: string = "us-east-1";

    @EnvironmentVariable.of("AWS_ACCOUNT").orElseThrow()
    private readonly awsAccount: string = "";

    public region(): string {
        return this.awsRegion;
    }

    public account(): string {
        return this.awsAccount;
    }
}
~~~

Install:
```shell script
% npm i @raccoons-co/genera
```