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

enplex.js

v1.0.2

Published

Enplex is a versatile JavaScript library that simplifies complex development tasks. By providing a unified interface for multiple APIs and services, Enplex empowers developers to build innovative solutions efficiently.

Downloads

193

Readme

Enplex.js: A Versatile JavaScript Library

Enplex.js is a comprehensive JavaScript library designed to streamline various development tasks. By providing a unified interface for multiple APIs and services, Enplex.js empowers developers to build innovative solutions efficiently.

Key Features:

  1. NextChat:

    • Seamlessly interact with advanced AI models like GPT-4 and Claude.
    • Generate text, images, and analyze image content without the need for API keys.
    • Supported models include: gemini, gemini-pro, gpt4, gpt4o, claude-sonnet, claude-haiku, flux, and flux-pro.
  2. Search:

    • Effortlessly search across popular platforms:
      • YouTube
      • Spotify
      • GitHub
    • Retrieve additional content:
      • Cat facts
      • Dog facts
      • Quotes
      • Waifu images
  3. DiscordWH:

    • Send Discord webhook messages with customizable embeds and attachments.
    • Note: This feature may require additional setup or configuration.
  4. Rectify:

    • Build web applications with a minimalist and efficient Express.js-inspired framework.
    • Enjoy a streamlined development experience with features like routing, middleware, error handling, and static file serving.
  5. Xio:

    • Make HTTP requests with ease, supporting:
      • GET, POST, and other HTTP methods
      • Custom headers and timeouts
      • Retry mechanisms for unreliable APIs

Installation:

npm install enplex.js

Usage Examples:

// NextChat
const { nextchat } = require("enplex.js");

(async () => {
  const response = await nextchat.ask("What is the meaning of life?", { model: "gpt4" });
  console.log(response);
})();

// Search
const { Search } = require("enplex.js");

(async () => {
  const youtubeResults = await Search.yt("JavaScript tutorial");
  console.log(youtubeResults);
})();

// Rectify
const { Rectify } = require("enplex.js");

const app = new Rectify();

app.get('/', (req, res) => {
  res.send('Hello, World!');
});

app.listen(3000, () => {
  console.log('Server listening on port 3000');
});

// Xio
const { Xio } = require("enplex.js");

(async () => {
  const response = await Xio.request('https://api.example.com/data', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ name: 'John Doe' })
  });
  console.log(response);
})();

For more detailed usage and advanced features and support, consider joining our discord server.

Discord Banner