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

hypnex-openai

v0.1.1

Published

Drop-in OpenAI client for the Morpheus decentralized inference network (mor.org)

Readme

hypnex-openai (TypeScript)

Drop-in OpenAI client for the Morpheus decentralized inference network (mor.org).

npm install hypnex-openai
# or pnpm add hypnex-openai
# or yarn add hypnex-openai

Affiliation & monetization

This SDK is published by Hypnex Labs. It is a thin OpenAI-compatible client; calls go directly to api.mor.org and are billed by Morpheus AI to the API-key holder. This SDK does not currently route fees to Hypnex Labs. Hypnex's revenue comes from the sister SDK hypnex-staking (MRC 73 capital referral) and the stake.hypnex.xyz onramp. Hypnex is not affiliated with the Morpheus AI Foundation.

import { HypnexOpenAI } from "hypnex-openai";

const client = new HypnexOpenAI({ apiKey: "mor_..." });  // get one at https://app.mor.org

const r = await client.chat.completions.create({
  model: "mistral-31-24b",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);

HypnexOpenAI extends OpenAI from the openai npm package and points it at https://api.mor.org/api/v1. Streaming, tools, async, structured output — all work unchanged.

Models

The Morpheus network exposes 60+ models. List them programmatically:

await client.morpheus.activeModels();           // full registry
await client.morpheus.modelsByType("LLM");      // filter
await client.morpheus.findModel("glm-5");       // lookup

Featured LLMs: mistral-31-24b, glm-5, qwen3-235b, qwen3-coder-480b-a35b-instruct, deepseek-r1:70b, minimax-m25. Embeddings: text-embedding-bge-m3. TTS: tts-kokoro. STT: whisper-1.

Drop-in for popular frameworks

Any framework that takes a baseURL accepts Morpheus.

// Vercel AI SDK
import { createOpenAI } from "@ai-sdk/openai";
const morpheus = createOpenAI({
  apiKey: process.env.HYPNEX_API_KEY,
  baseURL: "https://api.mor.org/api/v1",
});
// then: morpheus("qwen3-235b")

// LangChain.js
import { ChatOpenAI } from "@langchain/openai";
const llm = new ChatOpenAI({
  modelName: "qwen3-235b",
  apiKey: process.env.HYPNEX_API_KEY,
  configuration: { baseURL: "https://api.mor.org/api/v1" },
});

Cursor, Cline, Aider, Continue — same pattern (baseURL + apiKey).

Morpheus-specific endpoints

client.morpheus.* exposes endpoints with no OpenAI equivalent:

| Method | Description | |---|---| | balance() | Current MOR balance | | transactions(limit) | Billing history | | spending() | Cumulative usage | | me() | User profile | | listKeys() / createKey(name) / deleteKey(id) / setDefaultKey(id) | API keys | | linkWallet(addr, sig, msg) / getWallet() / unlinkWallet() | Wallet binding | | activeModels() / findModel(name) / modelsByType(type) | Public registry |

Environment

  • HYPNEX_API_KEY — your API key (required)
  • HYPNEX_BASE_URL — override base URL (default https://api.mor.org/api/v1)

Tests

npm install
npm test                                                  # public smoke tests
HYPNEX_API_KEY=mor_... npm test                         # also run authenticated tests

License

MIT