Typerinth - v1.4.0

npm npm discord

This library is a wrapper around the Modrinth API, a platform for Minecraft mods, modpacks, and other content. It is not an official package by Modrinth and not affiliated with Modrinth in any way.

Simply execute the following command in your commandline:

npm install typerinth

Import the package like this:

import { Modrinth } from 'typerinth';
const modrinth = new Modrinth();

You can change the options to tune typerinth to your liking:

import { Modrinth } from 'typerinth';
const modrinth = new Modrinth({
userAgent: 'AppName/Version',
cache: new NodeCache({ stdTTL: 300 }),
});
  • OAuth flow example - A simple example on how to implement a secure OAuth 2.0 login flow using Typerinth

You can find a list of the endpoints covered by this library in the coverage.md file.

This project is licensed under the MIT License - see the LICENSE file for details.