Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@tinkered/bun

Latest version: v0.34.8

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: lagz0ne
0 Stars
0 Forks
54 Versions
11.1K Downloads
TypeScript Repo language

Scan summary

@tinkered/bun was last scanned on 24 Nov 2026 at version 0.34.8. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 54 versions; the latest 5 were published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 0.34.8.
  • Downloads: 11,097 downloads.

Versions

54 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.34.8 LATEST 24 Nov 2026 No rules fired
0.34.7 24 Nov 2026 No rules fired
0.34.6 23 Nov 2026 No rules fired
0.34.5 22 Nov 2026 Not shown
0.34.4 22 Nov 2026 Not shown

No rules fired in 0.34.8

Findings

Findings for v0.34.8. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.34.8; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@tinkered/bun

The parts of a Tinker app that run on Bun (ADR 0130).

  • @tinkered/bun: serve, Bun.serve as a capsule; run, the host; and ws.server, rpc over one WebSocket.
  • @tinkered/bun/client: ws.client, the browser half of that socket.
  • @tinkered/bun/sql: bunSql, Postgres on Bun.SQL, with a pool.
  • @tinkered/bun/sqlite: bunSqlite, SQLite on bun:sqlite.

Install

bun add @tinkered/core @tinkered/bun

Each release also attaches tarballs to its GitHub release; the changelog lists them.

Serve and run

serve is a capsule: Bun.serve for the life of the scope (ADR 0132). The cmd gives it its values; it reads no process.env.

const socket = ws.server({
  path: "/rpc",
  services: [api],
});

export default defineMain(
  ({ env, signal, stdout }) => {
    // `routes` is the template's request table.
    const table = routes({
      stop: signal,
      table: { "GET /api/health": health },
    });

    return createScope({
      signal,
      capsules: [
        serve({
          port: Number(env.PORT ?? 4318),
          pages: { "/*": page },
          websocket: socket,
          handlers: [table],
          stdout,
        }),
        api({ implement }),
        socket,
        table,
      ],
    });
  },
);
  • serve goes first: its start wraps the rest, so it listens once all started.
  • On close it stops the port first.
  • pages: static files, Bun's own routes. Every path no handler takes gets them.
  • websocket: the one handler with Bun's websocket (Bun takes one per server).
  • handlers: asked in order; the first Response wins.
  • /api/*, /rpc and /rpc/* go to the handlers; paths adds more.
  • Each handler reads a body up to its own maxBody, 1 MiB when unset. Past it, serve answers 413.
  • A handler's reply that leaves the body unread closes the connection: the client may still be sending it. So do serve's own 404 and 413. A body read to its end keeps the connection open.
  • A handler's request.signal aborts when the client leaves, body or not.
  • server.requestIP(request) and server.timeout(request, s) work in a handler, body or not.

A handler is a capsule whose start returns Bun's own shape, { fetch, websocket? }. fetch gives a Response, null (it upgraded the request), or undefined (not its own: the next handler gets it).

run runs one cmd. It owns the signals and the exit code.

import { run } from "@tinkered/bun";

import main from "./server";

await run(main);
  • A config error at start exits 78.
  • Any other throw at start exits 1.
  • A failed root exits 1.
  • A signal exits 128 plus its number.

The socket

The server is a handler: give it to serve as websocket.

const socket = ws.server({
  path: "/rpc",
  services: [api],
});

Its fetch upgrades the socket's path, then takes a bytes POST. Each answer:

  • undefined: not this path;
  • null: upgraded, Bun owns the request;
  • a Response: refused (a foreign origin gives 403), or the POST's reply.

A bytes POST is for a key with a bytes field. A POST it refuses before it reads the body closes the connection, on serve or a bare Bun.serve.

Two services with one address fail the start with DuplicateAddress. The fault names both:

two boards, each with a cell named "flows":

DuplicateAddress
  address: "flows"
  services: ["approvals.flows", "admin.flows"]
  • The fix is a rename of one cell.
  • strict: false lets the first in the list win, with a warning at start.

The client:

import { ws } from "@tinkered/bun/client";

const tab = await createScope({
  capsules: [
    ws.client({ url: "wss://host/rpc" }),
    api({ remote: ws.client }),
  ],
}).ready;

Databases

Each gives a Drizzle connection. drizzle-orm is an optional peer.

import { bunSql } from "@tinkered/bun/sql";
import { bunSqlite } from "@tinkered/bun/sqlite";

capsules: [
  bunSql({ url: new URL(env.DATABASE_URL) }),
  drizzlePg({ driver: bunSql.connection }),
];
  • bunSql: url (secret), max (10).
  • bunSqlite: file (:memory:).
  • The file is in WAL mode, with foreign keys on.
  • begin takes the write lock at once.
  • Each closes with the scope.

Guards

  • The Origin check at upgrade.
  • A frame over maxPayload, or of more than 32 messages, closes the socket.
  • More than maxWatches live watches answers 429.
  • More than maxUploads bytes POSTs at once answers 503 with Retry-After.
  • A socket quiet for 60 s closes.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @tinkered/bun

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229