theia-suite
v0.0.4
Published
A large-scale web scraping library for Node.js.
Downloads
195
Maintainers
Keywords
Readme
Theia Suite - The Powerfull Scraper

Overview
Theia-Suite is an open-source Node.js library created solely by Reyhan6610 for large-scale website scraping, offering 97 features that enable automated, fast, structured data extraction and seamless integration for a wide range of needs.
How To Install
Install in package.json:
"dependencies": {
"theia-suite": "latest"
}or install in terminal:
npm install theia-suite@latestThen import the default function in your code:
// type cjs
const { ReyhanDatabased, fluxImage, generateMagicArt, generateFluxImage, unrestrictedai, aiart, openAI, chatWithMetaAI, Copilot, aichat, AiFelo, AiGeminiLite, ExaAIChat, RakaAi, muslimAi, searchDuckDuckGo, kbbiv2, KBBI, searchPinterest, searchGoogleImages, searchMCPEDL, searchSoundCloud, searchBrave, searchMyInstants, searchYouTube, searchytAudio, searchTwitter, searchSong, searchTiktoks, removeBackground, sendNGL, getHtml, Tts, generateFakeData, Subdomain, checkDataLeak, crawlWebsite, translateText, UrlToQr, shortenUrl, shortenUrlv2, AdvancedIPTracker, UpImgTrial, uploadToPomf, upVidey, ssWebsite, HdImages, downloadPinterest, downloadSpotify, downloadSfile, downloadSosmed, MediaFire, ytCommunitydl, downloadLahelu, douyinDownloader, downloadFacebook, downloadRednote, downloadSnackvideo, downloadTiktok, downloadX, downloadInstagram, downloadInstagramV2, downloadGdrive, downloadCapcut, stalkInstagram, stalkTwiter, stalkYoutube, stalkTiktok, phoneLookup, stalkGithub, stalkPinterest, stalkRoblox, liveFunFact, convertToAlay, tebakBenderaGame, tebakGambarGame, cakLontongGame, tebakKimiaGame, susunKataGame, family100Game, randomQuote, Textmotivasi, searchQuotes, TruthOrdare, cekKhodam, uploadUguu, RandomStickers, iphoneQuotes, CreateQuoted, writingPaper, generateBrat, generateKTP, createCircleImage, createReviewImage, EmojiMix, EmojiGif, fakeXnxx, UstadQna } = require("theia-suite")// For unzip database
ReyhanDatabased();Key Features
| Category | Main Features | | :------- | :------------ | | 🤖 AI | ChatGPT, Meta AI, Gemini, Image Generation, TTS | | 🔍 SEARCH | Google, YouTube, Twitter, TikTok, SoundCloud | | 🛠️ TOOLS | BG Removal, URL Shortener, QR Code, IP Tracker | | 📥 DOWNLOADER | Instagram, TikTok, Twitter, YouTube, Spotify | | 🕵️ STALK | Instagram, Twitter, TikTok, GitHub, Phone Lookup | | 🎮 FUNNY | Games, Quotes, Truth or Dare, Motivasi | | 🎨 MAKER | Sticker, Quote Images, Fake KTP, Emoji Mix |
More features and improvements will be added in the future.
💡 Use Case Examples
AI for Generated Image 😝👇
const example = async () => {
try {
const imageUrl = await generateFluxImage('a beautiful landscape');
console.log('You can access the generated image at:', imageUrl);
} catch (error) {
console.error('Failed to generate image:', error.message);
}
};const example = async () => {
try {
const imageUrl = await fluxImage("a beautiful landscape");
if (imageUrl) {
console.log("Final image URL:", imageUrl);
} else {
console.log("Failed to generate image");
}
} catch (error) {
console.error("Example usage failed:", error.message);
}
}const example = async () => {
try {
const result = await generateMagicArt("portrait of a wizard with a long beard")
if (result.status) {
console.log("Image size:", result.data.image.length)
} else {
console.log("Error:", result.error)
}
} catch (error) {
console.log("Error:", error.message)
}
}const example = async () => {
try {
const result = await unrestrictedai('girl wearing glasses');
console.log(result);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await aiart('beautiful landscape with mountains and lake');
console.log(result);
} catch (error) {
console.log("Error:", error.message);
}
};AI Chat Bot 😝👇
const example = async () => {
try {
const prompt = 'siapa presiden pertama di dunia?';
const result = await openAI(prompt);
console.log('Permintaan selesai!');
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const message = "Halo, kenalkan nama saya reyhan namau siapa?";
const response = await chatWithMetaAI(message);
console.log('Respons AI:', response);
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const copilot = new Copilot();
const resp = await copilot.chat('hai! carikan berita terbaru yang ada di Indonesia');
console.log(resp.text);
resp.citations.forEach((citation, index) => {
console.log(`${index + 1}. ${citation.title}`);
console.log(` URL: ${citation.url}`);
});
} catch (error) {
console.error('Error:', error.message);
}
}const example = async () => {
try {
const response = await aichat('Halo! Bisa jelaskan apa itu AI?', 'claude');
console.log('Respons akhir:', response);
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const result = await AiFelo("What is JavaScript?");
console.log("Answer:", result.answer);
console.log("Sources:", result.source.length);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await AiGeminiLite("What is artificial intelligence?");
if (result.status) {
console.log(result.data.parts[0].text);
} else {
console.log("Error:", result.error);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const chat = new ExaAIChat();
const result = await chat.sendMessage("Hello, how are you?");
console.log(result);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await RakaAi("Apa itu JavaScript?");
console.log(result);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await muslimAi("apa itu sholat?");
console.log("Hasil:", result);
} catch (error) {
console.error("Error:", error.message);
}
};const example = async () => {
try {
const username = 'google';
const simplifiedProfile = await stalkInstagram(username);
console.log('Username:', simplifiedProfile.username);
console.log('Nama:', simplifiedProfile.full_name);
console.log('Followers:', simplifiedProfile.followers_count);
console.log('Following:', simplifiedProfile.following_count);
console.log('Posts:', simplifiedProfile.posts_count);
console.log('Verified:', simplifiedProfile.is_verified);
console.log('Biography:', simplifiedProfile.biography);
console.log('Profile Pic URL:', simplifiedProfile.profile_pic_url);
} catch (error) {
console.log('Error:', error.message);
}
};const example = async () => {
try {
const username = 'jokowidodo';
const cleanData = await stalkTwiter(username);
console.log('Username:', cleanData.username);
console.log('Nama:', cleanData.name);
console.log('Followers:', cleanData.stats.followers);
console.log('Following:', cleanData.stats.following);
console.log('Tweets:', cleanData.stats.tweets);
console.log('Verified:', cleanData.verified);
console.log('Description:', cleanData.description);
console.log('Location:', cleanData.location);
console.log('Profile Image:', cleanData.profile.image);
} catch (error) {
console.log('Error:', error.message);
}
};const example = async () => {
try {
const username = 'youtube';
const result = await stalkYoutube(username);
console.log('Data channel:', JSON.stringify(result.channel, null, 2));
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const username = 'mrbeast';
const userInfo = await stalkTiktok(username);
console.log('Username:', userInfo.user?.uniqueId);
console.log('Nama:', userInfo.user?.nickname);
console.log('Followers:', userInfo.stats?.followerCount);
console.log('Following:', userInfo.stats?.followingCount);
console.log('Likes:', userInfo.stats?.heartCount);
console.log('Video Count:', userInfo.stats?.videoCount);
console.log('Verified:', userInfo.user?.verified);
console.log('Bio:', userInfo.user?.signature);
} catch (error) {
console.log('Error:', error.message);
}
};const example = () => {
const testNumbers = [
"923096501746",
"628123456789"
];
testNumbers.forEach((number, index) => {
console.log(`\nExample ${index + 1}: ${number}`);
const result = phoneLookup(number);
console.log(` Valid: ${result.valid}`);
console.log(` Possible: ${result.possible}`);
console.log(` Type: ${result.type}`);
console.log(` Region: ${result.region}`);
console.log(` Country Code: ${result.countryCode}`);
console.log(` E164: ${result.e164}`);
console.log(` International: ${result.international}`);
console.log(` National: ${result.national}`);
console.log(` Mobile: ${result.isMobile}`);
console.log(` Fixed Line: ${result.isFixedLine}`);
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const user = "google";
console.log(`Stalking user: ${user}`);
const result = await stalkGithub(user);
console.log(`Username: ${result.username}`);
console.log(`Name: ${result.nickname}`);
console.log(`Bio: ${result.bio}`);
console.log(`Profile URL: ${result.url}`);
console.log(`Followers: ${result.followers}`);
console.log(`Following: ${result.following}`);
console.log(`Public Repos: ${result.public_repo}`);
console.log(`Location: ${result.location}`);
console.log(`Created: ${result.created_at}`);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const username = "dims";
console.log(`Stalking Pinterest user: ${username}`);
const result = await stalkPinterest(username);
console.log(`Username: ${result.username}`);
console.log(`Full Name: ${result.full_name}`);
console.log(`Bio: ${result.bio}`);
console.log(`Profile URL: ${result.profile_url}`);
console.log(`Followers: ${result.stats.followers}`);
console.log(`Following: ${result.stats.following}`);
console.log(`Pins: ${result.stats.pins}`);
console.log(`Boards: ${result.stats.boards}`);
console.log(`Location: ${result.location}`);
console.log(`Verified: ${result.is_verified}`);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const username = "Roblox";
const result = await stalkRoblox(username);
console.log(`User ID: ${result.userId}`);
console.log(`Username: ${result.basic.name}`);
console.log(`Display Name: ${result.basic.displayName}`);
console.log(`Created: ${result.basic.created}`);
console.log(`Description: ${result.basic.description}`);
console.log(`Friends: ${result.social.friends?.count || 0}`);
console.log(`Followers: ${result.social.followers?.count || 0}`);
console.log(`Following: ${result.social.following?.count || 0}`);
console.log(`Status: ${result.status || "No status"}`);
if (result.avatar && result.avatar.headshot && result.avatar.headshot.data && result.avatar.headshot.data[0]) {
console.log(`Headshot URL: ${result.avatar.headshot.data[0].imageUrl}`);
}
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = async () => {
try {
const query = "JavaScript programming";
const results = await searchDuckDuckGo(query);
results.forEach((result, index) => {
console.log(`${index + 1}. ${result.title}`);
console.log(result.url);
console.log(result.snippet.substring(0, 100)}...);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const kbbi = new KBBI();
const result = await kbbi.search('komputer');
console.log('Kata:', JSON.stringify(result, null, 2));
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const keyword = "penis";
const result = await searchKBBI(keyword);
if (result.lemma) {
console.log('Kata:', result.lemma);
console.log('Arti:', result.meanings);
} else {
console.log('Tidak ditemukan');
}
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "shaders";
const results = await searchMCPEDL(query, 5);
results.forEach((result, index) => {
console.log(`${index + 1}. ${result.title}`);
console.log(` Link: ${result.link}`);
console.log(` Rating: ${result.rating}`);
console.log(` Image: ${result.image}\n\n`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "lofi";
const results = await searchSoundCloud(query);
results.slice(0, 5).forEach((track, index) => {
console.log(`${index + 1}. ${track.title} - ${track.user}`);
console.log(` URL: ${track.permalink_url}\n`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "laugh";
const results = await searchMyInstants(query);
results.forEach((sound, index) => {
console.log(`Name: ${sound.name}`);
console.log(`Url: ${sound.url}`);
if (index < results.length - 1) {
console.log(''); // Baris kosong antara hasil
}
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "JavaScript tutorial";
const results = await searchYouTube(query);
results.slice(0, 3).forEach((video, index) => {
console.log(`${index + 1}. ${video.title}`);
console.log(` Channel: ${video.author.name}`);
console.log(` Durasi: ${video.duration.timestamp}`);
console.log(` Views: ${video.views}`);
console.log(` URL: ${video.url}`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "JavaScript";
const tweets = await searchTwitter(query);
tweets.slice(0, 5).forEach((tweet, index) => {
console.log(`\n--- Tweet ${index + 1} ---`);
console.log(`Username: @${tweet.username}`);
console.log(`Pesan: ${tweet.message}`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const lyric = 'I will always love you';
console.log('Mencari lagu dengan lirik...');
const result = await searchSong.detect(lyric);
console.log('Pencarian selesai!');
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const result = await searchTiktoks("trending");
console.log(`Ditemukan ${result.length} video:`);
result.forEach((video, index) => {
console.log(`\n${index + 1}. ${video.title}`);
console.log(` Author: ${video.author?.nickname || 'Unknown'}`);
console.log(` Duration: ${video.duration} detik`);
console.log(` Views: ${video.play_count}`);
});
} catch (error) {
console.error("Error:", error.message);
}
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const query = "nature";
const results = await searchPinterest(query, "image");
results.slice(0, 3).forEach((result, index) => {
console.log(`${index + 1}. ${result.grid_title}`);
console.log(` URL: ${result.image_url}`);
});
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = async () => {
try {
const query = "cat";
const results = await searchGoogleImages(query);
results.slice(0, 5).forEach((result, index) => {
console.log(`${index + 1}. ${result.url}`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "JavaScript programming";
const results = await searchBrave(query);
if (results.length === 0) {
console.log('not found');
return;
}
results.slice(0, 5).forEach((result, index) => {
console.log(`${index + 1}. ${result.title}`);
console.log(` Deskripsi: ${result.description}...`);
console.log(` URL: ${result.url}\n`);
});
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const query = "lofi music";
const result = await searchytAudio(query);
console.log(`Judul: ${result.title}`);
console.log(`Channel: ${result.channel}`);
console.log(`Durasi: ${result.duration}`);
console.log(`Views: ${result.views.toLocaleString()}`);
console.log(`Thumbnail: ${result.thumbnail}`);
console.log(`URL Video: ${result.url}`);
console.log(`URL Audio: ${result.audioUrl}`);
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const imageBuffer = fs.readFileSync("gambar.jpg");
resultUrl = await removeBackground(imageBuffer);
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const link = 'https://ngl.link/username';
const message = 'Halo, ini test NGL!';
console.log('=== Contoh NGL ===');
const result = await sendNGL(link, message, 1);
console.log('Berhasil:', result);
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const html = await getHtml('https://www.example.com');
console.log(html);
fs.writeFileSync('hasil.html', html);
} catch (error) {
console.log(error);
}
}const example = async () => {
try {
const text = "halo apa kabar";
const voice = "jv-ID-DimasNeural";
const rate = "0%";
const pitch = "0Hz";
const volume = "0%";
const audioBuffer = await Tts(text, voice, rate, pitch, volume);
console.log(audioBuffer);
console.log("Ukuran buffer:", audioBuffer.length, "bytes");
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const domain = "google.com";
const result = await Subdomain(domain);
console.log("Found subdomains:");
result.forEach((subdomain, index) => {
console.log(`${index + 1}. ${subdomain}`);
});
console.log(`Total: ${result.length} subdomains found`);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const email = "[email protected]";
const result = await checkDataLeak(email);
console.log("Hasil pemeriksaan data leak:");
console.log("Email:", result.email);
console.log("Jumlah leak:", result.leak_count);
console.log("Detail leaks:");
result.leaks.forEach((leak, index) => {
console.log(`${index + 1}. ${leak.service}`);
console.log(" Tanggal:", leak.details.date);
console.log(" Data bocor:", leak.details.leaked_data);
console.log(" Total records:", leak.details.total_records);
console.log(" Link:", leak.breach_link);
});
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const baseUrl = "https://dpr.com";
const result = await crawlWebsite(baseUrl);
console.log('INTERNAL LINKS:');
result.internal.forEach(link => console.log(link));
console.log('EXTERNAL LINKS:');
result.external.forEach(link => console.log(link));
console.log("Total internal links:", result.internal.length);
console.log("Total external links:", result.external.length);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const text = "I love you";
const source = "auto";
const target = "id";
console.log("Original:", text);
console.log("Target:", target);
const translatedText = await translateText(text, source, target);
console.log("Translated:", translatedText);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
const qrGenerator = new UrlToQr();
try {
const result = await qrGenerator.generateQRCode({
url: 'https://github.com'
});
console.log('Image QR Code URL:', result.qrCodeUrl);
const coloredResult = await qrGenerator.generateQRCode({
url: 'https://google.com',
colorType: 'single',
singleColor: '#FF0000'
});
console.log('Image QR Code URL v2:', coloredResult.qrCodeUrl);
} catch (error) {
console.log('Error:', error.message);
}
};const example = async () => {
try {
const longUrl = "https://youtube.com/@rendyx_solo-player?si=glwrRPFhgwuJQQ-_";
const result = await shortenUrl(longUrl);
console.log(result.shorturl);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const tracker = new AdvancedIPTracker();
const ip = "103.203.234.240";
const result = await tracker.trackIP(ip);
if (result.error) {
console.log(`ERROR: ${result.error}`);
console.log('SERVICE STATUS:');
result.services_tried.forEach(service => {
console.log(` ${service.service}: ${service.status}${service.error ? ` - ${service.error}` : ''}`);
});
return;
}
console.log(`TARGET IP: ${result.target_ip}`);
console.log(`ACCURACY: ${result.accuracy.success_rate} (${result.accuracy.services_used}/${result.accuracy.total_services} services)`);
console.log('GEO LOCATION:');
console.log(` IP Address: ${result.data.ip || 'N/A'}`);
console.log(` Country: ${result.data.country || 'N/A'} (${result.data.country_code || 'N/A'})`);
console.log(` City: ${result.data.city || 'N/A'}`);
console.log(` Region: ${result.data.region || 'N/A'}`);
console.log(` Postal: ${result.data.postal || 'N/A'}`);
console.log(` Coordinates: ${result.data.latitude || 'N/A'}, ${result.data.longitude || 'N/A'}`);
console.log('MAP LINKS:');
console.log(` Google Maps: ${result.map_links.google_maps}`);
console.log(` OpenStreetMap: ${result.map_links.openstreetmap}`);
console.log('NETWORK INFO:');
console.log(` ISP: ${result.data.isp || 'N/A'}`);
console.log(` Organization: ${result.data.org || 'N/A'}`);
console.log(` ASN: ${result.data.asn || 'N/A'}`);
console.log('ADDITIONAL INFO:');
console.log(` Timezone: ${result.data.timezone || 'N/A'}`);
if (result.data.security) {
console.log('SECURITY ANALYSIS:');
const sec = result.data.security;
console.log(` Proxy: ${sec.is_proxy ? 'YES' : 'NO'}`);
console.log(` VPN: ${sec.is_vpn ? 'YES' : 'NO'}`);
console.log(` TOR: ${sec.is_tor ? 'YES' : 'NO'}`);
console.log(` Hosting: ${sec.is_hosting ? 'YES' : 'NO'}`);
}
console.log('DNS LOOKUP:');
console.log(` Hostnames: ${result.dns_lookup.hostnames.join(', ') || 'None'}`);
console.log('SERVICE RESULTS:');
result.raw_results.forEach(service => {
const status = service.success ? 'SUCCESS' : 'FAILED';
const error = service.error ? ` - ${service.error}` : '';
console.log(` ${service.service}: ${status}${error}`);
});
console.log('TIMESTAMP:', result.timestamp);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const filePath = './gambar.jpg';
const result = await uploadToPomf(filePath);
console.log("URL:", result.url);
console.log("Filename:", result.name);
console.log("Size:", result.size, "bytes");
console.log("Hash:", result.hash);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const videoPath = './video.mp4';
const result = await upVidey(videoPath);
console.log("Upload successful!");
console.log("Video URL:", result.videoUrl);
console.log("Filename:", result.filename);
console.log("Size:", result.sizeMB, "MB");
console.log("Visitor ID:", result.visitorId);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = 'https://example.com';
console.log('Mengambil screenshot website...');
const result = await ssWebsite(url);
console.log('Screenshot berhasil diambil, size:', result.length, 'bytes');
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const imageBuffer = fs.readFileSync('./gambar.jpg');
const enhancedImage = await HdImages(imageBuffer, "image/jpeg");
} catch (error) {
console.error('Error dalam contoh:', error.message);
}
};const example = async () => {
try {
const type = "person";
const count = 3;
const result = await generateFakeData(type, count);
console.log("Generated fake data:");
console.log(JSON.stringify(result, null, 2));
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const imagePath = './gambar.jpg';
console.log("Uploading image:", imagePath);
const result = await UpImage(imagePath);
console.log("Filename:", result.filename);
console.log("Size:", result.size, "bytes");
console.log("Preview URL:", result.previewUrl);
console.log("Download URL:", result.downloadUrl);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const shortLink1 = await shortenUrlv2('https://example.com');
console.log("Short Link 1:", shortLink1);
console.log("Creating short link 2...");
const shortLink2 = await shortenUrlv2('https://google.com', 'CustomName' + Date.now());
console.log("Short Link 2:", shortLink2);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = 'https://open.spotify.com/album/7H1Amuxmn9yOsZel5ErZbi';
console.log('Mengunduh data Spotify...');
const result = await downloadSpotify(url);
console.log('Hasil unduhan:', JSON.stringify(result, null, 2));
} catch (error) {
console.error('Error:', error.message);
}
};const example = async () => {
try {
const url = 'https://sfile.mobi/2E5O1HMVKcc';
const result = await downloadSfile(url);
console.log('Download completed successfully!');
console.log('File Info:');
console.log('- Name:', result.metadata.file_name);
console.log('- Type:', result.metadata.mimetype);
console.log('- MIME Type:', result.metadata.type);
console.log('- Upload Date:', result.metadata.upload_date);
console.log('- Download Count:', result.metadata.download_count);
console.log('- Author:', result.metadata.author_name);
console.log('- Buffer Size:', result.download.length, 'bytes');
} catch (error) {
console.log('Download failed:', error.message);
}
};const example = async () => {
try {
const result = await downloadSosmed('https://x.com/taro0666/status/1987679862283542679?s=20');
console.log('Download result:', result);
} catch (error) {
console.error('Download failed:', error.message);
}
}const example = async () => {
try {
const result = await MediaFire('https://www.mediafire.com/file/ipty6imgcdk5n0r/Amp4S55_Jebe.zip/file');
console.log('Hasil:', result);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://www.youtube.com/post/UgkxA3ms3sZMqEf3xntI8LxPCVuEG1q719D_";
const result = await ytCommunitydl(url);
if (result) {
console.log("Post ID:", result.postId);
console.log("Author:", result.author);
console.log("Content:", result.content);
console.log("Images Found:", result.images.length);
if (result.images.length > 0) {
console.log("Image URLs:");
result.images.forEach((url, index) => {
console.log(` ${index + 1}. ${url}`);
});
} else {
}
} else {
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://lahelu.com/post/PMujNAfxy";
const result = await downloadLahelu(url);
if (result) {
console.log("Post ID:", result.post_id);
console.log("User ID:", result.user_id);
console.log("Title:", result.title);
console.log("Sensitive:", result.sensitive);
console.log("Hashtags:", result.hashtags);
console.log("Create Time:", result.create_time);
console.log("Media:", result.media);
} else {
console.log("No post found");
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://www.douyin.com/video/7256984651137289483";
if (!douyinDownloader.isValidUrl(url)) {
console.log("Error: Invalid Douyin/TikTok URL format");
return;
}
const result = await douyinDownloader.download(url);
if (result.status) {
console.log("Title:", result.data.title);
console.log("Thumbnail:", result.data.thumbnail);
console.log("Download URLs:");
result.data.downloads.forEach((download, index) => {
console.log(` ${index + 1}. ${download.quality}: ${download.url}`);
});
} else {
console.log("Error:", result.error);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://www.xiaohongshu.com/discovery/item/691c3951000000001f00e875?source=yamcha_homepage&xsec_token=ABBCL_DG7_6a0zxQB1iatBKSykuyInAMGiGijcu3tWhqA=&xsec_source=h5_feed";
if (!isValidRednoteUrl(url)) {
console.log("Error: Invalid Rednote URL format");
return;
}
const result = await downloadRednote(url);
console.log("Note ID:", result.noteId);
console.log("Nickname:", result.nickname);
console.log("Title:", result.title);
console.log("Description:", result.desc);
console.log("Keywords:", result.keywords);
console.log("Duration:", result.duration);
console.log("Engagement:");
console.log(" Likes:", result.engagement.likes);
console.log(" Comments:", result.engagement.comments);
console.log(" Collects:", result.engagement.collects);
console.log("Images:", result.images.length);
console.log("Downloads:", result.downloads.length);
if (result.downloads.length > 0) {
console.log("Download URL:", result.downloads[0].url);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://s.snackvideo.com/p/dwlMd51U";
const result = await downloadSnackvideo(url);
console.log("Title:", result.title);
console.log("Description:", result.description);
console.log("Duration:", result.duration);
console.log("Upload Date:", result.uploadDate);
console.log("Thumbnail:", result.thumbnail);
console.log("Video URL:", result.videoUrl);
console.log("Creator:", result.creator.name);
console.log("Creator Profile:", result.creator.profileUrl);
console.log("Creator Bio:", result.creator.bio);
console.log("Interaction Stats:");
console.log(" Views:", result.interaction.views);
console.log(" Likes:", result.interaction.likes);
console.log(" Shares:", result.interaction.shares);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const downloader = new downloadX();
const twitterUrl = "https://x.com/prabowo/status/1991050390356599204";
const downloadLinks = await downloader.download(twitterUrl);
console.log("Download Links:");
downloadLinks.forEach((link, index) => {
console.log(`${index + 1}. ${link.quality} ${link.url}`);
});
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://www.instagram.com/p/DRFK1JeknFb";
const result = await downloadInstagram(url);
if (result.videoUrl) {
console.log("Video URL:", result.videoUrl);
}
if (result.imageUrl) {
console.log("Image URL:", result.imageUrl);
}
if (result.downloadUrl) {
console.log("Download URL:", result.downloadUrl);
}
if (result.posterUrl) {
console.log("Poster URL:", result.posterUrl);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://www.instagram.com/p/DRFK1JeknFb/?igsh=dzg4aGtibHdjd2xt";
console.log("Downloading Instagram content...");
const result = await downloadInstagramV2(url);
console.log("Status:", result.status);
console.log("Username:", result.username);
console.log("Profile Picture:", result.profilePic);
console.log("Caption:", result.caption);
console.log("Likes:", result.likes);
console.log("Comments:", result.comments);
console.log("Posted:", result.postedAgo);
console.log("Content Type:", result.contentType);
if (result.videoUrl) {
console.log("Video URL:", result.videoUrl);
}
if (result.mediaUrls) {
console.log("Media Count:", result.mediaCount);
console.log("Media URLs:", result.mediaUrls);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const url = "https://drive.google.com/file/d/1YTD7Ymux9puFNqu__5WPlYdFZHcGI3Wz/view?usp=drivesdk";
const result = await downloadGdrive(url);
console.log("File Name:", result.name);
console.log("Download URL:", result.download);
console.log("Original Link:", result.link);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const videoUrl = "https://www.capcut.com/tv2/ZSSSB94f3/";
console.log("Input URL:", videoUrl);
const result = await downloadCapcut(videoUrl);
console.log("Success:", JSON.stringify(result, null, 2));
return result;
} catch (error) {
console.error("Error:", error.message);
return null;
}
}const example = async () => {
try {
const result = await downloadPinterest('https://pin.it/57IghwKl0');
console.log(`Download ${result.type} from: ${result.media}`);
console.log(`Type: ${result.type}`);
console.log(`Title: ${result.title}`);
console.log(`Author: ${result.author}`);
console.log(`Username: ${result.username}`);
console.log(`Media URL: ${result.media}`);
console.log(`Thumbnail: ${result.thumbnail}`);
console.log(`Upload Date: ${result.uploadDate}`);
console.log(`Keywords: ${result.keywords.join(', ') || 'None'}`);
} catch (error) {
console.error('Download failed:', error.message);
}
}const example = async () => {
return new Promise(async (resolve, reject) => {
try {
const link = "https://www.facebook.com/share/r/1GoCdAyzv7/";
const hasil = await downloadFacebook(link);
console.log(hasil);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = async () => {
try {
const url = "https://www.tiktok.com/@garuda.siwa.infot/video/7567105655362948372?_t=ZS-9101GAM4UGl&_r=1";
const result = await downloadTiktok(url);
console.log("Title:", result.title);
console.log("Author:", result.author?.nickname);
console.log("Region:", result.region);
console.log("Duration:", result.duration);
console.log("Created:", result.formatted_time);
console.log("Stats:");
console.log(" Plays:", result.play_count);
console.log(" Likes:", result.digg_count);
console.log(" Comments:", result.comment_count);
console.log(" Shares:", result.share_count);
console.log(" Downloads:", result.download_count);
console.log("Music:", result.music_info?.title);
console.log("Music Author:", result.music_info?.author);
console.log("Cover:", result.cover);
console.log("Video URL:", result.play);
console.log("HD Video URL:", result.hdplay);
console.log("Watermarked Video:", result.wmplay);
console.log("Images:", result.images?.length || 0);
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await liveFunFact("1990-05-15");
if (result.status) {
console.log("Medical Fun Facts:");
console.log("Age:", result.data.basicInfo.ageInYears, "years");
console.log("Total Heart Beats:", result.data.cardiovascular.heartBeatsTotal.toLocaleString());
console.log("Total Breaths:", result.data.respiratory.totalBreaths.toLocaleString());
console.log("Cells Replaced:", result.data.cellularActivity.cellsReplaced.toLocaleString());
} else {
console.log("Error:", result.error);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const result = await convertToAlay("Hello World")
if (result.status) {
console.log("Original: Hello World")
console.log("Alay:", result.data.result)
} else {
console.log("Error:", result.error)
}
} catch (error) {
console.log("Error:", error.message)
}
}const example = async () => {
try {
const hasil = tebakBenderaGame(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/tebakbendera.json'));
console.log(JSON.stringify({
negara: hasil.negara,
bendera: hasil.bendera
}, null, 2));
return {
bendera: hasil.bendera,
jawaban: hasil.negara
};
} catch (error) {
console.log("Error:", error.message);
}
}const example = async () => {
try {
const hasil = tebakGambarGame(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/tebakgambar.json'));
console.log(JSON.stringify({
jawaban: hasil.jawaban,
img: hasil.img,
deskripsi: hasil.deskripsi
}, null, 2));
return {
jawaban: hasil.jawaban,
img: hasil.img,
deskripsi: hasil.deskripsi
};
} catch (error) {
console.log("Error:", error.message);
}
}const example = async () => {
try {
const hasil = tebakKimiaGame(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/tebakkimia.json'));
console.log(JSON.stringify({
unsur: hasil.unsur,
lambang: hasil.lambang
}, null, 2));
return {
unsur: hasil.unsur,
lambang: hasil.lambang
};
} catch (error) {
console.log("Error:", error.message);
}
}const example = async () => {
try {
const hasil = family100Game(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/family100.json'));
console.log(JSON.stringify({
soal: hasil.soal,
jawaban: hasil.jawaban
}, null, 2));
return {
soal: hasil.soal,
jawaban: hasil.jawaban
};
} catch (error) {
console.log("Error:", error.message);
}
}const example = async () => {
try {
const quotes = await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/kata-kata/quotes.json');
const result = randomQuote(quotes);
console.log(JSON.stringify(result, null, 2));
return result;
} catch (error) {
console.log("Error:", error.message);
}
}const example = async () => {
try {
const result = await searchQuotes("kesuksesan");
if (result.status) {
result.data.forEach((quote, index) => {
console.log(`\n${index + 1}. ${quote.quote}`);
console.log(` Author: ${quote.author}`);
console.log(` Votes: ${quote.votes}`);
});
} else {
console.log("Error:", result.error);
}
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
try {
const truthResult = await TruthOrdare('truth');
const dareResult = await TruthOrdare('dare');
console.log("Truth:", truthResult);
console.log("Dare:", dareResult);
} catch (error) {
console.log("Error:", error.message);
}
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const nama = "Jokowi";
const hasil = await cekKhodam(nama);
console.log(`Khodam dari ${nama} adalah ${hasil.nama}\n\nDeskripsi: ${hasil.deskripsi}`);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
try {
const hasil = cakLontongGame(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/caklontong.json'));
console.log(JSON.stringify({
soal: hasil.soal,
jawaban: hasil.jawaban
}, null, 2));
return {
soal: hasil.soal,
jawaban: hasil.jawaban
};
} catch (error) {
console.log("Error:", error.message);
}
};const example = () => {
try {
const hasil = susunKataGame(await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/games/susunkata.json'));
console.log(JSON.stringify({
soal: hasil.soal,
tipe: hasil.tipe,
jawaban: hasil.jawaban
}, null, 2));
return {
soal: hasil.soal,
tipe: hasil.tipe,
jawaban: hasil.jawaban
};
} catch (error) {
console.log("Error:", error.message);
}
};const example = () => {
try {
const hasil = await fetchJson('https://raw.githubusercontent.com/nazedev/database/refs/heads/master/kata-kata/motivasi.json');
console.log(JSON.stringify(hasil, null, 2));
return hasil;
} catch (error) {
console.log("Error:", error.message);
}
};const example = async () => {
const selector = new RandomStickers();
const anime = await selector.getRandomSticker('anime');
if (anime) {
}
const stickerjmk = await selector.getRandomSticker('jmk');
// list: jmk,cat,patrick,nsfw,nsfw2,anime
if (sticker) {
console.log('Berhasil dapat stiker! Size:', stickerjmk.size);
}
};const example = async () => {
try {
const imageUrl = await iphoneQuotes('Di Jual 500p Per Image😋');
console.log('You can download the image from:', imageUrl);
} catch (error) {
console.error('Failed to generate image:', error.message);
}
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const result1 = await CreateQuoted(
"Ini quote dengan gambar avatar",
"REYHAN",
"https://files.catbox.moe/h4kx64.jpg");
console.log(`qc image: ${result1.length} bytes`);
const result2 = await CreateQuoted(
"Ini quote tanpa gambar avatar",
"REYHAN",
"");
console.log(`original: ${result2.length} bytes`);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const result = await writingPaper(
"Infokan tanbang emas terdekat!",
"Bahlil love you",
"Seni Budaya"
);
console.log(`API URL: ${result.url}`);
console.log(`nulis image: ${result.buffer.length} bytes`);
resolve(result);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const result1 = await generateBrat("Hello World!", false);
console.log(`API URL: ${result1.apiUrl}`);
console.log(`Static image: ${result1.buffer.length} bytes`);
const resultGif = await generateBrat("Hello World!", true, 570);
console.log(`API URL: ${resultGif.apiUrl}`);
console.log(`Animated GIF: ${resultGif.buffer.length} bytes`);
resolve();
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const bufferFoto = fs.readFileSync("./db/photo.jpg");
const data = {
provinsi: "JAWA BARAT",
kota: "BANDUNG",
nik: "3273011234567890",
nama: "JOHN DOE",
ttl: "BANDUNG, 01-01-1990",
jenis_kelamin: "LAKI-LAKI",
golongan_darah: "A",
alamat: "JL. MERDEKA NO. 666",
"rt/rw": "001/002",
"kel/desa": "MERDEKA",
kecamatan: "SUMUR BANDUNG",
agama: "ISLAM",
status: "BELUM KAWIN",
pekerjaan: "KARYAWAN SWASTA",
kewarganegaraan: "WNI",
masa_berlaku: "SEUMUR HIDUP",
terbuat: "01-01-2026",
tandatangan: "sepuh",
pas_photo: bufferFoto
};
const ktpBuffer = await generateKTP(data);
const url = await uploadUguu(ktpBuffer, "ktp.jpg");
console.log(`KTP uploaded: ${url}`);
resolve(url);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const imageBuffer = fs.readFileSync("./face.jpg");
const circleBuffer = await createCircleImage(imageBuffer);
const url = await uploadUguu(circleBuffer, "circle.png");
console.log(`Uploaded: ${url}`);
resolve(url);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const data = {
nama: "Reyhan Sigma Boys",
rating: 5,
tanggal: "15/11/26",
review: "game apalah makin lama main makin rusak nih game ff, game kontol garena mati aja!",
helpfulCount: 10
};
const buffer = await createReviewImage(data);
console.log(`Review image created: ${buffer.length} bytes`);
const url = await uploadUguu(buffer, "review.png");
console.log(url);
resolve(url);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
const emoji1 = "😊";
const emoji2 = "😂";
const url = createEmojiMix(emoji1, emoji2);
console.log(url);
};const example = () => {
const emoji = "😊";
const url = createEmojiGif(emoji);
console.log(url);
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const text = "Ustad boleh ke saya jadi Ultraman kat syurga?";
const buffer = await UstadQna(text);
const url = await uploadUguu(buffer, "ustad.png");
console.log(url);
resolve(url);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};const example = () => {
return new Promise(async (resolve, reject) => {
try {
const data = {
username: "Bahlil Hadaliyah",
comment: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
};
const buffer = await fakeXnxx(data);
const url = await uploadUguu(buffer, "comment.png");
console.log(url);
resolve(url);
} catch (error) {
console.log(`Error: ${error.message}`);
reject(error);
}
});
};Backup Repositories
This is the official backup repository containing the complete source code, documentation, and additional resources for Theia-Suite.
Please Donate:
