open-index/open-npm huggingface dataset:
npm package: @semilayer/core
Description: SemiLayer core — defineConfig, schema types, shared interfaces
Latest version: 0.1.3

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

<p align="right">
Core types, schema definitions, and <code>defineConfig</code> for <a href="https://semilayer.com">SemiLayer</a> — the intelligence layer for any database. Shared by the CLI, client, codegen, and every first-party package.
</p>

---

## Install

```bash
pnpm add @semilayer/core
```

## Usage

```ts
import { defineConfig } from '@semilayer/core'

export default defineConfig({
  project: 'my-app',
  sources: {
    main: { bridge: '@semilayer/bridge-postgres', url: process.env.DATABASE_URL! },
  },
  lenses: {
    articles: {
      source: 'main',
      table: 'articles',
      facets: { search: true, similar: true },
    },
  },
})
```

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

## License

MIT