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

nayan-server

v2.4.2

Published

Simple create api(Mohammad Nayan)

Downloads

14,549

Readme

Typing SVG

Instalation :

> npm i nayan-server

Available Api

• gpt
• spotify
• img2text
• pintarest
• textpro
• photoxy
• ephoto
• ip2lucation
• removebg
• upscale
• tokencookie (fb)
• fbinfo
• GDLink
• google web search
• text to voice
• faceswap
• bdnews

Usage GPT


const { gpt } = require("nayan-server");

gpt({
    messages: [
        {
            role: "assistant",
            content: "Hello! How are you today?"
        },
        {
            role: "user",
            content: "Hello, my name is Nayan."//your name
        },
        {
            role: "assitant",
            content: "Hello, Nayan! How are you today?"
        }
    ],
    prompt: "Can you repeat my name?",
    model: "GPT-4",
    markdown: false
}, (err, data) => {
    if(err != null){
        console.log(err);
    } else {
        console.log(data);
    }
});

Usage Spotify


const { spotify } = require("nayan-server");

const name = "ghum" //song name

spotify(name).then(data => {
  console.log(data)
 
});

Usage Pintarest

const { pintarest } = require("nayan-server");

const search = "Neymar pic"

pintarest(search).then(data => {
  console.log(data)
 
});

Usage img2text

const { img2text } = require("nayan-server");

img2text("https://i.imgur.com/2TTyRTo.jpeg").then(data => {
  console.log(data)
});

Usage PHOTOXY

const {photoxy} = require("nayan-server");

const url = "url" // photoxy url

const text = "nayan" // your text

  photoxy(url, [text])
.then((data) => console.log(data))
.catch((err) => console.log(err));

Usage Photoxy 2 text

const {photoxy} = require("nayan-server");

const url = "url" // photoxy 2 text input url

const text = "Mohammad" // your text
const text2 = "nayan" // your text

  photoxy(url, [text, text2])
.then((data) => console.log(data))
.catch((err) => console.log(err));

Usaage Textpro

const {textpro} = require("nayan-server");

const url = "url" // textpro url

const text = "nayan" // your text

    textpro(url, [text])
.then((data) => console.log(data))
.catch((err) => console.log(err));

Usage Textpro 2 text

const {textpro} = require("nayan-server");

const url = "url" // textpro 2 text input url

const text = "Mohammad"//your text
const text2 = "nayan"// your text

    textpro(url, [text, text2])
.then((data) => console.log(data))
.catch((err) => console.log(err))

Usaage Ephoto

const {ephoto} = require("nayan-server");

const url = "url" // ephoto url

const text = "nayan" // your text

    ephoto(url, [text])
.then((data) => console.log(data))
.catch((err) => console.log(err));

Usage Ephoto 2 text

const {ephoto} = require("nayan-server");

const url = "url" // ephoto 2 text input url

const text = "Mohammad"//your text
const text2 = "nayan"// your text

    ephoto(url, [text, text2])
.then((data) => console.log(data))
.catch((err) => console.log(err))

Usage Ip2Lucation

const { ip } = require("nayan-server");

const address = "ip" //ip address

ip(address).then(data => {
  console.log(data)

});

Usage removebg

const { removebg } = require("nayan-server");

const url = "url" //pic url

removebg(url).then(data => {
  console.log(data)

});

Usage upscale

const { upscale } = require("nayan-server");

const link = "link" //past pic link
const model = "1"// model 1 or 2
upscale(link, model).then(data => {
  console.log(data)
});

Usage TokenCookie (fb)

const { tokencookie } = require("nayan-server");

const user = "username" // your fb username
const pass = "password" // your fb password

tokencookie(user, pass).then(data => {
  console.log(data)
});

Usage Fbinfo

const { fbinfo } = require("nayan-server");

const token = "token" // your fb access token
const uid = "uid" // fb user uid

fbinfo(token, uid).then(data => {
  console.log(data)
});

Usage GDLink

const {GDLink} = require("nayan-server");

const url = 'url' // Public Google Drive Url

GDLink(url).then(data => {
  console.log(data)

});

Usage Google Web Search

const { gwsearch } = require("nayan-server");

const name = "nayan-server" // Name of the website
const limit = "5" // limit of results (total limit 1-20)
  gwsearch(name, limit).then(data => {
  console.log(data)
});

Usage Imagine

const { imagine } = require("nayan-server");

const promt = "cat, 4k" // your promt
  imagine(promt).then(data => {
  console.log(data)
});

Usage Text To Voice

Name
Male: Bashkar, Pradeep
Female: Nabanita, Tanisha
const { text2voice } = require('nayan-server')
const text = 'আমার নাম নয়ন';
const name = 'Tanisha';
const file = "nayan.mp3"
text2voice(text, name, file).then(data => {
console.log(data)
})

Usage faceswap

const { faceswap } = require("nayan-server");

const sourceUrl = "link" //past source pic link
const targetUrl = "link"// past target pic link
  faceswap(sourceUrl, targetUrl).then(data => {
  console.log(data)
});

Usage Bdnews

const { bdnews } = require('nayan-server');

async function main() {
    try {
        const news = await bdnews();
        console.log(news);
    } catch (error) {
        console.error("Error fetching news news:", error);
    }
}

main();
CONTACT ME🐱

WhatsApp Facebook Messenger Github