node module to interface with the new waifulabs v2 websocket api
npm i waifusocket
import fs from 'fs/promises';
import { WaifuSocket } from 'waifusocket';
const socket = await new WaifuSocket().login('SFMyNTY.JUSTSOMERANDOMCOOKIE');
const grid = await ws.genGrid();
console.log(grid.length);
const big = await ws.genBig(grid[0].seeds);
await fs.writeFile('./image.png', big.image);
ws.close();
Generated using TypeDoc