Dual-token auth
Access and refresh tokens, lazy sign-in, shared 401 recovery, and session restore across restarts.
Typed sessions, live study telemetry, and group moderation for Yeolpumta — without reverse-engineering the wire format yourself.
bun add ypt-js
# or: npm install ypt-jsimport { YptJs } from "ypt-js";
const ypt = new YptJs({
credentials: {
email: process.env.YPT_EMAIL!,
password: process.env.YPT_PASSWORD!,
},
});
const groups = await ypt.groups.listJoined();
const members = await ypt.groups.getMembers(groups[0].id);
for (const member of members) {
console.log(member.nickname, member.liveStudyTime);
}Unofficial. This project is not affiliated with, endorsed by, or supported by YPT / TGCLab. Use it responsibly, keep request volume low, and never handle credentials or data you do not own.