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

@thexjs/adapter-vercel

v1.0.11

Published

Vercel Build Output API (v3) adapter for the x framework -- deploy @thexjs apps to Vercel with zero vercel.json config.

Readme

@thexjs/adapter-vercel

Vercel Build Output API v3 adapter for @thexjs apps. Produces a .vercel/output/ tree directly -- no vercel.json required.

bun add -d @thexjs/adapter-vercel
x build --adapter vercel
vercel deploy --prebuilt

What it produces

.vercel/output/
  config.json                    routes: filesystem first, then fallback -> render
  static/                        HTML, CSS, island JS chunks (served via Vercel's CDN)
  functions/render.func/
    .vc-config.json              runtime: nodejs20.x, handler: index.mjs
    index.mjs                    standalone SSR + API bundle

If your app is 100% static (every page is mode = "static", no API routes, no server actions), no function is emitted at all -- config.json only does filesystem routing.

How it works

  1. Runs @thexjs/core's normal build() to prerender every static-mode page/content entry and compile island bundles -- this becomes static/.
  2. Separately resolves every server-mode page, API route, layout, middleware file, and server-action file at build time (reusing @thexjs/core's own scanners), so nothing at request time depends on walking the filesystem or on a dynamic import(path) of a .tsx file -- both of those only work under Bun.
  3. Transpiles each of those files from Bun-flavored TSX/TS into plain Node ESM, then bundles them together with @thexjs/core and React into one standalone index.mjs.
  4. Bridges Vercel's Node-style (req, res) function invocation to @thexjs's Web-standard Request/Response handler, streaming the response body through (so renderToReadableStream-based SSR streams end-to-end, not just non-streaming pages).

Options

import { buildVercelOutput } from "@thexjs/adapter-vercel";

await buildVercelOutput({
  projectRoot: process.cwd(),
  pagesDir: "src/pages",
  apiDir: "src/api",
  layoutsDir: "src/layouts",
  actionsDir: "src/actions",
  contentDir: "content",
  outputDir: ".vercel/output", // default
  runtime: "nodejs20.x",       // "nodejs18.x" | "nodejs20.x" | "nodejs22.x"
});

Known limitations (follow-up work)

  • ISR-style revalidate caching (in-memory in the long-running Bun dev/prod server) doesn't carry over to stateless serverless invocations -- use Vercel's own Cache-Control/CDN caching on the response instead.
  • Markdown contentDir entries are always statically prerendered (matches @thexjs/core's build() behavior today) -- there's no server-mode content route yet.