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

@sigx/vercel

v0.15.6

Published

Vercel deployment adapter for SigX (Build Output API v3)

Downloads

1,319

Readme

@sigx/vercel

Vercel deployment adapter for SignalX — Build Output API v3 generation, per the deployment RFC (docs/rfc-deploy.md §4.4). A pack riding @sigx/vite's public SigxAdapter seam with no privileged access; the runtime story is createFetchHandler (WinterCG-clean, CI-enforced) — everything here is build glue.

Install

pnpm add -D @sigx/vercel

Usage

// vite.config.vercel.ts
import { defineConfig } from 'vite';
import sigx from '@sigx/vite';
import { vercel } from '@sigx/vercel';

export default defineConfig({
    plugins: [sigx({ ssr: { entry: 'src/entry-server.tsx', adapter: vercel() } })]
});

vite build --app produces a fully bundled function and then generates the complete .vercel/output layout — unlike wrangler-style tools, the Build Output API is a generation contract: hand-writing it has no copyability value, so the layout is regenerated every build:

.vercel/output/
├── config.json                # routes: fn prefix → filesystem → catch-all
├── static/                    # the client outDir (minus index.html, .vite)
└── functions/_render.func/    # the bundled server + .vc-config.json

Deploy with vercel deploy --prebuilt (link the project first). Two layout choices are load-bearing:

  • static/ omits index.html — the filesystem handle serves static/index.html for /, which would shadow the document render with the raw outlet template.
  • The server-fn route precedes the filesystem handle — POSTs to /_sigx/fn/* must never be shadowed by files. The prefix follows sigxServer({ base }) rather than the default (#563): config.json is regenerated every build, so a moved mount would otherwise have no user-side fix on this platform.

The platform entry — yours, scaffolded once

The first build scaffolds src/entry.vercel.ts iff absent and never touches it again. The export default { fetch } shape is load-bearing on the Node runtime: Vercel's launcher detects a web handler by the fetch method on the default export — a bare default function would be treated as a legacy (req, res) handler. The composition order stays visible in your file:

static assets  →  server functions  →  document render

Options

vercel({
    // 'node' (default — Vercel's current guidance; Fluid compute) | 'edge'
    runtime: 'node',
    // .vc-config.json runtime string for the node runtime
    nodeVersion: 'nodejs22.x',
    // the platform entry, scaffolded iff absent
    entry: 'src/entry.vercel.ts'
})

For runtime: 'edge' the build resolves the edge-light/worker conditions and generate() emits a tiny wrapper entrypoint (the edge contract is a bare default fetch function; your entry keeps the { fetch } shape, identical across platforms).

Verification posture

Structural, not emulation (there is no official Build Output API emulator): CI asserts the generated layout and invokes the function's fetch export directly under Node with real Requests — exactly what Vercel's launcher calls. The reference wiring lives at examples/resume (vite.config.vercel.ts + the committed src/entry.vercel.ts).

License

MIT