npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

corecdtl

v0.1.9

Published

High-performance customizable HTTP engine

Readme

CoreCDTL

A high-performance, fully customizable HTTP engine for building web and API servers.

Designed for teams that need maximum control over their HTTP stack without sacrificing performance. Suitable for large-scale, high-traffic production systems and internal infrastructure.


Overview

CoreCDTL is a low-level HTTP engine distributed as a library, not a framework.

It operates above the socket layer and provides more than just parsing. Beyond request parsing, it includes a full processing pipeline that enables building complete HTTP servers with deep customization.

The engine allows developers to intervene and replace core behaviors such as:

  • request accumulation
  • response models
  • content parsers
  • pipeline stages

This makes it ideal for teams that want to design and control their own architecture instead of adapting to opinionated frameworks.


Design Goals

  • High performance
  • Minimal overhead parsing
  • Deterministic state machines
  • Fully customizable request/response pipeline
  • Pluggable internal components
  • Production-grade reliability
  • Designed for large-scale and high-traffic systems
  • Suitable for web and API servers

Architecture

High-Level Architecture

Socket → Parser → State Machines → Pipeline → Handlers → Response

The engine processes data in a single pass and drives the request lifecycle through explicit states and a customizable execution pipeline.


State Machines

The HTTP protocol is handled using deterministic state machines:

  • Request line
  • Headers
  • Body
  • Chunked transfer encoding

This approach ensures:

  • predictable behavior
  • low branching overhead
  • high cache efficiency
  • safe incremental parsing

Customization Points

The engine is designed to be extended or replaced at multiple levels:

  • Accumulators
  • Response models
  • Content parsers
  • Pipeline stages / middleware
  • Server behavior customization

Users can build their own HTTP server behavior on top of the core engine without modifying internals.


RFC Compliance

The engine follows the HTTP/1.1 specifications and validates protocol rules strictly.

  • RFC-compliant parsing
  • Strict header validation
  • Deterministic behavior on malformed input
  • Non-compliant or ambiguous inputs are intentionally rejected

Security Considerations

Security is handled as a first-class concern.

The engine includes protections against:

  • header injection
  • CRLF attacks
  • request smuggling vectors
  • malformed or ambiguous requests
  • unsafe parsing states

Invalid inputs fail fast and do not propagate undefined behavior.


Performance Characteristics

The engine is built with performance as a core principle:

  • single-pass parsing
  • low/zero-copy design
  • minimal allocations
  • cache-friendly structures
  • branch-predictable state machines
  • SIMD optimizations

Designed for high-throughput, low-latency workloads.


Public API

Full API documentation is available here:

👉 API Documentation


Testing

The project includes:

  • Unit tests
  • RFC compliance tests

Platform Support

Requires modern CPUs with SIMD support.


Limitations

See:

👉 Limitations

Current known limitations include:

  • HTTP/2 not supported
  • TLS not included

Roadmap

Planned features and future work:

👉 Roadmap


License

Open-source. See LICENSE for details.