Custom WhatsApp Multi-Device library built for your own project and portfolio, with a Baileys-compatible API style.
- This project is your own library implementation.
Z-150/baileyscan be used as inspiration/reference for API patterns.- Keep attribution clear in your repository description and documentation.
npm installconst { makeWASocket, useMultiFileAuthState, fetchLatestWaWebVersion } = require('fotk');
async function start() {
const { state, saveCreds } = await useMultiFileAuthState('./auth_info_baileys');
const version = await fetchLatestWaWebVersion();
const sock = makeWASocket({
auth: state,
saveCreds,
version,
whatsappWebMd: true,
printQRInTerminal: true,
});
sock.on('connection.update', ({ connection }) => {
if (connection === 'open') console.log('connected');
});
}
start();npm run check
npm run start- Create a GitHub repository under your account.
- Push this codebase to that repository.
- Update
package.jsonfields (name,author, and optionalrepositorymetadata) with your identity. - Keep this project README as your portfolio proof of work and architecture choices.
MIT