# Panko > Panko is a high-performance JSON serializer for ActiveRecord and Ruby objects. It compiles a specialized serializer, in pure Ruby, once per serializer class (there is no native extension), builds JSON incrementally with Oj::StringWriter, and specializes each serializer per ActiveRecord class, so per-record serialization is straight-line code with minimal allocations. The public API is small and stable: subclass `Panko::Serializer` and declare `attributes`, `has_one` / `has_many`, and method attributes; serialize a single object with `#serialize` (returns a Hash) or `#serialize_to_json` (returns a JSON String), and a collection with `Panko::ArraySerializer`. ## Docs - [Introduction](https://panko.dev/): What Panko is and the three choices behind its speed. - [Getting Started](https://panko.dev/getting-started): Install Panko and write your first serializer, including collection and Rails-controller usage. - [Performance](https://panko.dev/performance): Benchmark methodology plus Panko's throughput and allocation numbers across serializer shapes. - [Upgrading from 0.8](https://panko.dev/upgrading): Requirements (Ruby 3.4+, ActiveSupport 7.2+), the output differences from the 0.8 C extension, and the new optional features. - [Design Choices](https://panko.dev/design-choices): How Panko is fast: code generation, per-record-class specialization, incremental JSON with Oj::StringWriter, and ahead-of-time metadata. ## Reference - [Serializers](https://panko.dev/serializers): The `Panko::Serializer` / `Panko::ArraySerializer` API: serialize methods, constructor options (`context`, `scope`, `only`, `except`), and `SKIP`. - [Attributes](https://panko.dev/attributes): Field attributes, method attributes (with `object` / `context` / `scope`), and `aliases`. - [Associations](https://panko.dev/associations): `has_one` and `has_many`, output-key aliasing, and serializer inference. - [Filters](https://panko.dev/filters): `only` / `except`, nested filters, filters declared on an association, and `filters_for`. - [Response](https://panko.dev/response-bag): `Panko::Response` and `Panko::JsonValue` for composing serialized output into a larger JSON response. - [Configuration](https://panko.dev/configuration): `Panko.configure` and `Panko::Config` (`auto_specialization.enabled`, `auto_specialization.capacity`, `writer_pool_max_bytes`, `key_transform`), and `Panko.compile_all` with the `models` hint for compiling serializers at boot, before workers fork. - [Descriptor](https://panko.dev/descriptor): `Panko::Descriptor`, the read-only introspection view of a serializer's shape (attributes, method attributes, associations, nested descriptors), honoring filters; for association preloaders and other tooling. ## Optional - [GitHub repository](https://github.com/yosiat/panko_serializer): Source, issues, and release notes.