KelpyCode/ojjson

ojjson is a library designed to facilitate JSON interactions with Ollama, a large language api (LLM). It leverages the power of Zod for schema validation, ensuring that the JSON input and output conform to specified structures.

36
/ 100
Emerging

This is a library for developers who use large language models (LLMs) like Ollama or OpenAI and need to ensure their data inputs and outputs are structured correctly as JSON. You provide raw text or JSON data to the LLM, and this tool helps guarantee that the LLM's response is valid, structured JSON that matches a predefined schema. It's for software developers building applications that integrate with LLMs and rely on strict data formats.

No commits in the last 6 months. Available on npm.

Use this if you are a developer building an application that interacts with large language models and need to reliably receive structured JSON outputs, even when the LLM might initially provide malformed data.

Not ideal if you are not a software developer, or if you don't require strict JSON schema validation and automatic error correction for your LLM interactions.

LLM-development API-integration data-validation backend-development TypeScript-development
Stale 6m
Maintenance 0 / 25
Adoption 5 / 25
Maturity 25 / 25
Community 6 / 25

How are scores calculated?

Stars

12

Forks

1

Language

TypeScript

License

MIT

Last pushed

Nov 07, 2024

Commits (30d)

0

Dependencies

4

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/KelpyCode/ojjson"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.