<img alt="Codely logo" src="https://codely.com/logo/codely_logo.svg">
<a href="https://github.com/CodelyTV"><img src="https://img.shields.io/badge/Codely-OS-green.svg?style=flat-square" alt="Codely Open Source projects"/></a>
<a href="https://pro.codely.com"><img src="https://img.shields.io/badge/Codely-Pro-black.svg?style=flat-square" alt="Codely Pro courses"/></a>
To install the base criteria dependency, run the following command:
npm i @codelytv/criteria
Then, install the preferred criteria transformer. You can transform in two directions:
Create a Criteria from: - Next.js Request - URL
Convert a Criteria to: - Elasticsearch (and esql) - MySql
You can also create your custom transformer.
To facilitate the testing of the criteria, you can use the provided object mothers:
npm i @codelytv/criteria-test-mother --save-dev
We have another implementation in PHP with converters for Laravel and Symfony. 🙌
pnpm changeset to add the changes to the changelog.If you want to merge a code without a changeset (for example, a Readme or test modification) you should execute
pnpm changeset --empty in your Pull Request before merging it.
$ claude mcp add typescript-criteria \
-- python -m otcore.mcp_server <graph>