typings / api

The TypeScript definition registry
https://api.typings.org/
Other
13 stars 3 forks source link

Typings API

The TypeScript definition registry.

Usage

Simple RESTful API for typings integration. Available at https://api.typings.org/.

/search

Search known TypeScript definitions.

Query Parameters

/entries/:source/:name

Print version details from the registry.

/versions

Get all versions of an entry.

/versions/latest

Get the latest version of an entry.

/versions/:version

Get all versions matching a semver range.

/latest

Get the latest version matching a semver range.

/tags/:tag

Get a specific entry version by tag.

Development

Requires Postgres. Run all migration scripts to get started.

# Clone and install dependencies.
git clone
npm install

# Run all migration scripts.
npm run migrate -- up -a

# Start the build and watch processes.
npm run dev

Environment

export DATABASE_URL="postgres://admin:admin@localhost:5432/typings_registry"

export NEW_RELIC_ENABLED=false
export NEW_RELIC_NO_CONFIG_FILE=true

export UA_ID=""

License

Apache 2.0