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

brainxiex

v1.3.4

Published

Brainxiex library

Downloads

91

Readme

Brainxiex

Deskripsi

Brainxiex adalah library AI yang dirancang untuk membantu dalam berbagai fungsi, seperti menjawab pertanyaan, melakukan pencarian, dan menghasilkan konten kreatif. Dengan Brainxiex, Anda dapat dengan mudah mengintegrasikan kecerdasan buatan ke dalam aplikasi Anda.


Instalasi

Untuk menginstal brainxiex, gunakan perintah npm berikut:

npm install brainxiex

Atau dari GitHub:

npm install https://github.com/Barqah-Xiex/brainxiex.git

Penggunaan Dasar

const brainxiex = require('brainxiex')({
  // apikey: 'YOUR_API_KEY',
  session_local: true,
});

// CATATAN:
// - Jangan gunakan apikey jika tidak punya
// - Jangan gunakan session_local jika ingin simpan di server

const prompt = 'Apakah Rapunzel suka makan kerupuk?';
const model = 'brainxiex';
const session_id = 'brainxiex_module123';

// Mode full (mirip OpenAI)
brainxiex.api.ai({
  messages: [{ role: 'user', content: prompt }],
  model,
}).then((res) => console.log(res.answer));

// Mode simple
brainxiex.api.ai.simple(prompt, model, session_id)
  .then((res) => console.log(res.answer));

🧠 Struktur Object (Mapping)

Setelah inisialisasi:

const brainxiex = require('brainxiex')({ options });

Struktur yang dihasilkan:

{
  version: '1.3.0',
  api: { ... }
}

📦 version

brainxiex.version

Versi library.


🧠 api.ai (AI / LLM)

brainxiex.api.ai(payload)
brainxiex.api.ai.LLM(payload)
brainxiex.api.ai.simple(prompt, model?, sessionID?, images?)

📥 api.downloader

brainxiex.api.downloader.reels(url)
brainxiex.api.downloader.facebook(url)
brainxiex.api.downloader.instagram(url)
brainxiex.api.downloader.tiktok(url)
brainxiex.api.downloader.twitter(url)
brainxiex.api.downloader.youtube(url)

Alias:

brainxiex.api.downloader.fb(url)
brainxiex.api.downloader.ig(url)
brainxiex.api.downloader.tt(url)
brainxiex.api.downloader.tw(url)
brainxiex.api.downloader.yt(url)

Tambahan:

brainxiex.api.downloader.play(query)

🖼️ api.image

brainxiex.api.image.remini(input)
brainxiex.api.image.hitamkan(input)
brainxiex.api.image.toAnime(input)
brainxiex.api.image.imagine(prompt)
brainxiex.api.image.nulis(text)
brainxiex.api.image.sticker(input)

Generator:

brainxiex.api.image.welcomeCard(data)
brainxiex.api.image.goodbyeCard(data)
brainxiex.api.image.banner(data)

Tools:

brainxiex.api.image.screenshot(url)
brainxiex.api.image.fakechat(data)

🔄 api.media2buffer

brainxiex.api.media2buffer(input)

Convert Buffer / file / URL → Buffer


🎮 api.minigame

brainxiex.api.minigame.family100()
brainxiex.api.minigame.tebakgambar()
brainxiex.api.minigame.caklontong()
brainxiex.api.minigame.siapakahaku()
brainxiex.api.minigame.tebakbendera()
brainxiex.api.minigame.tebakkalimat()
brainxiex.api.minigame.tebakkata()
brainxiex.api.minigame.tebakkimia()
brainxiex.api.minigame.tebaklirik()
brainxiex.api.minigame.tebaktebakan()

🎲 api.random

brainxiex.api.random.apakah(text)
brainxiex.api.random.bisakah(text)
brainxiex.api.random.citacita()
brainxiex.api.random.truth()
brainxiex.api.random.dare()
brainxiex.api.random.fakta()
brainxiex.api.random.gombal()
brainxiex.api.random.hobi()
brainxiex.api.random.katamutiara()
brainxiex.api.random.tebakan()
brainxiex.api.random.watak()

🔎 api.search

brainxiex.api.search.pinterest(query)
brainxiex.api.search.google(query)
brainxiex.api.search.youtubeSearch(query)
brainxiex.api.search.yts(query)

🛠️ api.tools

brainxiex.api.tools.textToBase64(text)
brainxiex.api.tools.base64ToText(base64)
brainxiex.api.tools.textToEnchant(text)
brainxiex.api.tools.enchantToText(text)
brainxiex.api.tools.textToSunda(text)
brainxiex.api.tools.sundaToText(text)

File utils:

brainxiex.api.tools.extToMimetype(ext)
brainxiex.api.tools.mimetypeToExt(mimetype)

Lainnya:

brainxiex.api.tools.gtts(text)
brainxiex.api.tools.formater(data)
brainxiex.api.tools.googleAI(prompt)

🕵️ api.stalk

brainxiex.api.stalk.tiktokstalk(username)
brainxiex.api.stalk.instagramstalk(username)
brainxiex.api.stalk.robloxstalk(username)

🌐 api.toURL

brainxiex.api.toURL(input)

Upload Buffer/file/URL → URL


⚙️ api.raw

brainxiex.api.raw(endpoint, payload)

Low-level request (advanced).


Contoh Tambahan

AI dengan session

const brainxiex = require('brainxiex')({ session_local: true });

async function chat() {
  const res = await brainxiex.api.ai.LLM({
    messages: [{ role: 'user', content: 'Halo!' }],
    model: 'brainxiex',
    sessionID: 'test-session',
  });
  console.log(res);
}

chat();

Image → Sticker

const fs = require('fs');
const brainxiex = require('brainxiex')({});

async function run() {
  const buf = await brainxiex.api.image.sticker('./image.jpg');
  fs.writeFileSync('sticker.webp', buf);
}

run();

Catatan

  • Semua fungsi return Promise
  • Error format:
{ error: 'message' }
  • Endpoint media return Buffer

License

MIT