Skip to content
프로젝트

소개

Clojure용 고속 직렬화 라이브러리

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
+1

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Taoensso open source
API | Wiki | Support | Latest release: v3.10.0 (2026-12-02)

Clj tests Graal tests

Nippy

Fast serialization library for Clojure

Clojure's rich data types are awesome. And its reader allows you to take your data just about anywhere. But the reader can be painfully slow when you've got a lot of data to crunch (like when you're serializing to a database).

Nippy is a mature, high-performance drop-in alternative to the reader.

It is used at scale by Carmine, Faraday, PigPen, Onyx, XTDB, Datalevin, and others.

Why Nippy?

  • Small, simple pure-Clojure library
  • Terrific performance: the best for Clojure that I'm aware of
  • Comprehensive support for all standard data types
  • Easily extendable to custom data types
  • Robust test suite incl. coverage of every supported type
  • Mature and widely used in production for 12+ years
  • Optional auto fallback to Java Serializable for safe types
  • Optional auto fallback to Clojure Reader (including tagged literals)
  • Optional smart compression with LZ4 or Zstandard
  • Optional encryption with AES128
  • Tools for easy + robust integration into 3rd-party libraries, etc.
  • Powerful thaw transducer for flexible data inspection and transformation

Quick example

Nippy's super easy to use:

(require '[taoensso.nippy :as nippy])

;; Freeze any Clojure value
(nippy/freeze <my-value>) ; => Serialized byte[]

;; Thaw the byte[] to get back the original value:
(nippy/thaw (nippy/freeze <my-value>)) ; => <my-value>

See the wiki for more.

Operational considerations

Data longevity

Nippy is widely used to store long-lived data and promises (as always) that data serialized today should be readable by all future versions of Nippy.

But please note that the converse is not generally true:

  • Nippy vX should be able to read all data from Nippy vY<=X (backwards compatibility)
  • Nippy vX may/not be able to read all data from Nippy vY>X (forwards compatibility)

Untrusted data

Please always avoid thawing untrusted data if at all possible!

And while Nippy includes some protections against certain malicious inputs (e.g. the Serializable allowlist), reading untrusted data means potentially reading malicious data - and that's just inherently very difficult to do with complete safety.

Rolling updates and rollback

From time to time, Nippy may introduce:

  • Support for serializing new types
  • Optimizations to the serialization of pre-existing types

To help better support rolling deployments and rollback, Nippy will always introduce such changes over two version releases:

  • Release 1: to add read support for the new types
  • Release 2: to add write support for the new types

So if you use rolling deployments please ensure you update step by step (e.g. v3.5 → v3.6 → v3.7) so that read support is fully deployed before the corresponding writes might happen.

Stability of byte output

It has never been an objective of Nippy to offer predictable byte output, and I'd generally recommend against depending on specific byte output.

However, I know that a small minority of users do have specialized needs in this area.

So starting with Nippy v3.4, Nippy's release notes will always clearly indicate if any changes to byte output are expected.

Performance

Nippy is pretty fast. Latest benchmark results:

benchmarks-png

PRs welcome to include other alternatives in the bench suite!

Documentation

  • Wiki (getting started, usage, etc.)
  • API reference via cljdoc

Funding

You can help support continued work on this project and others, thank you!! 🙏

License

Copyright © 2012-2026 Peter Taoussanis.
Licensed under EPL 1.0 (same as Clojure).

관련 프로젝트 살펴보기

불러오는 중…