VK-IO - This is a powerful Node.js module that allows you to easily interact with the VK API π
π Documentation | π€ Examples |
---|
- Complete.
100%
coverage of the VK API - Simple. Predictable abstraction of VK API. 1 to 1 mapping of API method
vk.api.users.get({ ... });
- Reliable. The library is written in TypeScript and covered by tests.
- Modern. The library comes with native ESM support
- Powerful. Supports following additional features:
- Proxy support via Custom Agents;
- Automatic request parallelization for processing massive amounts of requests to API;
- User Authorization (even with login and password);
- Ecosystem for bot development.
Node.js 12.20.0 or newer is required
- Using
npm
(recommended)npm i vk-io
- Using
Yarn
yarn add vk-io
- Using
pnpm
pnpm add vk-io
import { VK } from 'vk-io';
const vk = new VK({
token: process.env.TOKEN
});
async function run() {
const response = await vk.api.wall.get({
owner_id: 1
});
console.log(response);
}
run().catch(console.log);
- @vk-io/stateless-prompt: Simple implementation of stateless prompt
- @vk-io/authorization: Authorization by login & password, and etc...
- @vk-io/streaming: Receiving data with Streaming API
- @vk-io/session: Simple implementation of the sessions
- @vk-io/scenes: Simple implementation of middleware-based scene management
- @vk-io/hear: Simple implementation of the hears
- vk-io-question: Simple promise-based prompt
- vk-io-pages: Dynamic pages pagination module
- henta: Simple VK bot engine
- vk-io-redis-storage: Simple storage add-on for @vk-io/session
- nestjs-vk: Module for NestJS
If you want to add your module in the list, create a new issue in the repository.