open-index/open-npm huggingface dataset:
npm package: @headlessng/primitives
Description: A set of unstyled and fully accessible components for building design systems based on Angular.
Author: Adam Wojtaś
Latest version: 0.2.2

# @headlessng/primitives

A set of unstyled and fully accessible components for building design systems based on Angular.

> **_WARNING:_** It is currently not recommended to use this package in production applications. It uses Angular concepts that are still marked as "developer preview".

## Installation

To install the latest version of package, use the following command:

```sh
npm install -s @headlessng/primitives@latest
```

## Import

Each component in the package is built based on the [Secondary Entry Point](https://github.com/ng-packagr/ng-packagr/blob/main/docs/secondary-entrypoints.md). To import a specific component from the library, use the following pattern:

```typescript
import {} from '@headlessng/primitives/*';
```

## Documentation

Each component in this library is independent and has its own documentation, below you will find links to each of them:

- [@headlessng/primitives/checkbox](checkbox/README.md)
- [@headlessng/primitives/description](description/README.md)
- [@headlessng/primitives/disabled](disabled/README.md)
- [@headlessng/primitives/error-message](error-message/README.md)
- [@headlessng/primitives/field](field/README.md)
- [@headlessng/primitives/focus](focus/README.md)
- [@headlessng/primitives/invalid](invalid/README.md)
- [@headlessng/primitives/label](label/README.md)
- [@headlessng/primitives/required](required/README.md)

## Changelog

You can find a list of all changes for this package [here](CHANGELOG.md).
npm package: @headlessoracle/client
Description: TypeScript client for Headless Oracle V5 — signed market status receipts for AI agents
Latest version: 0.1.0

# @headlessoracle/client

Stop trading blind. Verify exchange status before every order with a cryptographically signed receipt that expires in 60 seconds.

TypeScript client for [Headless Oracle V5](https://headlessoracle.com) — typed wrappers for all endpoints, optional built-in signature verification, zero ambiguity about market state.

## Installation

```bash
npm install @headlessoracle/client
# Optional: built-in receipt verification
npm install @headlessoracle/verify
```

## Quick start

```ts
import { OracleClient } from '@headlessoracle/client'

const client = new OracleClient({ apiKey: 'ok_live_...' })

// Fetch a signed live receipt
const receipt = await client.getStatus('XNYS')

// Fail-closed: treat UNKNOWN as CLOSED
if (receipt.status !== 'OPEN') {
  throw new Error('Market not open — halting all execution')
}
```

## With built-in verification

```ts
const client = new OracleClient({
  apiKey:    'ok_live_...',
  verify:    true,
  publicKey: '03dc27993a2c90856cdeb45e228ac065f18f69f0933c917b2336c1e75712f178',
})

// Throws OracleVerifyError if signature is invalid
const receipt = await client.getStatus('XNYS')
```

## Batch queries

```ts
const batch = await client.getBatch(['XNYS', 'XNAS', 'XLON'])
for (const receipt of batch.receipts) {
  console.log(receipt.mic, receipt.status)
}
```

## Schedule

```ts
const schedule = await client.getSchedule('XNYS')
console.log('Next open:', schedule.next_open)
console.log('Next close:', schedule.next_close)
```

## API

| Method | Auth | Description |
|--------|------|-------------|
| `getDemo(mic?)` | No | Signed demo receipt (for testing) |
| `getStatus(mic?)` | Yes | Signed live receipt |
| `getBatch(mics[])` | Yes | Signed receipts for multiple exchanges |
| `getSchedule(mic?)` | No | Next open/close times |
| `listExchanges()` | No | All supported exchanges |
| `getKeys()` | No | Public key registry |
| `getHealth()` | No | Oracle liveness probe |

## Error handling

```ts
import { OracleClient, OracleError, OracleVerifyError } from '@headlessoracle/client'

try {
  const receipt = await client.getStatus('XNYS')
} catch (err) {
  if (err instanceof OracleError) {
    // HTTP error — err.statusCode, err.body
  } else if (err instanceof OracleVerifyError) {
    // Signature verification failed — err.reason
  }
}
```

## Supported exchanges

| MIC | Exchange | Timezone |
|-----|----------|----------|
| XNYS | New York Stock Exchange | America/New_York |
| XNAS | NASDAQ | America/New_York |
| XLON | London Stock Exchange | Europe/London |
| XJPX | Japan Exchange Group | Asia/Tokyo |
| XPAR | Euronext Paris | Europe/Paris |
| XHKG | Hong Kong Exchanges | Asia/Hong_Kong |
| XSES | Singapore Exchange | Asia/Singapore |

## License

MIT