deszhou

deszhou / jcs

Public

Go implementation of RFC 8785 JSON Canonicalization Scheme (JCS).

12
0
100% credibility
Found Mar 31, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

A Go library that transforms JSON into a canonical form per RFC 8785 for consistent cryptographic hashing and signing.

How It Works

1
šŸ” Find the JSON fixer

You discover a simple tool that turns any JSON document into a perfectly consistent format, ideal for secure signing.

2
🧰 Add it to your toolkit

You bring this handy helper into your project with ease.

3
šŸ“„ Gather your JSON

You prepare the JSON data from your work that might look different each time.

4
✨ Make it standard

You run the tool on your JSON, and it magically sorts keys, fixes numbers, and cleans everything up into one reliable version.

5
šŸ” Sign securely

With the neat JSON ready, you create hashes or signatures that always match perfectly.

āœ… Everything matches

Your documents are now standardized and secure, giving you peace of mind every time.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is jcs?

jcs is a Go library that canonicalizes JSON per RFC 8785, turning variable serializations—think unsorted keys, wonky spacing, or ES6 number formats—into a stable byte form perfect for cryptographic hashing or signing. Feed it raw UTF-8 JSON bytes via Transform, get back a deterministic output with sorted UTF-16 keys, normalized floats, and tight escapes. Requires Go 1.24+, installs with go get, and includes NumberToJSON for standalone float formatting.

Why is it gaining traction?

It beats alternatives like cyberphone and gowebpki in benchmarks—24% faster on nested objects, 39% on Unicode, with 29% fewer allocations—making it snappier for high-throughput signing. As a v1.0 stable rfc implementation, it promises no breaking changes, solid error messages for I-JSON violations, and idempotent output. Devs searching graphrag implementation github or tcp implementation github will appreciate this focused, performant take on JSON stability.

Who should use this?

Go backend engineers building JWS/JWT services, blockchain indexers, or secure APIs where JSON payloads demand repeatable hashes. Ideal for teams implementing rfc-compliant signing in microservices or handling signed configs in distributed systems. Skip if you're in Python/Rust hunting honeypot implementation github or llama implementation github equivalents.

Verdict

Grab it for perf-critical JSON canonicalization—docs, tests, and benchmarks are pro-level despite 12 stars and 1.0% credibility score. Still early; watch for adoption before production lock-in.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.