OCPP Connectivity
for Node.js
The type-safe, production-ready OCPP WebSocket RPC library for Node.js and the browser. Build EV charging infrastructure with full security profiles, schema validation, Redis clustering, and auto-generated TypeScript types.
See it in Action
One API, Three Environments
Write type-safe OCPP code for Node.js clients, servers, or browser-based charge point simulators — all with the same familiar API.
Core Features
Built for reliability, correctness, and developer experience — everything you need for production OCPP infrastructure.
Type-Safe Everything
End-to-end TypeScript support with auto-generated types for every OCPP 1.6, 2.0.1, and 2.1 message. Request params and responses are fully inferred.
Security Profiles 0–3
Built-in support for all OCPP security profiles: plain WebSocket, Basic Auth, TLS + Basic Auth, and Mutual TLS with client certificates.
High Performance
WebSocket engine optimized for concurrent connections with configurable call concurrency, timeouts, and queue management.
Multi-Version Support
Unified typed API for OCPP 1.6, 2.0.1, and 2.1. Register version-specific or generic handlers — the protocol context is always available.
Schema Validation
Strict mode validates all inbound and outbound messages against official OCPP JSON schemas. Custom validators supported.
Framework Agnostic
Use standalone, or attach to Express, Fastify, NestJS, or any HTTP server. Manual handleUpgrade available for full control.
Redis Clustering
Optional Redis adapter for multi-instance deployments behind a load balancer. Works with both ioredis and node-redis.
Browser Client
Zero-dependency browser WebSocket client for building charge point simulators and testing dashboards. Same typed API, runs in React, Vue, or Next.js.
Minimal Dependencies
Lightweight architecture built on ws and cuid2. No heavy runtime dependencies — fast install, small bundle.
Latest from the Blog
Updates, guides, and technical deep dives.
The Developer's Deep Dive into OCPP
Go beyond the basics. Understand the message framing, state machines, and security architecture of the Open Charge Point Protocol.
Building a Production-Ready CSMS with Node.js
A comprehensive, zero-to-hero guide on building a scalable Charging Station Management System (CSMS) using ocpp-ws-io, TypeScript, and Redis.
Understanding OCPP Security Profiles
A deep dive into securing your charging infrastructure with OCPP security profiles.