Skip to content

crudjt/crudjt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shows a dark logo Fast, file-backed, scalable JSON token engine

CRUDJT is a B-tree–backed persistent token engine for stateful user sessions

It provides:

  • predictable disk usage
  • low latency across multiple processes
  • no external database requirement

Getting Started

Install CRUDJT in your language of choice:

  • Ruby: gem install crudjt
  • Python: pip install crudjt
  • Java: Use JARs from Maven Central Repository
  • JavaScript: npm install crudjt
  • Elixir: {:crudjt, "~> 1.0.0"}
  • Erlang: See repository for usage and integration instructions
  • Go: go get github.com/crudjt/crudjt-go@latest
  • PHP: composer require crudjt/crudjt-php

Performance one of SDK

40 000 requests up to 256 bytes — median over 10 runs
macOS 15.7.4, ARM64 (Apple M1)
JavaScript 20.20.0
In-process benchmark; Redis accessed via localhost TCP

Function CRUDJT (JavaScript) JWT (JavaScript) redis-session-store (Ruby, Rails 8.0.2.1)
C 0.372 second Shows a favicon black on white color 16.537 seconds 2.909 seconds
R 0.010 second Shows a favicon black on white color 16.678 seconds 4.436 seconds
U 0.684 second Shows a favicon black on white color X 2.124 seconds
D 0.200 second Shows a favicon black on white color X 3.984 seconds

Full benchmark results

Disk footprint

40 000 tokens of 256 bytes each — median over 10 creates
darwin23, APFS

48 MB

Full disk footprint results

Scaling & Deployment

CRUDJT ships with an embedded gRPC transport layer, enabling fast inter-process communication without external brokers

The server is designed for vertical scaling with predictable, file-backed storage and stable latency under load

➡️ Run a production-ready server in seconds using Docker:
Docker Server

About

File-backed JSON token engine for stateful authentication, authorization. No external database. Multi-process ready. Predictable B-tree disk usage

Topics

Resources

License

Stars

Watchers

Forks

Contributors