open-index/open-npm huggingface dataset:
npm package: @socio-development/jsg
Description: TypeScript-first JSON schema declaration library
Author: CasperSocio
Latest version: 0.3.0

# Json Schema Generator (JSG)

JSG is a TypeScript-first JSON schema declaration library inspired by [zod](https://zod.dev/).

```ts
import jsg from '@socio-development/jsg'

const adminSchema = jsg
  .boolean()
  .description('Property only included when value is true.')
  .const(true)
  .optional()

const firstNameSchema = jsg.string().minLength(1).maxLength(50)
const lastNameSchema = jsg.string().minLength(1).maxLength(50)

const usernameSchema = jsg
  .string()
  .description(
    'The username must be unique as it is often used as a slug in URLs.'
  )
  .minLength(3)
  .maxLength(20)
  .pattern('^[a-zA-Z]')

const userSchema = jsg.object({
  admin: adminSchema,
  firstName: firstNameSchema,
  lastName: lastNameSchema,
  username: usernameSchema,
})

console.log(JSON.stringify(userSchema, null, 2))
```

```json
{
  "type": "object",
  "properties": {
    "admin": {
      "type": "boolean",
      "description": "Only included if true.",
      "const": true
    },
    "firstName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50
    },
    "lastName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50
    },
    "username": {
      "type": "string",
      "description": "The username must be unique as it is often used as a slug in URLs.",
      "minLength": 3,
      "maxLength": 20,
      "pattern": "^[a-zA-Z]"
    }
  },
  "required": ["firstName", "lastName", "username"]
}
```
npm package: @sociogram-dev/platform-api
Description: SDK for interacting with the Sociogram API
Latest version: 1.0.16

# SG SDK

A TypeScript SDK for interacting with the SG API.

## Installation

```bash
yarn add @sociogram-dev/api
```

## Usage

```typescript
import { SociogramDevKit } from '@sociogram-dev/api';

// Initialize the SDK with your API key
const sdk = new SociogramDevKit({
  apiKey: 'your-api-key',
});

// Send a notification to a user
await sdk.notifyUser('userId', 'your_notification_message');
```

## API Reference

#### Config Options

- `apiKey` (required): Your API key for authentication
- `baseUrl` (optional): Custom API base URL (defaults to 'https://api.example.com')


#### notifyUser(userId: string, message: string): Promise<void>

Sends a notification to a specific user.

## License

MIT
npm package: @sociogram-dev/protobuf
Description: Sociogram gRPC proto definitions
Author: sociogram-dev
Latest version: 1.6.41

# proto
Sociogram gRPC proto definitions

Project Structure
    
    ├── package.json 
    ├── tsconfig.json
    ├── README.md
    ├── .gitignore
    ├── .npmignore
    ├── proto/
    │   ├── balance/
    │   │   └── [service].proto
    │   ├── mini-app/
    │   │   └── [service].proto
    ├── src/
    │   ├── generated/
    │   └── index.ts
    └── dist/


2. Install Dependencies

bash# Development dependencies
```
# npm install --save-dev @types/node grpc-tools rimraf ts-proto typescript
# yarn add -D @types/node grpc-tools rimraf ts-proto typescript
```

# Peer dependencies (these will be provided by your NestJS projects)
```
# npm install --save-peer @grpc/grpc-js @nestjs/common @nestjs/microservices
# yarn add @grpc/grpc-js @nestjs/common @nestjs/microservices
```