Permzplus: A 2KB Zero-Dependency Auth Engine for High-Performance ABAC
These articles are AI-generated summaries. Please check the original sources for full details.
I’m 12 and I built a 2KB 0 dependency alternative to CASL!
Developer CreeperGuy released permzplus, a lightweight authentication engine designed to replace CASL. The library maintains a 100/100 Socket quality score while weighing only 2KB.
Why This Matters
Traditional authorization libraries like CASL can introduce significant bundle bloat, often exceeding 100KB, and rely on complex recursive graph-walking for role inheritance. Permzplus addresses this by implementing a one-pass linear scan that converts complex inheritance into O(1) cached lookups, prioritizing performance and supply chain security through zero dependencies.
Key Insights
- Permzplus achieves a 100/100 Socket quality score for supply chain security in 2026.
- The engine utilizes a one-pass linear scan logic instead of traditional recursive graph-walking.
- Complex role-inheritance is transformed into O(1) cached lookups for high-performance authorization.
- The library eliminates 100KB of bloat common in alternative ABAC libraries.
- Permzplus is built with TypeScript and maintains zero external dependencies.
Practical Applications
- Use case: High-performance ABAC implementation requiring O(1) lookup speeds and minimal bundle impact.
- Pitfall: Relying on recursive graph-walking for role resolution which scales poorly compared to linear scans.
References:
Continue reading
Next article
MiniStack vs Floci vs LocalStack: 2026 Local Cloud Performance Benchmark
Related Content
Four OAuth2 Bugs Blocking Google Login: CRLF Characters, Wrong Spring Classes, and Cookie Confusion
Developer Dogukan Karademir details four OAuth2 bugs blocking Google login integration, including hidden CRLF characters and wrong Spring base classes.
12MB Rust CLI Refuses to Lie: KiloCheck Returns 0.0 Confidence on Suspicious Recruiter Pitch, Exposes Social Engineering Signal
A 12MB Rust CLI tool returns 'I don't know' with 0.0 confidence on a recruiter pitch, exposing social engineering over malware.
Enterprise Graph Engine Boosts Multi-Hop Search Accuracy to 89.2% with Cognee and LangGraph
New architecture using Cognee, LangGraph, and Groq achieves 89.2% multi-hop accuracy, reducing hallucinations to under 1.5%.