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-core

v0.4.2

Published

Core local development primitives for Lightfast worktrees.

Downloads

1,929

Readme

@lightfastai/dev-core

Core local development primitives for Lightfast worktrees.

This package owns worktree identity, prefix detection, and the small shared project identity read from lightfast.dev.json. It does not know about Portless runtime behavior, Vercel Microfrontends, Inngest, or app-specific service wiring.

Usage

Install the package where code needs worktree-aware runtime names:

pnpm add @lightfastai/dev-core

Derive a stable runtime name:

import { resolveWorktreeRuntimeName } from "@lightfastai/dev-core";

export const inngestAppId = resolveWorktreeRuntimeName("lightfast-app");

In the main checkout this returns lightfast-app. In a linked worktree on a branch such as feature/inngest-ui, it returns lightfast-app-inngest-ui.

For structured access:

import { resolveWorktreeIdentity } from "@lightfastai/dev-core";

const identity = resolveWorktreeIdentity({ baseName: "lightfast-platform" });
// { name, baseName, worktreePrefix }

Resolve the shared local-dev project identity from lightfast.dev.json:

import {
  resolveDevProjectConfig,
  resolveDevProjectIdentity,
} from "@lightfastai/dev-core";

const project = resolveDevProjectConfig();
// { root, configPath, name } where name is lightfast.dev.json portless.name

const identity = resolveDevProjectIdentity();
// { root, configPath, name, worktreePrefix, rootHash }

API

import {
  branchToPrefix,
  defaultDetectWorktreePrefix,
  resolveDevProjectConfig,
  resolveDevProjectIdentity,
  resolveWorktreeIdentity,
  resolveWorktreeRuntimeName,
  sanitizeWorktreePrefix,
} from "@lightfastai/dev-core";

defaultDetectWorktreePrefix first asks git worktree for linked-worktree state, then falls back to reading a .git file that points into a worktrees/ directory. Main, master, and detached HEAD states do not produce a prefix.

resolveDevProjectIdentity is the shared identity primitive for service packages. It walks upward to lightfast.dev.json, reads portless.name, detects the current worktree prefix, and returns an 8-character hash of the resolved config root.

Publishing

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

pnpm --filter @lightfastai/dev-core release:check

To inspect the publish without uploading:

pnpm --filter @lightfastai/dev-core publish:dry-run

To publish to npm:

npm whoami
pnpm --filter @lightfastai/dev-core publish:npm