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

tezx

v4.0.9

Published

TezX is a modern, ultra-lightweight, and high-performance JavaScript framework built specifically for Bun. It provides a minimal yet powerful API, seamless environment management, and a high-concurrency HTTP engine for building fast, scalable web applicat

Readme

⚡ TezX – High-Performance JavaScript Framework for Bun

TezX is a modern, ultra-fast, and lightweight JavaScript framework built specifically for Bun. With a clean API, powerful routing, WebSocket support, middleware stacking, and native static file serving — TezX helps you build scalable applications with unmatched speed.

Ask DeepWiki


🚀 Why TezX (Built for Bun)?

  • Blazing Fast — Fully optimized for Bun’s event loop & native performance.
  • 🧩 Minimal, Clean API — Developer-friendly and intuitive.
  • 🗂 Native Static Serving — No external dependencies needed.
  • 🔌 Powerful Middleware Engine — Compose any logic effortlessly.
  • 🧭 Advanced Routing — Dynamic, nested, and pattern-based.
  • 🔐 Secure by Default — Built-in safe context handling.
  • 📡 WebSocket Support — Real-time apps made easy with wsHandlers.
  • ♻️ Multi-Process Ready — Via Bun’s reusePort.

📦 Installation

bun add tezx
# or
npm install tezx

⚡ Quick Start (Bun)

import { TezX } from "tezx";
import { logger } from "tezx/middleware";
import { serveStatic } from "tezx/static";
import { wsHandlers } from "tezx/ws";

const app = new TezX();

// Middlewares
app.use(logger());

// Static files
app.static(serveStatic("/", "./static"));

// Route
app.get("/", (ctx) =>
  ctx.html(`
    <h1>Welcome to TezX</h1>
    <p>High-performance JavaScript framework optimized for Bun.</p>
  `)
);

// Server
const port = Number(process.env.PORT) || 3001;

Bun.serve({
  port,
  reusePort: true,
  fetch(req, server) {
    return app.serve(req, server);
  },
  websocket: wsHandlers({
    // Optional WebSocket config
  }),
});

console.log(`🚀 TezX server running at http://localhost:${port}`);

▶ Run the Server

bun run server.ts

🔌 Middleware Example

app.use((ctx, next) => {
  console.log("➡ Request:", ctx.req.url);
  return next();
});

🗂 Static File Serving

import { serveStatic } from "tezx/static";

app.static(serveStatic("/assets", "./assets"));

Access via:

http://localhost:3001/assets/your-file.ext

🧭 Routing

app.get("/about", (ctx) => ctx.html("<h1>About TezX</h1>"));

app.post("/contact", async (ctx) => {
  const body = await ctx.json();
  return ctx.json({ received: body });
});

⚠️ Error Handling

app.onError((err, ctx) => {
  return ctx.status(500).json({
    error: "Internal Server Error",
    message: err.message,
  });
});

🧪 Development Setup

dev script for Bun

package.json

{
  "scripts": {
    "dev": "bun run --hot --watch src/index.ts"
  }
}

Example: src/index.ts

import app from "./app";

Bun.serve({
  port: 3001,
  reusePort: true,
  fetch(req, server) {
    return app.serve(req, server);
  },
});

🤝 Contributing

We welcome contributions!

  1. Fork the repo
  2. Create a new branch
  3. Commit your changes
  4. Open a pull request

👉 GitHub: https://github.com/tezxjs


💖 Support TezX

If TezX helps you, consider supporting:

Your support helps improve the framework.


🙌 Sponsor


📜 License

Licensed under the MIT License.