open-index/open-npm huggingface dataset:
npm package: @ocralo/react-cgen
Description: A CLI tool to generate React components
Author: ocralo
Latest version: 1.1.0

# react-cgen

A simple code generator for React components.

## Installation

```bash
npm install -g react-cgen
```

## Usage

```bash
react-cgen [options] <component-name>
```

### Command Options

-   `-h, --help`: Display help for command
-   `-v, --version`: Display version number
-   `-name, --name`: Test for show name
-

## Commands

### `react-cgen components <component-name>`

Generate a new React component.

#### Example

```bash
react-cgen components Button
```

## Collaborators

[ocralo](https://github.com/ocralo)

## License

**[MIT](./LICENSE)**
npm package: @ocrampete16/ember-foundation-apps
Description: The default blueprint for ember-cli addons.
Author: Marco Petersen
Latest version: 0.0.0
Deprecated: Do not use this.

# Ember-foundation-apps

This README outlines the details of collaborating on this Ember addon.

## Installation

* `git clone` this repository
* `npm install`
* `bower install`

## Running

* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).
npm package: @ocriva/sdk
Description: Official TypeScript SDK for Ocriva Open API
Latest version: 0.1.0

# @ocriva/sdk

Official TypeScript SDK for the Ocriva Open API — AI-powered document processing.

## Installation

```bash
npm install @ocriva/sdk
```

## Quick Start

```typescript
import { OcrivaClient } from '@ocriva/sdk';

const client = new OcrivaClient({
  apiKey: 'ocr_your_api_key',
});

// Upload a file for processing
const result = await client.upload.file(file, {
  fileName: 'invoice.pdf',
  fileType: 'pdf',
  fileSize: '1024',
  mimeType: 'application/pdf',
  projectId: 'your_project_id',
});

// List processing history
const history = await client.processingHistory.list({
  projectId: 'your_project_id',
  status: 'completed',
});

// Get extraction result
const data = await client.processingHistory.getResult('history_id', {
  format: 'json',
});
```

## Authentication

Get your API key from the [Ocriva Dashboard](https://ocriva.com). Use it in the `X-API-Key` header or pass it to the SDK client.

```typescript
const client = new OcrivaClient({
  apiKey: 'ocr_live_...',
  baseUrl: 'https://api.ocriva.com/v1', // default
  timeout: 30000, // 30s default
  maxRetries: 3, // auto-retry on 429/5xx
});
```

## Resources

| Resource | Methods |
|----------|---------|
| `client.upload` | `file()` |
| `client.templates` | `list()`, `create()`, `update()`, `delete()`, `uploadFile()`, `deleteFile()` |
| `client.projects` | `list()` |
| `client.processingHistory` | `list()`, `get()`, `getResult()`, `stats()` |
| `client.batch` | `upload()`, `list()`, `get()`, `exportResults()` |

## Error Handling

```typescript
import { OcrivaClient, AuthenticationError, RateLimitError } from '@ocriva/sdk';

try {
  const result = await client.upload.file(file, params);
} catch (error) {
  if (error instanceof AuthenticationError) {
    // Invalid or expired API key
  } else if (error instanceof RateLimitError) {
    // 429 — retry after error.retryAfter seconds
  }
}
```

## Requirements

- Node.js >= 18 (uses native `fetch`)
- TypeScript >= 5.0 (recommended)

## Documentation

- [Open API Docs](https://ocriva.com/documents-specification/open-api-overview)
- [API Reference](https://ocriva.com/documents-specification/api-reference)

## License

MIT