# @mateonunez/lyra-schema-resolver

> Create your Lyra's schema following the official specification

Latest version **0.1.3** (published 2023-01-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @mateonunez/lyra-schema-resolver
pnpm add @mateonunez/lyra-schema-resolver
yarn add @mateonunez/lyra-schema-resolver
bun add @mateonunez/lyra-schema-resolver
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-01-14 |
| First published | 2022-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 34.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Mateo Nunez |
| Maintainers | mateonunez |
| Keywords | lyra, schema-resolver, full-text search, supercharged, database |

## Links

- npm: https://www.npmjs.com/package/@mateonunez/lyra-schema-resolver
- Repository: https://github.com/mateonunez/lyra-schema-resolver
- Homepage: https://github.com/mateonunez/lyra-schema-resolver#readme
- Issues: https://github.com/mateonunez/lyra-schema-resolver/issues
- npm.io page: https://npm.io/package/@mateonunez/lyra-schema-resolver

## Dependencies (1)

- [@lyrasearch/lyra](https://npm.io/package/@lyrasearch/lyra.md) ^0.4.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.1.3 (latest) — 2023-01-14
- 0.1.2 — 2022-12-08
- 0.1.1 — 2022-11-25
- 0.1.0 — 2022-11-15
- 0.0.4 — 2022-11-05
- 0.0.3 — 2022-10-30
- 0.0.2 — 2022-10-17
- 0.0.1 — 2022-10-16

## README

# 🪄 Lyra schema resolver

Create your [Lyra](https://github.com/lyrasearch/lyra) schema following the official specification.

[![Tests](https://github.com/mateonunez/lyra-schema-resolver/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mateonunez/lyra-schema-resolver/actions/workflows/ci.yml)

## Installation

You can install the package using `npm`, `yarn` or `pnpm`:

```sh
npm i @mateonunez/lyra-schema-resolver
```
```sh
yarn add @mateonunez/lyra-schema-resolver
```
```sh
pnpm add @mateonunez/lyra-schema-resolver
```

## Usage

```js
import { create, insert, search } from '@lyrasearch/lyra';
import resolveSchema from '.';
import * as fs from 'fs';

// You can parse data from any source, but we'll use a local file for this example
const data = JSON.parse(fs.readFileSync('./package.json').toString());
const schema = resolveSchema(data);
const db = create({ schema })

insert(db, data);

const results = search(db, {
  term: 'lyra'
});

console.log(results)
```

# License

[MIT](/LICENSE)

---
_Source: https://npm.io/package/@mateonunez/lyra-schema-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
