Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bit-js/byte

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bit-js/byte

A simple, performance-focused web framework that works on Bun, Deno, and browsers. ```ts import { Byte } from '@bit-js/byte';

  • 1.4.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Byte

A simple, performance-focused web framework that works on Bun, Deno, and browsers.

import { Byte } from '@bit-js/byte';

export default new Byte()
    .get('/', (ctx) => ctx.body('Hi'));

Features

  • Fast: Internally use Blitz, the fastest router in the JS ecosystem.
  • Lightweight: Under 30kB in size including dependencies.
  • Multi-runtime: Works on all JS runtimes without any adapters.

Benchmarks

Byte starts up faster than the hono/quick preset with LinearRouter.

[535.66ms] Byte: Build 1000 routes
[687.44ms] Hono: Build 1000 routes

Byte matches routes 6x faster than Hono with RegExpRouter.

"/user":
- Hono: 23416ns
- Byte: 4463ns

"/user/comments":
- Hono: 26255ns
- Byte: 4454ns

"/user/avatar":
- Hono: 31863ns
- Byte: 4991ns

"/event/:id":
- Hono: 33113ns
- Byte: 7072ns

"/event/:id/comments":
- Hono: 34888ns
- Byte: 8257ns

"/status":
- Hono: 26211ns
- Byte: 4195ns

"/deeply/nested/route/for/testing":
- Hono: 22171ns
- Byte: 3981ns

See benchmarks for more details.

Docs

See the docs at bytejs.pages.dev.

Keywords

FAQs

Package last updated on 29 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc