open-index/open-npm huggingface dataset:
npm package: @pureweb/cra-template-pureweb-client
Description: Pureweb client
Latest version: 5.0.5


# PureWeb Create React App template

The official PureWeb template for Create React App

## Usage

```sh
npx create-react-app my-app --template @pureweb/cra-template-pureweb-client
```
On Mac OS when running npm 8+ you might need to specify create-react-app version 5.0.0
```sh
npx create-react-app@5.0.0 my-app --template @pureweb/cra-template-pureweb-client
```

This will generate a typescript-based react application, ready for you to customize and configure to your needs.


## Setting up client.json for use  with Hosted Models

1. Sign in to https://console.pureweb.io.
2. Create a project

### Configuration

In order to develop your client against a given project and model that is already hosted on the PureWeb platform you will need to configure `client.json`, located in the generated client code under `src/client.json`.

```json
{
  "projectId": "b1f3a842-42e1-40b5-9f04-480cf87b59c8",
  "modelId": "72e23f8d-c68b-422d-9f81-004922bfc37a"
}
```

You can optionally specifiy a `version` of the model to use.

```json
{
  "projectId": "b1f3a842-42e1-40b5-9f04-480cf87b59c8",
  "modelId": "72e23f8d-c68b-422d-9f81-004922bfc37a",
  "version": "abcefg"
}
```

Alternatively, the `projectId`, `modelId`, and optional `version` can also be specified through query parameters:

`http://localhost:3000?projectId=b1f3a842-42e1-40b5-9f04-480cf87b59c8&modelId=72e23f8d-c68b-422d-9f81-004922bfc37a&version=abcefg`


## Developing with model running locally

To learn more about the local workflow for running the game and the PureWeb streaming agent on your own machine, see the getting started information here: https://www.npmjs.com/package/@pureweb/platform-streaming-agent
npm package: @pureweb/platform-admin-sdk
Description: PureWeb Platform Administrative SDK for JavaScript
Author: PureWeb
Latest version: 5.0.5

# platform-admin

The PureWeb Platform Administrative SDK for JavaScript.

## Installation

```bash
$ yarn add @pureweb/platform-admin-sdk
```

## Getting Started

```javascript
import Admin from '@pureweb/platform-admin-sdk';

const admin = new Admin(CLIENT_ID, CLIENT_SECRET);
await admin.authenticate();

const environment = await admin.createAgentEnvironment('MyEnvironment');
```

## Support

Contact support@pureweb.com with any questions or concerns.
npm package: @pureweb/platform-cli
Description: Platform CLI
Latest version: 5.0.5

# Platform CLI

The Platform CLI is a command line interface used to manage your PureWeb projects. 

## Installation

To install the latest released version:

Using yarn:
```shell
$ yarn global add @pureweb/platform-cli
```
Using npm:
```shell
$ npm install -g @pureweb/platform-cli
```

## Getting Started


### Access the PureWeb Developer Console

1. Navigate to https://console.pureweb.io
2. Login (or signup) and create a new project.
3. Note the `CLIENT_ID` and `CLIENT_SECRET` for the project, for use in the next step.


### Set up your PureWeb project configuration.

```shell
$ pw config set client-id <CLIENT_ID>
$ pw config set client-secret <CLIENT_SECRET>
```

### Example Commands

For a full list of commands, run `pw help`.

#### Create an Agent Environment

```shell
$ pw environment create --name MyEnvironment
```

#### Create an Agent Token
```shell
$ pw agent create <environmentId>
```

#### Create a Model
```shell
$ pw model create MyModel /path/to/zip/file
```

## Support

Contact support@pureweb.com with any questions or concerns.
npm package: @purge_dev/m.cord
Description: A discord package.
Author: purge_dev
Latest version: 1.0.0

<h2 style="font-size:2.5rem; color:#075FFF" align="center">MCord</h2>

<h2 align="center"> A Simple, Easy and Beginner friendly Discord.js Package for everyone. <br>Uses Discord.js v12<br><br>Developed by Purge#3010</h2>
 
<br>

## <b>How to install ?
```
npm install m.cord
```
<br>


## **Need Help ? Join the [Discord Server](https://discord.gg/9etAMv4EUj)**
### We love to help people. Join the server. Dont be shy.
<br>

## <b>When Using Buttons
```
npm install discord-buttons
```
```js
// Code Example
const Discord = require('discord.js')
const disbut = require('discord-buttons')
const client = new Discord.Client()
disbut(client)

// disbut(client) needs to be below the client
```

# [Examples](https://discord.gg/9etAMv4EUj) In this discord server.
 <h1>Contact us | Support</h1>
 <p>
<a href="https://discord.gg/9etAMv4EUj">
</p>
npm package: @purified-app/typed-storage
Description: A type-safe wrapper for localStorage and sessionStorage
Author: Benjamin Reiersolmoen
Latest version: 0.1.0

# @purified-app/typed-storage

A type-safe wrapper for localStorage and sessionStorage operations.

## Installation

```bash
npm install @purified-app/typed-storage
```

## Quick Start

### Define Your Types

```typescript
type MyStorage = {
  user: { id: number; name: string };
  settings: { theme: "light" | "dark" };
};
```

### TypeScript Usage

```typescript
import { LocalStorageService } from "@purified-app/typed-storage";

const storage = new LocalStorageService<MyStorage>();

// Store data
storage.set("user", { id: 1, name: "John" });

// Retrieve with type safety
const user = storage.get("user"); // { id: number; name: string } | null

// Retrieve with default
const theme = storage.get("settings", { theme: "light" }); // { theme: "light" | "dark" }

// Check existence
if (storage.has("user")) {
  /* ... */
}

// Use sessionStorage
const session = new LocalStorageService<MyStorage>(sessionStorage);
```

### Angular Usage

```typescript
import { Injectable } from "@angular/core";
import { LocalStorageService } from "@purified-app/typed-storage";

@Injectable({ providedIn: "root" })
export class AppStorageService extends LocalStorageService<MyStorage> {
  constructor() {
    super(localStorage);
  }
}

// In components
ngOnInit() {
  const storage = inject(AppStorageService);
  const user = storage.get("user");
  const settings = storage.get("settings", { theme: "light" });
}
```

## API

### Constructor

```typescript
new LocalStorageService<T>(storage?: Storage)
```

### Methods

- `get<K>(key: K): T[K] | null` - Get value
- `get<K>(key: K, defaultValue: T[K]): T[K]` - Get with default
- `set<K>(key: K, value: T[K]): void` - Store value
- `has<K>(key: K): boolean` - Check existence
- `remove<K>(key: K): void` - Remove key
- `clear(): void` - Clear all data

## Features

- ✅ Full TypeScript type safety
- ✅ localStorage & sessionStorage support
- ✅ Default values in get operations
- ✅ Framework agnostic (works with React, Vue, Angular, etc.)
- ✅ Automatic JSON serialization
- ✅ Error handling for invalid data

## License

MIT