open-index/open-npm huggingface dataset:
npm package: @indshine/ui-kit
Description: UI Kit for Indshine Platform
Author: abinashpanda
Latest version: 1.4.2

# ui-kit

> UI Kit for Indshine Platform

[![NPM](https://img.shields.io/npm/v/ui-kit.svg)](https://www.npmjs.com/package/ui-kit) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save ui-kit
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'ui-kit'

class Example extends Component {
  render () {
    return (
      <MyComponent />
    )
  }
}
```

## License

MIT © [abinashpanda](https://github.com/abinashpanda)
npm package: @inductionai/framework
Description: Build-time authorization framework using TypeScript conditional types
Author: Induction Framework Contributors
Latest version: 1.0.0

# @induction/framework

Build-time authorization framework using TypeScript's conditional types for zero-overhead access control.

## Features

- ✅ **Compile-time enforcement** - Authorization violations are TypeScript errors
- ✅ **Zero runtime overhead** - No checks, no proxies, just direct function calls
- ✅ **Full type safety** - Complete IntelliSense and type inference
- ✅ **Generic** - Works with any caller/callee types
- ✅ **Flexible** - Policy as code or generated from JSON

## Installation

```bash
# From npm
npm install @induction/framework

# From source (monorepo development)
# Framework is available via path aliases in tsconfig.base.json:
{
  "paths": {
    "@induction/framework": ["packages/framework/src/index.ts"]
  }
}
```

## Quick Start

```typescript
import { createRegistry, defineCallee } from '@induction/framework';

// 1. Define your IDs
type CallerId = 'AdminUser' | 'RegularUser';
type CalleeId = 'Database' | 'API';

// 2. Define your policy
const policy = {
  AdminUser: ['Database', 'API'] as const,
  RegularUser: ['API'] as const,
} as const;

// 3. Define your API types
interface DatabaseAPI {
  query(sql: string): Promise<any[]>;
}

interface APIAPI {
  get(url: string): Promise<Response>;
}

interface CalleeRegistry {
  Database: DatabaseAPI;
  API: APIAPI;
}

// 4. Create registry
const { register, authorize } = createRegistry<
  CallerId,
  CalleeId,
  typeof policy,
  CalleeRegistry
>({ policy });

// 5. Define your services
const Database = defineCallee('Database', {
  async query(sql) {
    // Implementation
    return [];
  }
} satisfies DatabaseAPI);

// 6. Register them
register(Database.id, Database.api);

// 7. Use authorization
// ✅ Allowed - returns DatabaseAPI
const db = authorize('AdminUser', 'Database');
await db.query('SELECT * FROM users');

// ❌ Forbidden - returns 'never', causes TypeScript error
const forbidden = authorize('RegularUser', 'Database');
//                ~~~~~~~~~~ Type 'never' is not assignable...
```

## API

### `createRegistry<CallerIds, CalleeIds, Policy, Registry>(config)`

Creates a type-safe authorization registry.

**Returns:**
- `register(id, implementation)` - Register a callee
- `authorize(caller, callee)` - Get callee with authorization check
- `debugRegistry()` - Print registry status
- `clearRegistry()` - Clear all registrations
- `isRegistered(id)` - Check if callee is registered
- `getRegisteredIds()` - List all registered IDs

### `defineCallee(id, api)`

Helper to define a callee with its ID and implementation.

### Type Utilities

- `PolicyMap<CallerIds, CalleeIds>` - Policy map type
- `IsAllowed<Policy, C, T>` - Check if caller can access callee
- `AllowedFor<Policy, C>` - Get allowed callees for caller
- `Authorize<Policy, Registry, C, T>` - Authorize result type

## Examples

See `/examples/authorization-system-nx/` for complete working example with Nx integration.

## License

MIT
npm package: @inductiv/node-red-couchbase-api
Description: Node-RED nodes for the Couchbae REST API v7.2.0
Author: Allan Bunch
Latest version: 0.1.1

# @inductiv/node-red-couchbase-api

This package provides you with a set of Node-RED nodes for interfacing with Couchbase services.

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Acknowledgements](#acknowledgements)

## Installation

### Via NPM

```bash
cd $HOME/.node-red
npm i @inductiv/node-red-couchbase-api
```

## Usage

You can find implementations of each node in the [example](./examples/api-examples.json) flow.

Note: Each node's functionality maps to the official Couchbase [REST API reference](https://docs.couchbase.com/server/current/rest-api/rest-intro.html) documentation.

## License

[MIT](./LICENSE).

## Acknowledgements

Made possible by:

- Couchbase Labs: [cb-swagger](https://github.com/couchbaselabs/cb-swagger) project