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

@lightfastai/dev-proxy

v0.4.2

Published

Local development proxy helpers for Lightfast projects using Portless and Vercel Microfrontends.

Readme

@lightfastai/dev-proxy

API-first local development proxy helpers for Lightfast projects that use Portless with Vercel Microfrontends.

This package does not ship a CLI. Use @lightfastai/dev-cli for the lightfast-dev harness, or import these APIs directly from repo-local orchestration code.

Entrypoints

Use @lightfastai/dev-proxy/next from next.config.ts. It is safe for Next config loading and supports both ESM import and CommonJS require.

Use @lightfastai/dev-proxy/projects from ESM app or server runtime modules that need related deployment or local Portless application URLs.

The root @lightfastai/dev-proxy entrypoint exports Portless, Microfrontends, and process runtime helpers for ESM consumers.

Configuration

The config loader searches upward from the current working directory for lightfast.dev.json. Pass configPath to API helpers to use a specific file.

{
  "$schema": "./node_modules/@lightfastai/dev-proxy/schema/config.schema.json",
  "portless": {
    "name": "mfe",
    "port": 1355,
    "https": false
  },
  "microfrontends": {
    "config": "microfrontends.json",
    "apps": {}
  }
}

API

import {
  createVercelMicrofrontendsDevConfig,
  resolvePortlessApplicationUrl,
  resolvePortlessMfeRuntime,
  resolvePortlessMfeUrl,
  startDevProxyAppCommand,
  startDevProxyDevCommand,
  startDevProxyRuntime,
  startDevProxyTurboCommand,
} from "@lightfastai/dev-proxy";

Next.js exports:

import {
  getPortlessProxyOrigins,
  withPortlessProxy,
} from "@lightfastai/dev-proxy/next";

withPortlessProxy populates allowedDevOrigins for HMR. Pass { serverActions: true } to also append origins to experimental.serverActions.allowedOrigins (browsers strip :443 from HTTPS Origin headers, so the bare-host variant is enough by default). Pass { serverActions: { includePort: "both" } } to include both port and no-port variants on the Server Actions surface.

Project URL helpers:

import { resolveProjectUrl, withProject } from "@lightfastai/dev-proxy/projects";

resolveProjectUrl reads the configured Vercel Microfrontends file and resolves the requested application by name. In development it returns the local Portless application URL. Outside development it returns the application's development.fallback, normalized to a full URL.

withProject is the small Vercel deployment-neighbor resolver. It reads VERCEL_RELATED_PROJECTS when Vercel provides it and otherwise returns the supplied default host.

Publishing

Before publishing, update packages/dev-proxy/package.json, then run:

pnpm dev-proxy:release:check
pnpm dev-proxy:publish:dry-run
pnpm dev-proxy:publish