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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dekuai

v2.0.3

Published

Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.

Downloads

124

Readme

DEKU AI

Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.

📚 Table of Contents

📦 Install

npm install dekuai

🚀 Start

const Deku = require("dekuai")
const deku = new Deku();
// if you have a apikey
// const deku = new Deku("$deku-example1234apikey")
// the key is to get unlimited request on PRO type API

CONTACT ME FOR APIKEY

FOR CONVERSATIONAL

Conversational models

  • Cblackbox
  • Cqwen
  • Cllama
  • Czephyr
  • Cdiscolm
  • Chermes

USAGE

// NOTE FOR CONVERSATIONAL MODEL: Your conversation with AI depends on the ID
async function main() {
  //if you want to clear your conversation with AI just prompt clear
  // const q = "clear",
  const q = "hi",
    cid = "40", // (conversational id) 
    model = "Cblackbox";
  const response = await deku[model](q, cid)
  return console.log(response) 
}

main()

FOR NON CONVERSATIONAL

Non conversational models

  • llama
  • blackbox
  • gemma
  • gemini
  • linerva

USAGE

async function main() {
  const q = "hi";
  const model = "llama"
  const response = await deku[model](q)
  return console.log(response) 
}
main()

CONVERSATIONAL CHARACTER AI

character list

  • deku
  • gojo
  • sukuna
  • rimuru
  • cid
  • luffy
  • rudeus
  • ichigo
  • naruto
  • boruto

USAGE

// NOTE FOR CONVERSATIONAL MODEL: Your conversation with AI depends on the ID
async function main() {
  //if you want to clear your conversation with Character AI just prompt clear
  // const q = "clear",
  const q = "hi",
  cid = "40", // (conversational id) 
  char = "deku";
  const response = await deku[char](q, cid)
  return console.log(response) 
}

main()

FACEBOOK COVER IMAGE GENERATOR

USAGE

const fs = require('fs')
async function generateCover() {
  try {
    const path = "cover.png";
    const name = "Izuku",
      last = "Midoriya",
      phone = "09*********", // or n/a if none
      country = "Japan",
      email = "[email protected]", // or n/a if none
      // IF YOU DON'T KNOW HOW TO GET YOUR OWN FACEBOOK ID JUST MESSAGE ME ON FACEBOOK, BELOW YOU CAN FIND MY CONTACT
      uid = "100055943906136", // facebook id (ex: 100055943906136)
      color = "green"; // default white
    
    const image = await deku.fbcover(name, last, phone, country, email, uid, color)
    fs.writeFileSync(path, image);
    console.log('Image saved in' + path);
  } catch (error) {
    console.error('Error generating image:', error.message);
  }
}
generateCover()

EXAMPLE OUTPUT

FACEBOOK COVER

ANIME PROFILE GENERATOR

USAGE

const fs = require('fs')
async function generateProfile() {
  try {
    const path = "profile.png";
    const signature = "Izuku",
      bgname = "Midoriya", 
      id = "4",
      color = "black";

    const image = await deku.profile(id, bgname, signature, color)
    fs.writeFileSync(path, image);
    console.log('Image saved in' + path);
  } catch (error) {
    console.error('Error generating image:', error.message);
  }
}
generateProfile()

EXAMPLE OUTPUT

FACEBOOK PROFILE

GET CHARACTER ID

async function getgID()  {
  // to get all id
  const charid = await deku.characterID()
  console.log(charid)
  // to get the charid you want
  const id = "4"
  const charid2 = await deku.characterID(id)
  console.log(charid2)
}
getgID()

EXAMPLE OUTPUT

ALL ID

[
  {
    "imgAnime": "https://lh3.googleusercontent.com/--HHFVR4QkTE/YbyGiklcm7I/AAAAAAAA2e8/q5tbb-FB9bs5cdytxpivLp3pWj1AuRHrQCNcBGAsYHQ/s0/boy-1.png",
    "colorBg": "#f8ca3e",
    "dm": "boy"
  },
  {
    "imgAnime": "https://lh3.googleusercontent.com/-ESzEN4e9KCI/Yad386gx7SI/AAAAAAAA1yk/ty7r8jI_DF0-EAE6FeOYghqk1I55OyAmACNcBGAsYHQ/s0/boy-3.png",
    "colorBg": "#3f4a8a",
    "dm": "boy"
  },
  {
    "imgAnime": "https://lh3.googleusercontent.com/-UinqgAaxi5s/YXJ9PzdF8NI/AAAAAAAAyhY/he8Y4PAMuQUZLE-185pq8ImagmHx1gYzACNcBGAsYHQ/s0/boy-4.png",
    "colorBg": "#e2bc5f",
    "dm": "boy"
  },
...
]

GET SPECIFIC ID

{
  "imgAnime": "https://lh3.googleusercontent.com/-bhrRW3VOKRI/YcLnMSNMeKI/AAAAAAAA2tk/7BBW3Z1kktsv_6bGCEir0s_Krn8qDAnegCNcBGAsYHQ/s0/boy-6.png",
  "colorBg": "#6b54c0",
  "dm": "boy"
}

SDXL (LIMITED)

USAGE

const fs = require('fs')
async function sdx() {
  try {
    const path = "generated.png";
    const prompt = "dog",
      // to get style
      // const styles = await deku.sdxl("list")
      // console.log(styles)
      style = "7"; // optional, u can leave it blank ""
    const image = await deku.sdxl(prompt, style)
    fs.writeFileSync(path, image);
    console.log('Image saved in ' + path);
  } catch (error) {
    console.error('Error generating image:', error.message);
  }
}
sdx()

SDXL EXAMPLE OUTPUT

SDXL

TO GET LIST OF STYLE

async function list() {
  const styles = await deku.sdxl("list")
  return console.log(styles)
}
list()

EXAMPLE OUTPUT

{
  "list": {
  "1": "anime",
  "2": "fantasy",
  "3": "pencil",
  "4": "digital",
  "5": "vintage",
  "6": "3d (render)",
  "7": "cyberpunk",
  "8": "manga",
  "9": "realistic",
  "10": "demonic",
  "11": "heavenly",
  "12": "comic",
  "13": "robotic"
  }
}

COVER V2

USAGE

const fs = require('fs')
async function fbcoverv4() {
  const id = 3,
    name = "Joshua",
    subname = "Bloodfallen";
/*  namecolor = "red",
    subcolor = "blue"; (if u want to change the color of the name and subname.) */
  // const img = await deku.fbcoverv4(name, id, subname, namecolor, subcolor);
  const img = await deku.fbcoverv4(name, id, subname);
  const p = "fbcover4.png";
  fs.writeFileSync(p, img)
  console.log("ok")
}
fbcoverv4()

COVER V2 EXAMPLE OUTPUT

Cover

ANIME PROFILE GENERATOR V2

USAGE

const fs = require('fs')
async function avatarv2() {
  const id = 3,
    bgtext = "Joshua",
    signature = "Joshua Sy",
    color = "black";
  const img = await deku.profilev2(id, bgtext, signature, color);
  const p = "profile2.png";
  fs.writeFileSync(p, img)
  console.log("ok")
}
avatarv2()

ANIME PROFILE GENERATOR V2 EXAMPLE OUTPUT

Profile 2

BOT COMMANDS

MIRAI FACEBOOK BOT

AVATAR FBCOVER SDXL

GOAT FACEBOOK BOT

AVATAR FBCOVER SDXL

CONTACT