open-index/open-npm huggingface dataset:
npm package: @semilayer/cli
Description: SemiLayer CLI — init, generate, push, status, dev
Latest version: 1.2.1

<p align="right">
  <img src="https://raw.githubusercontent.com/semilayer/semilayer/main/assets/logo.png" alt="SemiLayer" width="120" />
  <br />
  <strong>@semilayer/cli</strong>
</p>

<p align="right">
The official CLI for <a href="https://semilayer.com">SemiLayer</a> — login, init, generate, push, status, dev. The primary interface for wiring up semantic search, similarity, and smart feeds on your existing database.
</p>

---

## Install

```bash
pnpm add -D @semilayer/cli
# or globally
npm i -g @semilayer/cli
```

## Quick start

```bash
semilayer login                  # browser-based auth
semilayer init                   # scaffold sl.config.ts + .semilayerrc
semilayer push                   # push config to the service
semilayer generate               # generate the typed Beam client
semilayer status                 # check lens + queue status
semilayer dev                    # watch mode
```

Commands include `orgs`, `projects`, `envs`, `keys`, `sources`, `lenses`, `members`, `billing`, `ingest`, `pause`, `resume`, and more. Run `semilayer --help` for the full list.

See [semilayer.dev](https://semilayer.dev) for the full docs.

## License

MIT
npm package: @semilayer/client
Description: SemiLayer Beam client runtime — fetch, auth, pagination
Latest version: 1.2.1

<p align="right">
  <img src="https://raw.githubusercontent.com/semilayer/semilayer/main/assets/logo.png" alt="SemiLayer" width="120" />
  <br />
  <strong>@semilayer/client</strong>
</p>

<p align="right">
The Beam client runtime for <a href="https://semilayer.com">SemiLayer</a> — fetch, auth, pagination, and streaming. Used by generated typed clients and directly by apps that want an untyped low-level API.
</p>

---

## Install

```bash
pnpm add @semilayer/client
```

## Usage

```ts
import { BeamClient } from '@semilayer/client'

const beam = new BeamClient({
  apiKey: process.env.SEMILAYER_API_KEY!,
})

const results = await beam.search('articles', { query: 'renewable energy' })
```

For typed clients, scaffold with `semilayer generate` from [`@semilayer/cli`](https://www.npmjs.com/package/@semilayer/cli). For end-user tokens in multi-tenant apps, see `beam.withUser(token)`.

See [semilayer.dev](https://semilayer.dev) for the full docs.

## License

MIT
npm package: @semilayer/codegen
Description: SemiLayer codegen — Beam client code generation
Latest version: 1.2.0

<p align="right">
  <img src="https://raw.githubusercontent.com/semilayer/semilayer/main/assets/logo.png" alt="SemiLayer" width="120" />
  <br />
  <strong>@semilayer/codegen</strong>
</p>

<p align="right">
Code generator for <a href="https://semilayer.com">SemiLayer</a> — turns your <code>sl.config.ts</code> into a fully typed Beam client. Invoked by the CLI; rarely imported directly.
</p>

---

## Install

You usually don't install this directly. Use the [`@semilayer/cli`](https://www.npmjs.com/package/@semilayer/cli) instead:

```bash
pnpm add -D @semilayer/cli
semilayer generate
```

## Programmatic use

```ts
import { generate } from '@semilayer/codegen'

await generate({
  config: './sl.config.ts',
  outDir: './src/beam',
})
```

See [semilayer.dev](https://semilayer.dev) for the full docs.

## License

MIT