@semilayer/core
v0.1.31
Published
SemiLayer core — defineConfig, schema types, shared interfaces
Readme
Install
pnpm add @semilayer/coreUsage
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',
fields: {
id: { type: 'number', primaryKey: true },
title: { type: 'text', searchable: true },
body: { type: 'text', searchable: true },
},
grants: { search: 'public', similar: 'public' },
},
},
})See semilayer.dev for the full docs.
License
MIT
