Skip to content

A node module to interface with the new WaifuLabs v2 websocket API.

Notifications You must be signed in to change notification settings

AroLeaf/WaifuSocket

Repository files navigation

WaifuSocket

npm

node module to interface with the new waifulabs v2 websocket api

Documentation

Install

npm i waifusocket

Usage example

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();

About

A node module to interface with the new WaifuLabs v2 websocket API.

Resources

Stars

Watchers

Forks