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

@loontail/strapi-plugin-yggdrasil

v0.0.11

Published

Strapi v5 plugin for Loontail Minecraft Auth: Yggdrasil-compatible authentication, session and bulk-profile endpoints plus player skin/cape storage, upload, deletion and an admin UI under /admin/plugins/yggdrasil.

Readme

@loontail/strapi-plugin-yggdrasil

A Strapi v5 plugin that exposes a Yggdrasil-compatible authentication and session API on top of the existing users-permissions plugin and the skins-registry plugin. Mounted under /api/yggdrasil/.

It is the server side of loontail-yggdrasil — see the repo root for the protocol overview and the client package.

Install

npm install @loontail/strapi-plugin-yggdrasil @loontail/minecraft-kit

Register the plugin in config/plugins.js:

module.exports = ({ env }) => ({
  '@loontail/strapi-plugin-yggdrasil': {
    enabled: true,
    resolve: '@loontail/strapi-plugin-yggdrasil',
    config: {
      publicUrl: env('YGGDRASIL_PUBLIC_URL', ''),
      skinDomains: env.array('YGGDRASIL_SKIN_DOMAINS', []),
      serverName: env('YGGDRASIL_SERVER_NAME', 'Loontail Yggdrasil'),
      tokens: {
        accessTtlSeconds: env.int('YGGDRASIL_TOKEN_TTL', 60 * 60 * 24 * 15),
        maxPerUser: env.int('YGGDRASIL_TOKEN_CAP', 10),
      },
      privateKeyPath: env('YGGDRASIL_PRIVATE_KEY_PATH', 'data/yggdrasil/keys/active.key.pem'),
      joinBackend: env('YGGDRASIL_JOIN_BACKEND', 'memory'),
    },
  },
});

What the plugin does to your database

On bootstrap, the plugin:

  1. Adds a single uuid varchar(32) column to up_users (idempotent via hasColumn), and a up_users_uuid_uniq partial unique index.
  2. Creates yggdrasil_tokens and (optionally) yggdrasil_join_sessions.
  3. Generates an RSA-4096 key pair under data/yggdrasil/keys/ on first run if none exists.

The plugin does not modify the up_users Strapi schema — the uuid column is managed entirely from inside the plugin via Knex. This keeps your host Strapi project unchanged except for the config/plugins.js registration.

What it does NOT do

  • It does not upload, delete, or otherwise mutate skin/cape files. Skin management lives in skins-registry. The Yggdrasil plugin reads up_users.skin and up_users.cape (relative paths) at hasJoined time, opens the PNG from disk to detect classic/slim via @loontail/minecraft-kit's detectSkinVariant, and serves the texture URL as-is.
  • It does not ship a /authserver/signout endpoint. Access tokens expire by TTL only. Launchers should simply discard their local session on logout.

Endpoints

| Method | Path | Notes | |---|---|---| | GET | / | ALI metadata | | POST | /authserver/authenticate | login | | POST | /authserver/refresh | rotate accessToken | | POST | /authserver/validate | 204 / 403 | | POST | /authserver/invalidate | 204; deletes the token | | POST | /sessionserver/session/minecraft/join | server-join cache push | | GET | /sessionserver/session/minecraft/hasJoined | signed profile | | GET | /sessionserver/session/minecraft/profile/:uuid | profile (signed by default; ?unsigned=true strips the signature) | | POST | /api/profiles/minecraft | bulk name → profile lookup |