# snowtransfer

> Minimalistic Rest client for the Discord Api

Latest version **0.19.0** (published 2026-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install snowtransfer
pnpm add snowtransfer
yarn add snowtransfer
bun add snowtransfer
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.0 |
| Published | 2026-07-07 |
| First published | 2017-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 446.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 65 |
| Author | wolke |
| Maintainers | wolke, papiophidian |
| Keywords | discord, api, rest, http, microservice, discord bot, discord bot microservice, microservice bot |

## Links

- npm: https://www.npmjs.com/package/snowtransfer
- Repository: https://github.com/DasWolke/SnowTransfer
- Homepage: https://github.com/DasWolke/SnowTransfer#readme
- Issues: https://github.com/DasWolke/SnowTransfer/issues
- npm.io page: https://npm.io/package/snowtransfer

## Dependencies (1)

- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.38.49

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.19.0 (latest) — 2026-07-07
- 0.18.1 — 2026-07-06
- 0.18.0 — 2026-06-24
- 0.17.7 — 2026-05-02
- 0.17.6 — 2026-05-02
- 0.17.5 — 2026-02-27
- 0.17.4 — 2026-02-13
- 0.17.3 — 2026-02-02
- 0.17.2 — 2026-02-02
- 0.17.1 — 2026-01-25
- 0.17.0 — 2026-01-20
- 0.16.1 — 2026-01-14
- 0.16.0 — 2026-01-14
- 0.15.0 — 2025-08-26
- 0.14.2 — 2025-05-31
- … 57 more at https://npm.io/package/snowtransfer/versions

## README

# A minimalistic rest client for the discord api

---
[![GitHub stars](https://img.shields.io/github/stars/DasWolke/SnowTransfer.svg)](https://github.com/DasWolke/SnowTransfer/stargazers) [![npm](https://img.shields.io/npm/dm/snowtransfer.svg)](https://www.npmjs.com/package/snowtransfer) [![npm](https://img.shields.io/npm/v/snowtransfer.svg)](https://www.npmjs.com/package/snowtransfer)

Part of the WeatherStack

SnowTransfer is a small library specially made to **only** cover the REST/HTTP area of the discord api.
It makes no assumptions about the rest of your stack, therefore you can use it anywhere as long as you use node 22.0.0 or higher.

### Some of the things that make SnowTransfer awesome:
- No requirement for other components
- Full coverage of the discord rest api
- Well documented
- Supports both Bot and Bearer tokens (Bearer tokens will have much more limited access than Bot tokens)

### General Usecase:
SnowTransfer is not your everyday library,
especially compared to other libraries, it makes sense to use it when you:
- Want to build a microservice based bot, where casual discord libraries would not be suitable since they assume the availability of other components like a gateway or a cache
- Only need a simple rest client that can be wrapped easily.

### Microservice Bots:
I've written a general whitepaper on the idea of microservice bots, which you can find on gist: [Microservice Bot Whitepaper](https://gist.github.com/DasWolke/c9d7dfe6a78445011162a12abd32091d)

### Documentation:
You can find the docs at [https://daswolke.github.io/SnowTransfer/](https://daswolke.github.io/SnowTransfer/)

For a changelog, read here: [Changelog](./CHANGELOG.md)

### Installation:
To install SnowTransfer, make sure that you have node 22.0.0 or higher and npm installed on your computer.

Then run the following command in a terminal `npm install snowtransfer`

## Example:
```js
const { SnowTransfer } = require('snowtransfer');
const client = new SnowTransfer('DISCORD BOT TOKEN');

client.channel.createMessage('channel id', 'hi there').then(() => {
	// message was sent to discord
}).catch(e => {
	// an error occurred
});
```

---
_Source: https://npm.io/package/snowtransfer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
