orjson

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

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

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
69/100Good
Development Activity60
Maintenance64
Community52
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
81/100Excellent
Architecture85
Code Quality82
Innovation80
Learning Curve78

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 18 apps in this directory

TypeScript
59%
Other

agenta

Developer Tools · Devops · AI Development

4,489

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
TypeScript59%
Python39%
Updated today
Python
100%
Apache 2.0

Agno

Devops · AI Development · Automation

41,774

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

View details
93
Repo Health
87
Technical
67
Dependency
Built with
Python100%
Updated today
Python
68%
Other

AutoGPT

Automation · Productivity · AI Assistants

186,687

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
67
Dependency
Built with
Python68%
TypeScript31%
Updated today
Python
79%
Apache 2.0

changedetection.io

Monitoring

33,241

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

View details
90
Repo Health
80
Technical
69
Dependency
Built with
Python79%
Updated 3 days ago
Python
63%
Apache 2.0

GPT Researcher

Productivity · AI Assistants

29,039

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
88
Repo Health
91
Technical
64
Dependency
Built with
Python63%
TypeScript23%
Updated 1 months ago
Python
80%
Apache 2.0

headroom

AI Development · Developer Tools

66,835

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
84
Repo Health
86
Technical
73
Dependency
Built with
Python80%
Rust14%
Updated today
TypeScript
71%
Other

highlight.io

Developer Tools · Analytics · Monitoring

9,367

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
69
Repo Health
78
Technical
66
Dependency
Built with
TypeScript71%
Go16%
Updated yesterday
TypeScript
84%
Apache 2.0

ktx

Data Engineering · Analytics · AI Development

1,547

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
73
Repo Health
85
Technical
73
Dependency
Built with
TypeScript84%
Updated 1 months ago
Python
68%
MIT

Langflow

AI Agents · AI Development

153,450

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

View details
90
Repo Health
85
Technical
66
Dependency
Built with
Python68%
TypeScript22%
Updated today

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

Search