open-index/open-npm huggingface dataset:
npm package: @restaround/react
Description: React Library by restaround.co
Author: restaround.co
Latest version: 1.4.85

# @restaround/react

React Library by [restaround.co](https://restaround.co)

## Install

```bash
npm install @restaround/react
```

### Install Peer dependencies (must also be installed):

```bash
npm install react react-dom @sorocraft/js-utils @sorocraft/ui
```

## Usage

Import main library:

```jsx
import { ComponentName } from "@restaround/react";
```

Import utils, models, or constants:

```jsx
import { someUtil } from "@restaround/react/utils";
import { SomeModel } from "@restaround/react/models";
import { SOME_CONSTANT } from "@restaround/react/constants";
```

Import styles:

```jsx
import "@restaround/react/styles/ui.css";
```

## Commands (for development)

`npm run build` → Build library

`npm run dev` → Build and watch

`npm run lint` → Run ESLint

`npm test` → Run tests

`npm run pub` → Publish new version
npm package: @restart/hooks
Description: A set of utility and general-purpose React hooks.
Author: Jason Quense
Latest version: 0.6.2

# @restart/hooks [![npm][npm-badge]][npm]

A set of utility and general-purpose React hooks.

## Install

```sh
npm install @restart/hooks
```

## Usage

```js
import useInterval from '@restart/hooks/useInterval'

useInterval(() => loop(), 300, false)
```

[npm-badge]: https://img.shields.io/npm/v/@restart/hooks.svg
[npm]: https://www.npmjs.org/package/@restart/hooks
npm package: @restash/client
Description: The official Restash client for uploading files directly from the browser.
Author: Restash
Latest version: 1.0.3
Deprecated: This package has been renamed to @restash/restash-js. Please update your imports.

# @restash/client

The official Restash client for uploading files directly from the browser.

## Installation

```bash
npm install @restash/client
````

## Quickstart

Upload files directly from the browser to Restash.

```typescript
import { createRestashUploader } from "@restash/client";

const upload = createRestashUploader({ publicKey: "pk_..." });

const result = await upload(file, {
  path: "uploads/", // optional directory to upload to
  onProgress: ({ percent }) => {
    console.log(`Uploading... ${percent}%`)
  },
});

console.log("File uploaded:", result.url);
```

## If your team requires signed uploads

Create a route to generate signatures using the `generateSig` function with your `secret key`

```typescript
import { generateSig } from "@restash/client";

const { payload, signature } = generateSig(process.env.RESTASH_SECRET_KEY!);

return NextResponse.json({ payload, signature });
```

Then pass your signature route to the `createRestashUploader` function:

```typescript
const upload = createRestashUploader({
  publicKey: "pk_...",
  handleSignature: "/api/restash/signature",
});
```

Do not call `generateSig` from the browser - this requires your secret key and must be executed in a server
environment only.

## More coming soon

- React hooks
- Uploader components
- File picker
- More...

## Feedback & Support

Have questions or feature requests?
Drop an issue on [Github](https://github.com/restashio/restash-client/issues)
npm package: @restash/node
Description: Official Restash Node.js SDK
Author: Restash
Latest version: 0.6.0

The official Restash Node.js SDK.

## Installation

```bash
npm install @restash/node
````

## Quickstart

See the full SDK reference [here](https://docs.restash.io/sdks/node)

```typescript
import { Restash } from "@restash/node";

const restash = new Restash("sk_123456789");

const result = await restash.files.upload(file);

console.log("File uploaded:", result.url);
```

## Feedback & Support

Have questions or feature requests?
Drop an issue on [Github](https://github.com/restashio/restash-node/issues)
npm package: @restash/restash-js
Description: The official Restash js client for uploading files directly from the browser.
Author: Restash
Latest version: 0.5.0

The official Restash js client for uploading files directly from the browser.

## Installation

```bash
npm install @restash/restash-js
````

## Quickstart

Upload files directly from the browser to Restash.

```typescript
import { createRestashUploader } from "@restash/restash-js";

const upload = createRestashUploader({ publicKey: "pk_..." });

const result = await upload(file, {
  path: "uploads/",
  onProgress: ({ percent }) => {
    console.log(`Uploading... ${percent}%`)
  },
});

console.log("File uploaded:", result.url);
```

## If your team requires signed uploads

Create a route to generate signatures using the `generateSig` function with your `secret key`

```typescript
import { generateSig } from "@restash/restash-js";

const { payload, signature } = generateSig(process.env.RESTASH_SECRET_KEY!);

return NextResponse.json({ payload, signature });
```

Then pass your signature route to the `createRestashUploader` function:

```typescript
const upload = createRestashUploader({
  publicKey: "pk_...",
  handleSignature: "/api/restash/signature",
});
```

Do not call `generateSig` from the browser - this requires your secret key and must be executed in a server
environment only.

## Feedback & Support

Have questions or feature requests?
Drop an issue on [Github](https://github.com/restashio/restash-js/issues)
npm package: @restate/dev-tools
Description: _Restate_ is a predictable, easy to use, easy to integrate, typesafe state container for [React](https://reactjs.org/).
Latest version: 0.13.5

# RESTATE DEV TOOLS

_Restate_ is a predictable, easy to use, easy to integrate, typesafe state container for [React](https://reactjs.org/).

Restate uses the
excellent <a href="https://github.com/zalmoxisus/redux-devtools-extension" target="https://github.com/zalmoxisus/redux-devtools-extension">ReduxDevTools</a> to provide power-ups for your development workflow.

![DevTools screenshot](https://raw.githubusercontent.com/uwinkler/restate/master/web-site/src/pages/dev-tools-screenshot.png)

#### Installation

Go and get the ReduxDevTools for your browser:

- <a href="https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd">Google Chrome</a>
- <a href="https://addons.mozilla.org/en-US/firefox/addon/reduxdevtools/">Firefox</a>

Then install the `@restate/dev-tools`

```bash
yarn add @restate/dev-tools
```

#### Usage

```ts
import { connectDevTools } from "@restate/dev-tools"

const store = createStore({
  state: {
    name: "John Snow",
    age: 32
  },
  options: {
    storeName: "MY APP STORE" // <-- will show up in the instance selector
  }
})

connectDevTools(store)
```
npm package: @restatedev/create-app
Description: Project template generator for the Restate TypeScript SDK
Author: Restate Developers
Latest version: 1.0.1

[![Documentation](https://img.shields.io/badge/doc-reference-blue)](https://docs.restate.dev)
[![Examples](https://img.shields.io/badge/view-examples-blue)](https://github.com/restatedev/examples)
[![Discord](https://img.shields.io/discord/1128210118216007792?logo=discord)](https://discord.gg/skW3AZ6uGd)
[![Twitter](https://img.shields.io/twitter/follow/restatedev.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=restatedev)

# Restate Template for TypeScript / NodeJS services

This is a template for a [Restate-based](https://restate.dev/) service in [TypeScript](https://www.typescriptlang.org/).

## tl;dr

To create a template service, use this sequence of commands:

```shell
npx -y @restatedev/create-app@latest
cd restate-node-template

npm install

npm run app-dev
```

For more details, check the [Get started documentation](https://docs.restate.dev/get_started/quickstart?sdk=ts)

# Useful links

- Restate Typescript SDK: https://github.com/restatedev/sdk-typescript
- The Restate documentation: https://docs.restate.dev/
- Restate Docker container: https://hub.docker.com/r/restatedev/restate

# Contributing to this template

The template that is generated by the `npx @restatedev/create-app` is available here: https://github.com/restatedev/examples/tree/main/templates/typescript

The last released version is automatically picked up by the tool.

### Releasing via release-it

Releasing a new npm package from this repo requires:

- [SSH access configured for Github](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) in order to push commits and tags to GitHub
- A GitHub personal access token with access to https://github.com/restatedev/node-template-generator in your environment as `GITHUB_TOKEN` in order to create a Github release

```bash
npm run release
# now select what type of release you want to do and say yes to the rest of the options
```

The actual `npm publish` is run by GitHub actions once a GitHub release is created.

### Releasing manually

1. Create and push a tag of the form `vX.Y.Z` to the upstream repository
1. [Create a new GitHub release](https://github.com/restatedev/node-template-generator/releases)

Creating the GitHub release will trigger `npm publish` via GitHub actions.
npm package: @restatedev/restate-cdk
Description: Restate.dev CDK constructs
Author: Restate Developers
Latest version: 1.6.1

[![Documentation](https://img.shields.io/badge/doc-reference-blue)](https://docs.restate.dev)
[![Examples](https://img.shields.io/badge/view-examples-blue)](https://github.com/restatedev/examples)
[![Discord](https://img.shields.io/discord/1128210118216007792?logo=discord)](https://discord.gg/skW3AZ6uGd)
[![Twitter](https://img.shields.io/twitter/follow/restatedev.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=restatedev)

# Restate CDK Construct Library

AWS Cloud Development Kit (CDK) construct library for deploying [Restate](https://restate.dev) and
Restate services on AWS.

[Restate](https://github.com/restatedev/restate) is the platform for building resilient applications
that tolerate all infrastructure faults w/o the need for a PhD. For more information on CDK, please
see [Getting started with the AWS CDK](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html).

This library helps you manage registering AWS Lambda-based Restate services in Restate environments.
It also offers basic support for creating self-hosted Restate deployments on your own AWS infrastructure.

## Installation

Inside an existing CDK project, add the library from [npm](https://www.npmjs.com/package/@restatedev/restate-cdk):

```shell
npm i @restatedev/restate-cdk
```

## Available constructs

- [`RestateCloudEnvironment`](./lib/restate-constructs/restate-cloud-environment.ts) - Supports deploying Restate
  services to an existing [Restate Cloud](https://cloud.restate.dev) environment.
- [`SingleNodeRestateDeployment`](./lib/restate-constructs/single-node-restate-deployment.ts) - Deploys a self-hosted
  Restate server running on Amazon EC2; this provides a basic single-node deployment targeted at
  development and testing
- [`ServiceDeployer`](./lib/restate-constructs/service-deployer.ts) - facilitates registration of Lambda-based service
  handlers with a Restate environment, such as a self-hosted EC2 environment

For a more detailed look, please refer to the [Restate CDK documentation](https://docs.restate.dev/deploy/services/faas/lambda/cdk).

### Examples

You can use the following templates to bootstrap your own CDK projects:

- [e2e tests in this repository](test/e2e)
- the official [Restate examples](https://github.com/restatedev/examples) repository