Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A webscraper for a deep dream generator website for unlimited free text2img conversions
npm install scrapegen
A webscraper that generates a fake account on deepdreamgenerator.com and uses the free tokens to generate a single image within 90 seconds. You can use it with no ratelimits and in parallel, however I am in no way condoning such behaviour and I am not responsible if you are to get banned using this. Please read their info and guidelines properly.
It's all in config.ini.example
.generate( config, callback (optional) )
An asynchronous function that returns the image link once done processing. You can also pass in a callback function.
// Returns a promise (the link as a string)! You need to await if you wanna capture the data.
scrapegen.generate({
prompt: "Japanese Woman",
model: 'PhotoReal',
aspect_ratio: 'Portrait',
quality: 'High',
negative_prompt: `ugly, scary, mangled, cross eye, abstract, weird`,
face_enhance: 'Normal',
upscale_and_enhance: '1MP',
follow_model_style: 'true'
}, callback = (link => console.log(`Generated image: ${link}`) ))
.generate_from_ configini( path_to_config.ini, callback (optional) )
An asynchronous function like the one above that generates an image based on a prompt from a config.ini file. The format for the config.ini file is provided in config.ini.example
.
async function getImage() {
let image_link = await scrapegen.generate_from_configini('path/to/config.ini');
console.log(link) // Log the image link
}
( async () => await getImage() )()
.exampleData
Returns some example data from config.ini
to play around with. Use it with .generate
instead of your own prompt to test it out.
let link = await scrapegen.generate( scrapegen.exampleData )
Example 1: Generating a cyberpunk version of Mona Lisa lookalike and then opening the generated image in our default browser.
const scrapegen = require('scrapegen');
const open = require('open');
(async () =>
await scrapegen.generate({
prompt: `a cyberpunk painting of a cyberpunk monalisa wearing cyberpunk intricate streetwear, , woman with long cyberpunk hair and a smile on her face and neon tattoos, with a green background and a blue cyberpunk city, volumetric lighting, inceoglu dragan bibin hans thoma greg rutkowski alexandros pyromallis nekro rene margitte illustrated, fine details, realistic shaded, 4k, hyper detailed, beautiful, detailed portrait, cell shaded, 4 k, vivid colours, concept art, by wlop, ilya kuvshinov, artgerm, krenz cushart, greg rutkowski, pixiv. cinematic dramatic atmosphere, sharp focus, volumetric lighting, cinematic lighting, studio quality`,
model: 'Quantum (v2)',
aspect_ratio: 'Portrait',
quality: 'High',
negative_prompt: `cartoon, bad art, bad artist, mutated`,
face_enhance: 'Normal',
upscale_and_enhance: '1MP',
follow_model_style: 'false'
})
.then(image_link => {
open(image_link);
})
.catch(e => {
console.log(`Yikes! Hit an error:\n${e}`)
})
)()
Example 2: Using a config.ini
file to generate an image and logging it to the console with a callback arguement.
const scrapegen = require('scrapegen');
async function getImage() {
await scrapegen.generate_from_configini('./custom_config.ini', ( link => console.log(`Generated Image: ${link}`)) );
}
console.log("Generating image...");
( async () => await getImage() )();
FAQs
A webscraper for a deep dream generator website for unlimited free text2img conversions
The npm package scrapegen receives a total of 0 weekly downloads. As such, scrapegen popularity was classified as not popular.
We found that scrapegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.