{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Provides a high-performance JSON renderer and parser for Django REST Framework using orjson, a Rust-backed library, while maintaining pretty-printed output for the browsable API.","skillfed_tags":["performance-optimization","json-serialization","rest-api"],"use_cases":["Replace DRF's JSON renderer in a high-traffic API to reduce serialization overhead and latency.","Maintain developer experience with the browsable API while gaining orjson's performance for production JSON clients.","Serialize NumPy arrays or dataclasses in API responses by configuring orjson options in settings.","Parse incoming JSON payloads faster using ORJSONParser as your default parser class.","Customize serialization behavior for complex domain objects by overriding the default function in view context."],"what_it_does":"drf_orjson_renderer replaces Django REST Framework's default JSON renderer with orjson, a Rust-backed serialization library designed for speed and correctness. It acts as a drop-in renderer and parser that you configure in your Django settings to handle JSON serialization across your API endpoints.\n\nThe package bridges the performance benefits of orjson with DRF's browsable API: when clients request `application/json`, responses serialize at orjson's speed; when they request `text/html` (browsable API), the renderer automatically pretty-prints output for readability. It includes a default serialization handler for common Django objects and allows you to override it with custom logic for domain-specific types. It also provides a backwards-compatible encoder for NumPy types.","worth_installing":"Yes, if you use Django REST Framework and want faster JSON serialization with minimal setup. The package is stable (MIT licensed, no known vulnerabilities), has low install friction, and requires only standard DRF configuration. The aging maintenance status is not a blocker\u2014it's a mature, focused tool with a narrow scope. Install it if JSON performance is a concern; skip it if your API traffic is low or you have no performance issues with the default renderer."},"id":"drf-orjson-renderer","links":{"html":"https://skillfed.io/packages/drf-orjson-renderer","md":"https://skillfed.io/packages/drf-orjson-renderer.md","pypi":"https://pypi.org/project/drf-orjson-renderer/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-12-17","license_spdx":null,"license_treatment":"permissive","name":"drf-orjson-renderer","python_support":"supports_current","summary":"Django RestFramework JSON Renderer Backed by orjson"},"popularity":{"monthly_downloads":398093,"position":6955,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.8.0"}
