ffflorian / pkgsource

Find the source of an npm package in an instant.

Home Page:https://pkgsource.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pkgsource Build Status

Find (almost) every npm package's repository in an instant.

Usage

Visit pkgsource.xyz/{packageName} in your web browser, e.g. pkgsource.xyz/nock.

Get the repository for a specific version

Visit pkgsource.xyz/{packageName}@{version} in your web browser, e.g. pkgsource.xyz/lodash@4.17.15. This also works with npm tags, e.g. pkgsource.xyz/typescript@beta

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

Get the raw data

Visit pkgsource.xyz/{packageName}?raw in your web browser, e.g. pkgsource.xyz/commander?raw.

Get source code for a specific version

Visit pkgsource.xyz/{packageName}?unpkg in your web browser, e.g. pkgsource.xyz/express@4.17.1?unpkg. You can use the same features (raw, version, tags) as mentioned above.

Server usage

Docker

docker run -p 4000:4000 ffflorian/pkgsource

Local

Prerequisites:

Start the server in development mode

yarn
yarn start:dev

Start the server in production mode

yarn
yarn dist
yarn start

Swagger UI

Open /_swagger-ui in the browser to try it out.

About

Find the source of an npm package in an instant.

https://pkgsource.xyz

License:GNU General Public License v3.0


Languages

Language:TypeScript 89.6%Language:Shell 7.9%Language:JavaScript 1.5%Language:Dockerfile 1.0%