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

luxurylabs-api

v1.0.4-beta

Published

The authorised npm package for the LuxuryLabs API.

Downloads

7

Readme

LuxuryLabs NPM Package

LuxuryLabs is an npm package that provides a set of functionalities related to AI, image generation, content information retrieval, and more.

Installation

npm install luxurylabs-api

Usage

const LuxuryLabs = require('luxurylabs-api');
const luxuryLabs = new LuxuryLabs();

Endpoints

chatWithGPT3_5

Generates a chat response using the GPT-3.5 model.

const response = await luxuryLabs.chatWithGPT3_5({ prompt: 'Hello, GPT-3.5!', content: 'Personality and information for the AI' });
  • Required Parameters:

    • prompt: The text prompt for the chat.
  • Optional Parameters:

    • content: Additional content for the chat.

imageGenerationProdia

Generates an image using the Prodia AI model.

const response = await luxuryLabs.imageGenerationProdia({ query: 'Mountain landscape' });
  • Required Parameters:
    • query: The image generation query.

imageGenerationQuantumCanvas

Generates an image using the QuantumCanvas AI model.

const response = await luxuryLabs.imageGenerationQuantumCanvas({ query: 'Abstract art' });
  • Required Parameters:
    • query: The image generation query.

imageGenerationFusionBrain

Generates an image using the FusionBrain AI model.

const response = await luxuryLabs.imageGenerationFusionBrain({ query: 'Neural network' });
  • Required Parameters:
    • query: The image generation query.

nsfwDetector

Detects NSFW content in an image.

const response = await luxuryLabs.nsfwDetector({
  url: 'https://example.com/image.jpg',
  sexyThreshold: 40,
  pornThreshold: 20,
  hentaiThreshold: 20,
  checks: "sexy, porn",
});
  • Required Parameters:

    • url: The URL of the image.
  • Optional Parameters:

    • sexyThreshold: Threshold for classifying content as sexy (default: 45).
    • pornThreshold: Threshold for classifying content as pornographic (default: 20).
    • hentaiThreshold: Threshold for classifying content as hentai (default: 20).
    • checks: An array of checks to perform (default: all).

getDiscordUser

Retrieves information about a Discord user.

const response = await luxuryLabs.getDiscordUser({ userId: '123456789012345678' });
  • Required Parameters:
    • userId: The Discord user ID.

tikTokVideoInformation

Retrieves information about a TikTok video.

const response = await luxuryLabs.tikTokVideoInformation({ url: 'https://www.tiktok.com/@username/video/1234567890123456789' });
  • Required Parameters:
    • url: The URL of the TikTok video.

robloxUserInfo

Retrieves information about a Roblox user.

const response = await luxuryLabs.robloxUserInfo({ username: 'exampleUsername' });
  • Required Parameters:
    • username: The Roblox username.

minecraftUserInfo

Retrieves information about a Minecraft user.

const response = await luxuryLabs.minecraftUserInfo({ username: 'exampleUsername' });
  • Required Parameters:
    • username: The Minecraft username.

youtubeVideoDownload

Downloads a YouTube video.

const response = await luxuryLabs.youtubeVideoDownload({ videoUrl: 'https://www.youtube.com/watch?v=abcdefghijk' });
  • Required Parameters:
    • videoUrl: The URL of the YouTube video.

spotifyTrackSearch

Searches for a track on Spotify.

const response = await luxuryLabs.spotifyTrackSearch({ trackName: 'Example Track' });
  • Required Parameters:
    • trackName: The name of the track.

randomQuestions

Generates random questions.

const response = await luxuryLabs.randomQuestions();

randomFacts

Generates random facts.

const response = await luxuryLabs.randomFacts();

neko

Get neko images.

const response = await luxuryLabs.neko();

textToSpeech

Converts text to speech.

await luxuryLabs.textToSpeech({
  text: 'Hello, this is a test.',
  lang: 'en',
  slow: false,
  outputFile: 'output.mp3',
});
  • Required Parameters:

    • text: The text to convert.
    • outputFile: The path to save the output audio file.
  • Optional Parameters:

    • lang: The language of the text (default: 'en').
    • slow: Whether to generate speech slowly (default: false).

mergeImages

Merges two images.

const response = await luxuryLabs.mergeImages({
  imageUrl1: 'https://example.com/image1.jpg',
  imageUrl2: 'https://example.com/image2.jpg',
});
  • Required Parameters:
    • imageUrl1: The URL of the first image.
    • imageUrl2: The URL of the second image.