GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ffflorian/pkgsource: Find the source of an npm package in an instant.

BranchesTags
Open more actions menu

Latest commit

 

History

2,162 Commits
2,162 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.yarn/releases
.yarn/releases
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.oxlintrc.json
.oxlintrc.json
 
 
.yarnrc.yml
.yarnrc.yml
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
lefthook.yml
lefthook.yml
 
 
oxfmt.config.ts
oxfmt.config.ts
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

pkgsource Lint, test, and publish

Redirect any npm package name to its source repository in one request.

When you visit pkgsource.ffflorian.dev/<packageName>, the server fetches the package metadata from the npm registry, extracts the repository, homepage, or url field, normalizes the URL (handling git+, git://, and ssh:// variants), and issues an HTTP redirect to the resolved source.

Usage

Visit pkgsource.ffflorian.dev/{packageName} in your browser, e.g. pkgsource.ffflorian.dev/nock.

Scoped packages

Visit pkgsource.ffflorian.dev/{@scope}/{packageName}, e.g. pkgsource.ffflorian.dev/@nestjs/core.

Specific version or tag

Append @{version} to the package name, e.g.:

  • pkgsource.ffflorian.dev/[email protected]
  • pkgsource.ffflorian.dev/typescript@beta

If no version is specified, the latest version is used.

Raw JSON response

Add ?raw to get a JSON response instead of a redirect, e.g. pkgsource.ffflorian.dev/commander?raw.

{"code": 200, "url": "https://github.com/tj/commander.js"}

Browse source on unpkg

Add ?unpkg to redirect to the package's file tree on unpkg.com, e.g. pkgsource.ffflorian.dev/[email protected]?unpkg. Combine with ?raw to get the unpkg URL as JSON.

Running locally

Prerequisites:

  • Node.js >= 26
  • Yarn >= 4

Development mode

yarn
yarn start:dev

Production mode

yarn
yarn dist
yarn start:prod

Swagger UI

Open /_swagger-ui in the browser to explore the API interactively.

Docker

The image is published to the GitHub Container Registry.

Pull and run

docker pull ghcr.io/ffflorian/pkgsource:latest
docker run -p 3000:3000 ghcr.io/ffflorian/pkgsource:latest

The server listens on port 3000. Visit http://localhost:3000/<packageName> to use it.

Build locally

docker build -t pkgsource .
docker run -p 3000:3000 pkgsource

About

Find the source of an npm package in an instant.

pkgsource.ffflorian.dev

Topics

dockerfilenestjsnpmpackagestypescript

Resources

Readme
GPL-3.0 license

Security policy

Security policy
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from ffflorian/ts-boilerplate
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.