New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

globalsprak

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globalsprak - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

110

index.js

@@ -346,2 +346,101 @@ const axios = require('axios');

// XL3 Function
async function xl3(prompt) {
try {
const response = await axios.get(`${API}/api/xl3?prompt=${encodeURIComponent(prompt)}`);
return response.data;
} catch (error) {
console.error('Error fetching XL3 response:', error);
return null;
}
}
// Flux Function
async function flux(prompt) {
try {
const response = await axios.get(`${API}/flux?prompt=${encodeURIComponent(prompt)}`); // Missing '=' fixed
return response.data;
} catch (error) {
console.error('Error fetching Flux response:', error);
return null;
}
}
// Mini DALL-E Function
async function minidalle(prompt) {
try {
const response = await axios.get(`${API}/v1/dalle?prompt=${encodeURIComponent(prompt)}`); // Missing '=' fixed
return response.data;
} catch (error) {
console.error('Error fetching Mini DALL-E response:', error);
return null;
}
}
// DALL-E v2 Function
async function dallev2(prompt) {
try {
const response = await axios.get(`${API}/v2/dalle?prompt=${encodeURIComponent(prompt)}`); // Missing '=' fixed
return response.data;
} catch (error) {
console.error('Error fetching DALL-E v2 response:', error);
return null;
}
}
// DALL-E v3 Function
async function dalle(prompt, prompt_negative, width, height, guidance_scale) {
try {
const response = await axios.get(`${API}/v3/dalle?prompt=${encodeURIComponent(prompt)}&prompt_negative=${encodeURIComponent(prompt_negative)}&width=${encodeURIComponent(width)}&height=${encodeURIComponent(height)}&guidance_scale=${encodeURIComponent(guidance_scale)}`);
return response.data;
} catch (error) {
console.error('Error fetching DALL-E v3 response:', error);
return null;
}
}
// XL Function
async function xl(prompt, prompt_negative, image_style, guidance_scale) {
try {
const response = await axios.get(`${API}/xl/sd?prompt=${encodeURIComponent(prompt)}&prompt_negative=${encodeURIComponent(prompt_negative)}&image_style=${encodeURIComponent(image_style)}&guidance_scale=${encodeURIComponent(guidance_scale)}`);
return response.data;
} catch (error) {
console.error('Error fetching XL response:', error);
return null;
}
}
// Generate Function
async function generate(prompt) {
try {
const response = await axios.get(`${API}/gen?prompt=${encodeURIComponent(prompt)}`);
return response.data;
} catch (error) {
console.error('Error fetching Generate response:', error);
return null;
}
}
// PixArt v2 Function
async function pixartv2(prompt, prompt_negative, image_style, width, height, lcm_inference_steps) {
try {
const response = await axios.get(`${API}/v2/pixart?prompt=${encodeURIComponent(prompt)}&prompt_negative=${encodeURIComponent(prompt_negative)}&image_style=${encodeURIComponent(image_style)}&width=${encodeURIComponent(width)}&height=${encodeURIComponent(height)}&lcm_inference_steps=${encodeURIComponent(lcm_inference_steps)}`);
return response.data;
} catch (error) {
console.error('Error fetching PixArt v2 response:', error);
return null;
}
}
// PixArt Function
async function pixart(prompt, prompt_negative, image_style, width, height, sampler, dpm_guidance_scale, dpm_inference_steps, sa_guidance_scale, sa_inference_steps) {
try {
const response = await axios.get(`${API}/v1/pixart?prompt=${encodeURIComponent(prompt)}&prompt_negative=${encodeURIComponent(prompt_negative)}&image_style=${encodeURIComponent(image_style)}&width=${encodeURIComponent(width)}&height=${encodeURIComponent(height)}&sampler=${encodeURIComponent(sampler)}&dpm_guidance_scale=${encodeURIComponent(dpm_guidance_scale)}&dpm_inference_steps=${encodeURIComponent(dpm_inference_steps)}&sa_guidance_scale=${encodeURIComponent(sa_guidance_scale)}&sa_inference_steps=${encodeURIComponent(sa_inference_steps)}`);
return response.data;
} catch (error) {
console.error('Error fetching PixArt response:', error);
return null;
}
}
// Exporting All Functions

@@ -379,3 +478,12 @@ module.exports = {

waifusearch,
waifu
waifu,
xl3,
dalle,
flux,
minidalle,
dallev2,
xl,
generate,
pixart,
pixartv2,
};

10

package.json
{
"name": "globalsprak",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -30,5 +30,9 @@ "main": "index.js",

"movieinfo",
"instadl"
"instadl",
"dalle",
"xl",
"xl3",
"GlobalSprak"
],
"author": "Aryan",
"author": "Aryan Chauhan",
"license": "ISC",

