# brianmario/yajl-ruby

A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)

Repository: https://github.com/brianmario/yajl-ruby
Canonical: https://ross.abutalabs.com/products/yajl-ruby
Homepage: http://rdoc.info/projects/brianmario/yajl-ruby
Language: C
License: MIT
License Family: permissive
Last push: 2025-12-27T20:08:46+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 59, release rhythm 35, longevity 100
- inputs: {"age_days": 6344, "days_push": 249, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1490, forks 179 (observed 2026-08-28T04:04:52.384385+00:00)

## What it is
A Ruby gem providing C bindings to the YAJL library for streaming JSON parsing and encoding. It supports parsing directly from IO streams (files, sockets, compressed streams) and offers a drop-in replacement API for the standard JSON gem with significantly better performance.

## Use cases
- parse large JSON files without loading them fully into memory
- stream-parse multiple JSON objects from a socket or HTTP response
- replace the Ruby JSON gem with a faster drop-in alternative
- parse gzip or bzip2 compressed JSON streams
- incrementally feed JSON chunks to a parser in an evented server
- encode Ruby objects to JSON faster than JSON.generate

## When to avoid
- you only need simple, occasional JSON parsing where the stdlib JSON gem suffices
- you need a pure-Ruby solution without native C extensions
- your project no longer uses Ruby

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, parser, http-client
- domain: developer-tools, apis
- platform: ruby, cross-platform
- tags: json, streaming, c-extension, ruby-gem, performance, data-engineering

## Member repositories
- brianmario/yajl-ruby (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.384385+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:36.437614+00:00, confidence not recorded.
  - readme: https://github.com/brianmario/yajl-ruby (fetched 2026-08-28T04:04:52.384385+00:00, sha edd85f62a3d2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
