import QRCode from "qrcode"; export async function makeQrPng(text: string): Promise { return QRCode.toBuffer(text, { type: "png", width: 512, margin: 1, errorCorrectionLevel: "M", }); }