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

morfy-ai

v1.1.1

Published

A library for AI integration

Readme

Morfy.ai - AI Integration Library

Morfy.ai is a JavaScript library designed for AI integration, including functionality to interact with OpenAI, Gemini, DeepSeek, and other AI services. It allows seamless integration into your project for tasks like sending messages, generating photos, translating text, and more.

Features

  • Send messages to AI services such as DeepSeek, Gemini, and OpenAI.
  • Translate text with Translatte.
  • Generate photos with Photo AI.
  • Easy-to-use API key management.

Installation

You can install Morfy.ai via npm:

npm install morfy-ai

Usage

Loading the API Key

Before calling any function, you need to load a valid API key using the morfy.load(apiKey) method. The API key is verified by checking it against a list of valid keys stored on a remote server.

Example:

const morfy = require('morfy-ai');

// Load the API key (must be a valid key with at least 32 characters)
morfy.load('your-api-key-here');

Get an API key by leaving a comment with "code" at the following link: [LINK]

Sending Messages to AI Services

You can send messages to different AI services by calling the respective functions. The message format used is OpenAI's message format, which is an array of objects. Each message object should contain a role (either user, system, or assistant) and a content field.

Example:

const messages = [
    {
        role: 'user',
        content: 'What is the weather like today?'
    }
];

async function sendMessages() {
    try {
        // Отправка сообщения в DeepSeek (r1)
        const deepSeekResponse = await morfy.deepseek.r1.sendMessage(messages);
        console.log(deepSeekResponse);

        // Отправка сообщения в OpenAI (v1)
        const openAiResponse = await morfy.openai.v1.sendMessage(messages);
        console.log(openAiResponse);
    } catch (err) {
        console.error(err);
    }
}

// Вызов функции
sendMessages();

Available Services

DeepSeek

  • r1: Send messages using DeepSeek's r1 model.
morfy.deepseek.r1.sendMessage(messages)

Gemini

  • v2: Send messages using Gemini v2 model.
morfy.gemini.v2.sendMessage(messages)

OpenAI

  • 4o: Send messages using OpenAi 4o model.
morfy.openai.v1.sendMessage(messages)

DeepSeek

  • r1: Send messages using DeepSeek R1 model.
morfy.deepseek.r1.sendMessage(messages)

Photo-Ai

  • v1: Generate a photo based on a given prompt.
morfy.photo.v1.generatePhoto('A futuristic city skyline at sunset')

Translate

  • v1: Translate text to a different language.
morfy.translate.v1.translateText('Hello, how are you?', 'de')

🚀 Beta Version Notice

This library is currently in beta. We are actively working on improving its performance, stability, and features. While we strive for quality, you may encounter bugs or unexpected behavior.

Your feedback is invaluable! If you find any issues, please report them so we can enhance the library for future releases.

Stay tuned for updates as we continue to refine and improve Morfy-AI! 🔥