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

@aethermc/sdk

v1.1.0

Published

TypeScript SDK and type definitions for Aether extensions

Readme

Aether SDK (@aethermc/sdk)

The official TypeScript SDK for building extensions for the Aether Minecraft Launcher. Provides full type definitions for the Aether global API injected by the sandbox runtime, plus helper utilities for safe permission checking, logging, and mod loader registration.


Installation

npm install --save-dev @aethermc/sdk

Permissions & Capabilities

Every capability in the API must be declared in your extension's manifest.json before it can be used. The sandbox enforces this at the Go level — undeclared capabilities simply won't exist on the Aether object.

| Permission | API surface | |---|---| | ui:sidebar | Aether.ui.registerSidebarPage, onMessage, postMessage | | ui:dialogs | Aether.ui.openDialog | | instances:list | Aether.instances.list | | mods:install | Aether.instances.installMod | | mods:list | Aether.instances.listMods | | mods:delete | Aether.instances.deleteMod | | mods:toggle | Aether.instances.toggleMod | | modpacks:install | Aether.instances.installModpack | | resourcepacks:install | Aether.instances.installResourcePack | | shaderpacks:install | Aether.instances.installShaderPack | | screenshots:read | Aether.instances.listScreenshots, openScreenshot, getScreenshotData | | screenshots:write | Aether.instances.deleteScreenshot | | network:http | Aether.http.get | | fs:download | Aether.fs.download | | launcher:modloader | Aether.launcher.registerModLoader | | discord:presence | Aether.discord.setActivity, clearActivity | | skin:export | Aether.skins.export |


Usage

Basic extension entry point

import { onReady, createLogger, assertPermission } from '@aethermc/sdk';

const log = createLogger('my-extension');

onReady(() => {
  log.info('Extension started!');

  assertPermission('ui:sidebar');

  Aether.ui.registerSidebarPage({
    id: 'my-page',
    label: 'My Extension',
    url: 'ui/index.html',
  });
});

Listing instances and installing mods

import { onReady, assertPermission } from '@aethermc/sdk';

onReady(() => {
  assertPermission('instances:list');
  assertPermission('mods:install');

  const instances = Aether.instances.list();
  instances.forEach((inst) => {
    console.log(`${inst.name} — ${inst.version} (${inst.loader})`);
  });
});

Registering a mod loader

import { onReady, defineProvider } from '@aethermc/sdk';

onReady(() => {
  defineProvider({
    id: 'my-loader',
    name: 'My Loader',
    description: 'A custom mod loader.',
    onLaunch: (ctx) => ({
      jvmArgs: ['-Dmy.loader.enabled=true'],
      mainClass: 'com.example.Main',
    }),
  });
});

Working with screenshots

import { onReady, assertPermission } from '@aethermc/sdk';

onReady(() => {
  assertPermission('screenshots:read');

  Aether.ui.onMessage(async (msg: any) => {
    if (msg.type === 'get_screenshots') {
      const screenshots = Aether.instances.listScreenshots(msg.instanceId);
      // Each screenshot has: name, size, modified, url
      // Use `url` directly in <img src="..."> for native rendering
      Aether.ui.postMessage({ type: 'screenshots', data: screenshots });
    }
  });
});

Discord Rich Presence

import { onReady, assertPermission } from '@aethermc/sdk';

onReady(() => {
  assertPermission('discord:presence');

  Aether.events.on('instance:launched', (data: any) => {
    Aether.discord.setActivity({
      details: `Playing ${data.instance.name}`,
      state: data.instance.version,
      startTimestamp: Date.now(),
    });
  });
});

manifest.json reference

{
  "id": "my-extension",
  "name": "My Extension",
  "version": "1.0.0",
  "author": "Your Name",
  "description": "What your extension does.",
  "main": "main.js",
  "api": "1",
  "minLauncherVersion": "v1.0.0",
  "permissions": [
    "ui:sidebar",
    "instances:list",
    "mods:install"
  ],
  "hosts": [
    "https://api.example.com"
  ]
}

minLauncherVersion — If set, Aether will show an "Incompatible" badge in the Gallery for users on older launcher versions and prevent installation until they update.


Distribution & Licensing

Extensions built with this SDK may be open-source or closed-source — your choice. However, distribution through the Aether Gallery requires review and approval by the Aether team.

See LICENSE for the full terms. Key points:

  • ✅ Closed-source extensions are allowed
  • ✅ You own your extension's code
  • ✅ Aether reviews extensions before Gallery listing (security, quality, policy)
  • ❌ You may not use this SDK to build a competing launcher or extension platform
  • ❌ You may not distribute extensions outside approved channels without written permission from Aether

To submit your extension for review:
Aether-Extensions Registry