open-index/open-npm huggingface dataset:
npm package: @surreal-tools/orm
Description: Surreal ORM assists you in building type safe apps with SurrealDB, without the need for a backend (although, you could have one), it is platform and framework agnostic meaning it can run anywhere: React, React Native, Svelte, Tauri, Tauri Mobile, Cloudfla
Latest version: 0.1.0-alpha.8

# Surreal ORM

Surreal ORM assists you in building type safe apps with SurrealDB, without the need for a backend (although, you could have one), it is platform and framework agnostic meaning it can run anywhere: React, React Native, Svelte, Tauri, Tauri Mobile, Cloudflare Workers, Bun and more.

*This project is in alpha and WIP, it targets the Surreal nightly and therefore extends the relevant feature set. While we are in ALPHA the API is likely to change frequently - although we try our best not to - we suggest reading the CHANGELOGs and examples for the best understanding. The primary target runtimes are the browser, Bun and Cloudflare workers.*

### Design goal

1) Write your models and logic in Surreal ORM, ideally in its own package: `@org/models`
2) Write your frontend / backend, import `@org/models` and start using Surreal as a web database

## Features
- [x] Designed with type safety (w/ TypeScript) and performance in mind, with a very slim runtime (~10 KB)
- [x] Modeling 
	- 🟢 Permissions
	- 🟢 Assertions
	- 🟢 Events
	- 🟢 Overrides (`name`, `flexible` etc.)
	- 🟢 Indexes
- [x] `Query`, `Create`, `Update` and `Delete` with fully typed Models
- [x] `RELATE` between Models with type safety
- [ ] `sql` function as an escape hatch for edge cases, with optional type safety
- [x] Build advanced queries using `SELECT` with type guarantees
- [x] Schema generation with CLI and CI / CD pipelines
- [x] Works on the Browser, Bun, Cloudflare Workers, Node.js
- [x] 1:1 Surreal types - `Primitives` (string, int etc.) as well as `GeoJSON` (point, polygon, collection etc.)
- [x] Exposed operators and functions such as `Time`, `String`, `Array` etc. for utility functions
- [x] Scopes

### WIP
- [ ] Migrations - Auto generated and deterministic SQL with seeding
- [ ] Live query support
- [ ] Aggregrate analytics views
- [ ] Futures
- [ ] Test suite (for Bun)
- [ ] Plugins - Bring your own utility macros / functions

### Roadmap
- [ ] WASM/SWC migration for Runtime with additional optimizations
- [ ] `sql` Syntax hightlighting with type safety
- [ ] VSCode extension
- [ ] Permission devtools
npm package: @surrealdb/codemirror
Description: SurrealQL language support for CodeMirror
Author: SurrealDB
Latest version: 1.0.5

<br>

<p align="center">
    <img width=120 src="https://raw.githubusercontent.com/surrealdb/icons/main/surreal.svg" />
</p>

<h3 align="center">SurrealQL Support for CodeMirror</h3>

<br>

<p align="center">
    <a href="https://github.com/surrealdb/surrealql-codemirror"><img src="https://img.shields.io/badge/status-beta-ff00bb.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.npmjs.com/package/@surrealdb/codemirror"><img src="https://img.shields.io/npm/v/%40surrealdb%2Fcodemirror?style=flat-square"></a>
</p>

<p align="center">
    <a href="https://surrealdb.com/discord"><img src="https://img.shields.io/discord/902568124350599239?label=discord&style=flat-square&color=5a66f6"></a>
    &nbsp;
    <a href="https://twitter.com/surrealdb"><img src="https://img.shields.io/badge/twitter-follow_us-1d9bf0.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.linkedin.com/company/surrealdb/"><img src="https://img.shields.io/badge/linkedin-connect_with_us-0a66c2.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.youtube.com/channel/UCjf2teVEuYVvvVC-gFZNq6w"><img src="https://img.shields.io/badge/youtube-subscribe-fc1c1c.svg?style=flat-square"></a>
</p>

# @surrealdb/codemirror

This library provides full support for the SurrealQL language within your CodeMirror editors.

Some features include:
- Intelligent SurrealQL highlighting
- Folding support for blocks, objects, and arrays
- Automatic indentation support
- Support for comment toggling
- Embedded JavaScript highlighting

## How to install

Install it with:

```sh
# using npm
npm i @surrealdb/codemirror
# or using pnpm
pnpm i @surrealdb/codemirror
# or using yarn
yarn add @surrealdb/codemirror
```

Next, just import it with:

```ts
const { surrealql } = require("@surrealdb/codemirror");
```

or when you use modules:

```ts
import { surrealql } from "@surrealdb/codemirror";
```

## Example usage

```ts
import { surrealql } from "@surrealdb/codemirror";

const state = EditorState.create({
    doc: "SELECT * FROM table",
    extensions: [
        surrealql()
    ]
});

const editor = new EditorView({
    parent: document.getElementById("editor"),
    state: state,
});
```
npm package: @surrealdb/lezer
Description: SurrealQL grammar for Lezer
Author: SurrealDB
Latest version: 1.0.5

<br>

<p align="center">
    <img width=120 src="https://raw.githubusercontent.com/surrealdb/icons/main/surreal.svg" />
</p>

<h3 align="center">SurrealQL Lezer grammar</h3>

<br>

<p align="center">
    <a href="https://github.com/surrealdb/surrealql-codemirror"><img src="https://img.shields.io/badge/status-beta-ff00bb.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.npmjs.com/package/@surrealdb/lezer"><img src="https://img.shields.io/npm/v/%40surrealdb%2Flezer?style=flat-square"></a>
</p>

<p align="center">
    <a href="https://surrealdb.com/discord"><img src="https://img.shields.io/discord/902568124350599239?label=discord&style=flat-square&color=5a66f6"></a>
    &nbsp;
    <a href="https://twitter.com/surrealdb"><img src="https://img.shields.io/badge/twitter-follow_us-1d9bf0.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.linkedin.com/company/surrealdb/"><img src="https://img.shields.io/badge/linkedin-connect_with_us-0a66c2.svg?style=flat-square"></a>
    &nbsp;
    <a href="https://www.youtube.com/channel/UCjf2teVEuYVvvVC-gFZNq6w"><img src="https://img.shields.io/badge/youtube-subscribe-fc1c1c.svg?style=flat-square"></a>
</p>

# @surrealdb/lezer

This package contains the low level [Lezer](https://lezer.codemirror.net/) grammar used to perform SurrealQL syntax highlighting.

We recommend using `@surrealdb/codemirror` as it extends the grammar with additional CodeMirror supported functionality.