orjson

A fast, correct, Rust-backed JSON library for Python with native dataclass, datetime, and numpy support

Library
PyPI
v3.12.0
8,234 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
68 /100 Good
Development Activity 56
Maintenance 64
Community 52
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
81 /100 Excellent
Architecture 85
Code Quality 82
Innovation 80
Learning Curve 78

orjson is a fast, correct JSON library for Python, implemented in Rust and exposed via PyO3 bindings. It benchmarks as the fastest Python JSON library and serializes dataclass, datetime, numpy, and UUID instances natively, without needing a custom default handler for the common cases most projects hit.

orjson.dumps() is roughly 10x faster than the standard library’s json module and orjson.loads() roughly 2x faster, while staying strictly compliant with UTF-8 and RFC 8259. It intentionally does not provide file I/O or line-delimited JSON helpers, keeping its scope to serialization/deserialization only, and treats adding an implicit serialization for a new type without an opt-in flag as a breaking change under its semver policy.

What You Get

  • A dumps/loads API that is a near drop-in replacement for the standard library json module
  • Native serialization of dataclasses, datetime/date/time objects, numpy arrays, and UUIDs without a custom default function
  • Strict RFC 8259 and UTF-8 compliant deserialization, more correct than json or most third-party alternatives
  • Prebuilt wheels for amd64/arm64/ppc64le/s390x across Linux, macOS, and Windows, with AVX-512 runtime acceleration when available
  • A stable semver policy where any new implicit type serialization is treated as a breaking change

Common Use Cases

  • Speeding up API response serialization in high-throughput Python web services
  • Serializing dataclass-based domain models directly to JSON without writing custom encoders
  • Working with numpy-heavy data pipelines that need fast JSON I/O for arrays
  • Replacing json.dumps/json.loads calls in performance-sensitive code paths with minimal migration effort

Under The Hood

Architecture - orjson is a thin Python-facing API (pysrc/) over a Rust core (src/) split into serialize and deserialize modules plus ffi glue and a typeref.rs module that caches references to Python type objects (dataclass, datetime, UUID, numpy) to avoid repeated attribute lookups on the hot path; PyO3 handles the CPython/Rust boundary. Tech Stack - Rust (Cargo.toml/Cargo.lock pin the toolchain and dependencies) built via build.rs into a CPython extension module, published as prebuilt wheels for CPython 3.10-3.15 across six CPU architectures and three OSes. Code Quality - the test/ directory contains 34 Python test modules covering dataclasses, datetime, numpy, UUID, fragments, and option flags, plus a bench benchmark suite comparing against json and other libraries; the project has no public issue tracker (by design, to reduce noise) which means quality is enforced primarily through the maintainer’s own test/benchmark discipline rather than community triage. API Design - the dumps/loads surface intentionally mirrors the standard library’s json module for near drop-in migration, while option flags (rather than kwargs sprawl) control serialization behavior like non-str keys, UTC handling, and numpy array support, keeping the public API small and stable under its semver-as-breaking-change policy.

Used by 19 apps in this directory

TypeScript
56%
Other

agenta

AI Development · Developer Tools · Devops

4,788

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript 56%
Python 39%
Updated 5 days ago
Python
100%
Apache 2.0

Agno

AI Development · Automation · Devops

42,358

Build, run, and manage agent platforms with a full production stack — SDK, runtime, and control plane included.

View details
93
Repo Health
87
Technical
66
Dependency
Built with
Python 100%
Updated 4 days ago
Python
66%
Other

AutoGPT

AI Assistants · Automation · Productivity

187,596

Build, deploy, and run autonomous AI agents that automate complex multi-step workflows using a visual block-based graph editor.

View details
93
Repo Health
78
Technical
66
Dependency
Built with
Python 66%
TypeScript 33%
Updated 4 days ago
Python
79%
Apache 2.0

changedetection.io

Monitoring

34,605

Self-hosted website change detection with AI-powered smart alerts, browser automation, price tracking, and 85+ notification channels.

View details
91
Repo Health
80
Technical
68
Dependency
Built with
Python 79%
Updated 1 weeks ago
Python
70%
Apache 2.0

GPT Researcher

AI Assistants · Productivity

29,650

The pioneering open-source autonomous AI agent that conducts deep, multi-source research and produces citation-backed reports exceeding 2,000 words — faster and more reliably than any human researcher.

View details
91
Repo Health
91
Technical
63
Dependency
Built with
Python 70%
TypeScript 18%
Updated 6 days ago
Python
82%
Apache 2.0

headroom

AI Development · Developer Tools

73,966

Compress everything your AI agent reads — tool outputs, logs, RAG chunks, and files — before it reaches the LLM, achieving 60–95% fewer tokens with the same answers.

View details
85
Repo Health
86
Technical
69
Dependency
Built with
Python 82%
Rust 12%
Updated 5 days ago
TypeScript
71%
Other

highlight.io

Analytics · Developer Tools · Monitoring

9,378

Open-source full-stack monitoring that unifies session replay, error tracking, logging, and distributed tracing so you can stop context-switching between tools.

View details
67
Repo Health
78
Technical
65
Dependency
Built with
TypeScript 71%
Go 16%
Updated 1 months ago
TypeScript
84%
Apache 2.0

ktx

AI Development · Analytics · Data Engineering

1,603

ktx builds a self-improving context layer over your data warehouse so AI agents like Claude Code and Codex query it with approved metric definitions instead of reinventing SQL logic from scratch.

View details
66
Repo Health
85
Technical
72
Dependency
Built with
TypeScript 84%
Updated 3 weeks ago
Python
69%
MIT

Langflow

AI Agents · AI Development

155,319

Build, test, and deploy AI agents and RAG workflows visually with native API and MCP server export.

View details
90
Repo Health
85
Technical
65
Dependency
Built with
Python 69%
TypeScript 22%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers