@semilayer/core 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +9 -9
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ <p align="right">
2
+ <img src="https://raw.githubusercontent.com/semilayer/semilayer/main/assets/logo.png" alt="SemiLayer" width="120" />
3
+ <br />
4
+ <strong>@semilayer/core</strong>
5
+ </p>
6
+
7
+ <p align="right">
8
+ 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.
9
+ </p>
10
+
11
+ ---
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pnpm add @semilayer/core
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```ts
22
+ import { defineConfig } from '@semilayer/core'
23
+
24
+ export default defineConfig({
25
+ project: 'my-app',
26
+ sources: {
27
+ main: { bridge: '@semilayer/bridge-postgres', url: process.env.DATABASE_URL! },
28
+ },
29
+ lenses: {
30
+ articles: {
31
+ source: 'main',
32
+ table: 'articles',
33
+ facets: { search: true, similar: true },
34
+ },
35
+ },
36
+ })
37
+ ```
38
+
39
+ See [semilayer.dev](https://semilayer.dev) for the full docs.
40
+
41
+ ## License
42
+
43
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semilayer/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "SemiLayer core — defineConfig, schema types, shared interfaces",
5
5
  "license": "MIT",
6
6
  "homepage": "https://semilayer.dev",
@@ -20,18 +20,18 @@
20
20
  "files": [
21
21
  "dist"
22
22
  ],
23
- "scripts": {
24
- "build": "tsup",
25
- "dev": "tsup --watch",
26
- "lint": "eslint src/",
27
- "typecheck": "tsc --noEmit",
28
- "test": "vitest run"
29
- },
30
23
  "dependencies": {},
31
24
  "devDependencies": {
32
25
  "@types/node": "^22.0.0",
33
26
  "tsup": "^8.0.0",
34
27
  "typescript": "^5.7.0",
35
28
  "vitest": "^3.0.0"
29
+ },
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "dev": "tsup --watch",
33
+ "lint": "eslint src/",
34
+ "typecheck": "tsc --noEmit",
35
+ "test": "vitest run"
36
36
  }
37
- }
37
+ }