petrukha-ivan/mlx-swift-structured
Structured output generation in Swift
This library helps Swift developers reliably get structured data, like JSON or specific text formats, from large language models (LLMs). It takes your desired data structure (defined by JSON Schema, regex, or EBNF) and an LLM's output, then ensures the generated text strictly adheres to that structure. Developers building Swift applications that use LLMs to extract or generate formatted information will find this useful.
Use this if you are a Swift developer working with LLMs and need their text output to strictly conform to a specific format, such as valid JSON, a predefined list, or a regex pattern.
Not ideal if you are not a Swift developer or if your application does not require strict formatting for LLM outputs.
Stars
65
Forks
13
Language
Swift
License
Apache-2.0
Category
Last pushed
Feb 13, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/petrukha-ivan/mlx-swift-structured"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
jundot/omlx
LLM inference server with continuous batching & SSD caching for Apple Silicon — managed from the...
josStorer/RWKV-Runner
A RWKV management and startup tool, full automation, only 8MB. And provides an interface...
waybarrios/vllm-mlx
OpenAI and Anthropic compatible server for Apple Silicon. Run LLMs and vision-language models...
jordanhubbard/nanolang
A tiny experimental language designed to be targeted by coding LLMs
akivasolutions/tightwad
Pool your CUDA + ROCm GPUs into one OpenAI-compatible API. Speculative decoding proxy gives you...