@@ -35,0 +39,0 @@ "dependencies": {

@@ -49,4 +49,4 @@ # GLOBALSPRAK

### 1 AI MODELS
### a. GPT
### AI MODELS
### GPT

@@ -67,3 +67,3 @@ Get a response from the GPT model based on your prompt.

### b. ChatGPT
### ChatGPT

@@ -84,5 +84,223 @@ - **Function**: `chatgpt(prompt)`

```
### XL3
### c. GPTWeb
- **Function**: `xl3(prompt)`
- **Description**: Fetches a response from the XL3 API using the provided prompt.
- **Example**:
```javascript
const { xl3 } = require('globalsprak');
async function main() {
const prompt = "Your XL3 prompt";
const response = await xl3(prompt);
console.log("XL3 Response:", response);
}
main();
```
---
### Flux
- **Function**: `flux(prompt)`
- **Description**: Fetches a response from the Flux API using the provided prompt.
- **Example**:
```javascript
const { flux } = require('globalsprak');
async function main() {
const prompt = "Your Flux prompt";
const response = await flux(prompt);
console.log("Flux Response:", response);
}
main();
```
---
### Mini DALL-E
- **Function**: `minidalle(prompt)`
- **Description**: Fetches a response from the Mini DALL-E API using the provided prompt.
- **Example**:
```javascript
const { minidalle } = require('globalsprak');
async function main() {
const prompt = "Your Mini DALL-E prompt";
const response = await minidalle(prompt);
console.log("Mini DALL-E Response:", response);
}
main();
```
---
### DALL-E v2
- **Function**: `dallev2(prompt)`
- **Description**: Fetches a response from the DALL-E v2 API using the provided prompt.
- **Example**:
```javascript
const { dallev2 } = require('globalsprak');
async function main() {
const prompt = "Your DALL-E v2 prompt";
const response = await dallev2(prompt);
console.log("DALL-E v2 Response:", response);
}
main();
```
---
### DALL-E v3
- **Function**: `dalle(prompt, prompt_negative, width, height, guidance_scale)`
- **Description**: Fetches a response from the DALL-E v3 API with additional parameters like negative prompt, image dimensions, and guidance scale.
- **Example**:
```javascript
const { dalle } = require('globalsprak');
async function main() {
const prompt = "Your DALL-E v3 prompt";
const prompt_negative = "Negative prompt";
const width = 512;
const height = 512;
const guidance_scale = 7.5;
const response = await dalle(prompt, prompt_negative, width, height, guidance_scale);
console.log("DALL-E v3 Response:", response);
}
main();
```
---
### XL
- **Function**: `xl(prompt, prompt_negative, image_style, guidance_scale)`
- **Description**: Fetches a response from the XL API for image generation with specific image style and guidance scale.
- **Example**:
```javascript
const { xl } = require('globalsprak');
async function main() {
const prompt = "Your XL prompt";
const prompt_negative = "Negative prompt";
const image_style = "artistic";
const guidance_scale = 7.5;
const response = await xl(prompt, prompt_negative, image_style, guidance_scale);
console.log("XL Response:", response);
}
main();
```
---
### Generate
- **Function**: `generate(prompt)`
- **Description**: Fetches a response from the text generation API using the provided prompt.
- **Example**:
```javascript
const { generate } = require('globalsprak');
async function main() {
const prompt = "Your text prompt";
const response = await generate(prompt);
console.log("Generate Response:", response);
}
main();
```
---
### PixArt v2
- **Function**: `pixartv2(prompt, prompt_negative, image_style, width, height, lcm_inference_steps)`
- **Description**: Fetches a response from PixArt v2 API using the provided parameters for detailed image control.
- **Example**:
```javascript
const { pixartv2 } = require('globalsprak');
async function main() {
const prompt = "Your PixArt v2 prompt";
const prompt_negative = "Negative prompt";
const image_style = "photorealistic";
const width = 512;
const height = 512;
const lcm_inference_steps = 50;
const response = await pixartv2(prompt, prompt_negative, image_style, width, height, lcm_inference_steps);
console.log("PixArt v2 Response:", response);
}
main();
```
## Image Styles
Choose from the following available image types:
- **(No style)**
- **Cinematic**
- **Photographic**
- **Anime**
- **Manga**
- **Digital Art**
- **Pixel Art**
- **Fantasy Art**
- **Neonpunk**
- **3D Model**
### PixArt
- **Function**: `pixart(prompt, prompt_negative, image_style, width, height, sampler, dpm_guidance_scale, dpm_inference_steps, sa_guidance_scale, sa_inference_steps)`
- **Description**: Fetches a response from the PixArt API with extended parameters for precise image generation.
- **Example**:
```javascript
const { pixart } = require('globalsprak');
async function main() {
const prompt = "Your PixArt prompt";
const prompt_negative = "Negative prompt";
const image_style = "artistic";
const width = 512;
const height = 512;
const sampler = "euler_a";
const dpm_guidance_scale = 7.5;
const dpm_inference_steps = 50;
const sa_guidance_scale = 5.0;
const sa_inference_steps = 25;
const response = await pixart(prompt, prompt_negative, image_style, width, height, sampler, dpm_guidance_scale, dpm_inference_steps, sa_guidance_scale, sa_inference_steps);
console.log("PixArt Response:", response);
}
main();
```
## Image Styles
Choose from the following available image types:
- **(No style)**
- **Cinematic**
- **Photographic**
- **Anime**
- **Manga**
- **Digital Art**
- **Pixel Art**
- **Fantasy Art**
- **Neonpunk**
- **3D Model**
### GPTWeb
- **Function**: `gptweb(prompt)`

@@ -102,3 +320,3 @@ - **Description**: Retrieves a web-enhanced response from the GPT model based on the provided prompt.

```
### 2. EMI
### EMI

@@ -118,3 +336,3 @@ Generate image's using EMI Model.

```
### 2 A. BING
### BING

@@ -136,3 +354,3 @@ Generate image's using EMI Model.

### 3. Prodia
### Prodia

@@ -154,4 +372,75 @@ Generate images using a text prompt and a model.

### 4. Llama
## Models
### List of Models
Please choose Prodia models by number (e.g., 1, 2, 3, etc.).
- **3Guofeng3_v34.safetensors** [50f420de]
- **absolutereality_V16.safetensors** [37db0fc3]
- **absolutereality_v181.safetensors** [3d9d4d2b]
- **amIReal_V41.safetensors** [0a8a2e61]
- **analog-diffusion-1.0.ckpt** [9ca13f02]
- **anythingv3_0-pruned.ckpt** [2700c435]
- **anything-v4.5-pruned.ckpt** [65745d25]
- **anythingV5_PrtRE.safetensors** [893e49b9]
- **AOM3A3_orangemixs.safetensors** [9600da17]
- **blazing_drive_v10g.safetensors** [ca1c1eab]
- **breakdomain_I2428.safetensors** [43cc7d2f]
- **breakdomain_M2150.safetensors** [15f7afca]
- **cetusMix_Version35.safetensors** [de2f2560]
- **childrensStories_v13D.safetensors** [9dfaabcb]
- **childrensStories_v1SemiReal.safetensors** [a1c56dbb]
- **childrensStories_v1ToonAnime.safetensors** [2ec7b88b]
- **Counterfeit_v30.safetensors** [9e2a8f19]
- **cuteyukimixAdorable_midchapter3.safetensors** [04bdffe6]
- **cyberrealistic_v33.safetensors** [82b0d085]
- **dalcefo_v4.safetensors** [425952fe]
- **deliberate_v2.safetensors** [10ec4b29]
- **deliberate_v3.safetensors** [afd9d2d4]
- **dreamlike-anime-1.0.safetensors** [4520e090]
- **dreamlike-diffusion-1.0.safetensors** [5c9fd6e0]
- **dreamlike-photoreal-2.0.safetensors** [fdcf65e7]
- **dreamshaper_6BakedVae.safetensors** [114c8abb]
- **dreamshaper_7.safetensors** [5cf5ae06]
- **dreamshaper_8.safetensors** [9d40847d]
- **edgeOfRealism_eorV20.safetensors** [3ed5de15]
- **EimisAnimeDiffusion_V1.ckpt** [4f828a15]
- **elldreths-vivid-mix.safetensors** [342d9d26]
- **epicphotogasm_xPlusPlus.safetensors** [1a8f6d35]
- **epicrealism_naturalSinRC1VAE.safetensors** [90a4c676]
- **epicrealism_pureEvolutionV3.safetensors** [42c8440c]
- **ICantBelieveItsNotPhotography_seco.safetensors** [4e7a3dfd]
- **indigoFurryMix_v75Hybrid.safetensors** [91208cbb]
- **juggernaut_aftermath.safetensors** [5e20c455]
- **lofi_v4.safetensors** [ccc204d6]
- **lyriel_v16.safetensors** [68fceea2]
- **majicmixRealistic_v4.safetensors** [29d0de58]
- **mechamix_v10.safetensors** [ee685731]
- **meinamix_meinaV9.safetensors** [2ec66ab0]
- **meinamix_meinaV11.safetensors** [b56ce717]
- **neverendingDream_v122.safetensors** [f964ceeb]
- **openjourney_V4.ckpt** [ca2f377f]
- **pastelMixStylizedAnime_pruned_fp16.safetensors** [793a26e8]
- **portraitplus_V1.0.safetensors** [1400e684]
- **protogenx34.safetensors** [5896f8d5]
- **Realistic_Vision_V1.4-pruned-fp16.safetensors** [8d21810b]
- **Realistic_Vision_V2.0.safetensors** [79587710]
- **Realistic_Vision_V4.0.safetensors** [29a7afaa]
- **Realistic_Vision_V5.0.safetensors** [614d1063]
- **redshift_diffusion-V10.safetensors** [1400e684]
- **revAnimated_v122.safetensors** [3f4fefd9]
- **rundiffusionFX25D_v10.safetensors** [cd12b0ee]
- **rundiffusionFX_v10.safetensors** [cd4e694d]
- **sdv1_4.ckpt** [7460a6fa]
- **v1-5-pruned-emaonly.safetensors** [d7049739]
- **v1-5-inpainting.safetensors** [21c7ab71]
- **shoninsBeautiful_v10.safetensors** [25d8c546]
- **theallys-mix-ii-churned.safetensors** [5d9225a4]
- **timeless-1.0.ckpt** [7c4971d4]
- **toonyou_beta6.safetensors** [980f6b15]
### Llama
Get a response from the Llama AI model.

@@ -171,3 +460,3 @@

### 5. Mixtral
### Mixtral

@@ -188,7 +477,7 @@ Get a response from the Mixtral AI model.

### 6. Coral
### Coral
Interact with Coral or reset conversation context.
#### a. Regular Chat with Coral
#### Regular Chat with Coral

@@ -207,3 +496,3 @@ ```javascript

#### b. Chat with Coral using User ID
#### Chat with Coral using User ID

@@ -223,3 +512,3 @@ ```javascript

#### c. Reset Coral Conversation
#### Reset Coral Conversation

@@ -238,5 +527,5 @@ ```javascript

### 7. Download Tools
### Download Tools
#### a. Download from Twitter
#### Download from Twitter

@@ -255,3 +544,3 @@ ```javascript

#### b. Download from Facebook
#### Download from Facebook

@@ -270,3 +559,3 @@ ```javascript

#### c. Download from TikTok
#### Download from TikTok

@@ -285,3 +574,3 @@ ```javascript

#### d. Download from Google Drive
#### Download from Google Drive

@@ -300,3 +589,3 @@ ```javascript

#### e. Download from Instagram
#### Download from Instagram

@@ -315,3 +604,3 @@ ```javascript

#### f. YouTube Download
#### YouTube Download

@@ -329,3 +618,3 @@ ```javascript

```
### g. Spotify Download
### Spotify Download

@@ -346,3 +635,3 @@ - **Function**: `spdl(url)`

```
### h. AllDL
### AllDL

@@ -363,5 +652,5 @@ - **Function**: `alldl(url)`

```
### 8. Search Utilities
### Search Utilities
#### a. Pinterest Search
#### Pinterest Search

@@ -381,3 +670,3 @@ ```javascript

#### b. Spotify Search
#### Spotify Search

@@ -396,3 +685,3 @@ ```javascript

#### c. YouTube Search
#### YouTube Search

@@ -412,3 +701,3 @@ ```javascript

#### d. TikTok Search
#### TikTok Search
- **Function**: `tiksearch(query)`

@@ -429,3 +718,3 @@ - **Description**: Search for TikTok videos based on a query.

### e. Wallpaper Search
### Wallpaper Search

@@ -448,3 +737,3 @@ - **Function**: `wallpaper(query, count)`

### f. Shoti (TikTok Download)
### Shoti (TikTok Download)

@@ -464,3 +753,3 @@ - **Function**: `shoti()`

```
### g. Pexels Search
### Pexels Search

@@ -485,5 +774,5 @@ - **Function**: `pxsearch(query, count)`

```
### 9. Waifu Search
### Waifu Search
#### a. Specific Waifu Search
#### Specific Waifu Search

@@ -502,3 +791,3 @@ ```javascript

#### b. Random Waifu
#### Random Waifu

@@ -516,5 +805,5 @@ ```javascript

### 10. Movie Information Categories
### Movie Information Categories
#### a. Movie Info
#### Movie Info
- **Function**: `movieinfo(name)`

@@ -535,3 +824,3 @@ - **Description**: Get detailed information about a movie by its title.

#### b. Movie Info Version 2
#### Movie Info Version 2
- **Function**: `movieinfov2(id)`

@@ -551,3 +840,3 @@ - **Description**: Get information about a movie using its ID.

```
### d. Country Information
### Country Information

@@ -554,0 +843,0 @@ - **Function**: `countryinfo(name)`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc