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:
-
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.
-
Search:
- Effortlessly search across popular platforms:
- YouTube
- Spotify
- GitHub
- Retrieve additional content:
- Cat facts
- Dog facts
- Quotes
- Waifu images
- Effortlessly search across popular platforms:
-
DiscordWH:
- Send Discord webhook messages with customizable embeds and attachments.
- Note: This feature may require additional setup or configuration.
-
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.
-
Xio:
- Make HTTP requests with ease, supporting:
- GET, POST, and other HTTP methods
- Custom headers and timeouts
- Retry mechanisms for unreliable APIs
- Make HTTP requests with ease, supporting:
-
Exe:
- Execute js codes with ease
- safer than
eval();
Installation:
npm install enplex.js
Usage Examples:
const { nextchat, search, rectify, xio, exe } = require("enplex.js");
// import enplex from "enplex.js/esm";
// const { nextchat, search, rectify, xio, exe } = enplex;
// NextChat
(async () => {
const response = await nextchat.ask("What is the meaning of life?", { model: "gpt4" });
console.log(response);
})();
// Search
(async () => {
const youtubeResults = await search.yt("JavaScript tutorial");
console.log(youtubeResults);
})();
// Rectify
const app = new rectify();
app.get('/', (req, res) => {
res.send('Hello, World!');
});
app.listen(3000, () => {
console.log('Server listening on port 3000');
});
// Xio
(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);
})();
// Exe
const code = "console.log('hello fron enplex.js')";
exe.run(code);
For more detailed usage and advanced features and support, consider joining our discord server.