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

@langri-sha/projen-uv

v0.1.4

Published

[projen] components for authoring [uv] workspaces and the Python packages in them.

Readme

@langri-sha/projen-uv

projen components for authoring uv workspaces and the Python packages in them.

Usage

npm install -D projen @langri-sha/projen-uv

UvWorkspace writes the workspace root — a pyproject.toml opening the workspace, a .python-version if you pin one, and into .gitignore what uv init keeps out of Git:

import { Project } from 'projen'
import { UvWorkspace } from '@langri-sha/projen-uv'

const project = new Project({
  name: 'my-project',
})

new UvWorkspace(project, {
  pythonVersion: '3.14',
  'dependency-groups': {
    dev: ['ty>=0.0.52'],
  },
  tool: {
    uv: {
      workspace: {
        members: ['packages/lib'],
      },
    },
  },
})

The root stays virtual — a workspace, and not a package of its own — unless it declares a [project] table.

UvPackage writes a package, and a sample src/<module>/__init__.py so that it builds before anything has been written into it:

import { UvPackage } from '@langri-sha/projen-uv'

new UvPackage(lib, {
  project: {
    'requires-python': '>=3.14',
    dependencies: ['httpx'],
  },
  'build-system': {
    requires: ['uv_build>=0.12,<0.13'],
    'build-backend': 'uv_build',
  },
})

The package's name defaults to the project's own, less any npm scope, and its version to the 0.1.0 that uv init writes; pass sampleCode: false to skip the module. A package that already has a pyproject.toml gets no sample, as uv init refuses to run over one, so adopting an existing package leaves its layout as it is.

A package depending on another member of the workspace names it in [tool.uv.sources], as uv requires:

new UvPackage(app, {
  project: {
    dependencies: ['lib'],
  },
  tool: {
    uv: {
      sources: {
        lib: { workspace: true },
      },
    },
  },
})

Members added after construction still reach the manifest, which is what @langri-sha/projen-project uses to keep [tool.uv.workspace] members in step with the subprojects that declare a package:

workspace.addMember('apps/app')

Manifest typings

Manifest options come from SchemaStore's pyproject schema, compiled on install, and [tool.uv] from SchemaStore's uv schema — the one the pyproject schema refers [tool.uv] to. Every other tool's table is left open.

SchemaStore takes its copy of the uv schema from uv every few releases, so it lags uv by whatever was added since. The schema closes [tool.uv] to unknown keys; reach past it through the file rather than waiting on SchemaStore:

workspace.manifest.addOverride('tool.uv.prerelease-package', { torch: 'allow' })

pyproject.toml is written as TOML 1.0, because projen's own TOML writer refuses an array mixing strings and tables — which is what a dependency group including another looks like, as do uv's overrides, exclusions and cache keys.

The lockfile

uv.lock is uv's to write. The manifests are synthesized, so uv add and uv remove cannot edit them: declare dependencies in .projenrc, synthesize, and run uv lock.

@langri-sha/projen-project keeps Renovate to updates within the declared ranges, since a range it rewrote in a synthesized manifest would be put back by the next synthesis. Those updates move uv.lock alone; raising a bound is an edit to .projenrc.