# @brik64/core

JavaScript/TypeScript SDK beta for using BRIK64-style monomer helpers and
composition utilities in application code.

Current SDK beta: `0.1.0-beta.18.1`
Aligned CLI beta: `0.1.0-beta.18.1`

## Install

```bash
npm install @brik64/core@0.1.0-beta.18.1
```

This package is an SDK library. The CLI is installed separately:

```bash
curl -fsSL https://brik64.com/cli/install.sh | bash
```

## What The SDK Provides

- `mc`: typed helper functions for the current monomer families, including
  arithmetic, logic, memory-style arrays/stacks, control helpers, strings,
  byte utilities, float/math helpers, and selected system helpers.
- `eva`: small composition helpers for sequencing, branching, and parallel
  fan-out patterns in normal JavaScript/TypeScript code.
- Type declarations and source maps for editor support.

The implemented helpers are intended for examples, local integration tests, and
prototype application code that wants to use the same naming and composition
style as BRIK64 examples.

Some runtime-facing families, such as filesystem, network, graphics, audio,
concurrency, and interop, expose placeholder functions in this beta. Those
functions throw clear `runtime implementation pending` errors until a supported
runtime adapter is available.

## Usage

```typescript
import { mc, eva } from "@brik64/core";

const sum = mc.add8(200, 100);
const [quotient, remainder] = mc.div8(17, 5);

const pipeline = eva.seq(
  ([a, b]: [number, number]) => mc.add8(a, b),
  (value) => mc.mod8(value, 10)
);

pipeline([7, 8]);
```

## Scope

This SDK is a developer library. It does not install the CLI, inspect `.brik`
workspaces, publish certificates, or replace the CLI release notes. For CLI
commands and workspace workflows, use the public installer and docs.

## Public References

- Website: https://brik64.com
- Docs: https://docs.brik64.com
- CLI release: https://github.com/brik64/brik64-cli/releases/tag/v0.1.0-beta.18.1

## License

See [LICENSE](LICENSE).
