Mobinova logo
← Open Source

Open-source library

PWT (Protobuf Web Token)

PWT (Protobuf Web Token) stores JWT-style claims in Protocol Buffers while keeping the familiar jwt.Claims API. It uses the signing algorithms from github.com/golang-jwt/jwt/v5, yields smaller tokens, and parses faster thanks to protobuf serialization. Custom data lives in a protobuf Struct on TokenBody.Payload.

Repository stats

Stars 0
Forks 0
Open issues 0
Last updated Jan 20, 2026

Highlights

  • Drop-in compatible with jwt.Claims for validation.
  • Smaller tokens and faster parsing vs standard JWT.
  • Custom claims live in TokenBody.Payload as a protobuf Struct.
  • Benchmarked at ~2.13x faster parsing with fewer allocations.

Tech stack

Go Protocol Buffers JWT

Want to collaborate on open source?

Share new library ideas, co-maintenance requests, or contribution proposals.