# signtok

> Sign your TikTok requests easily

Latest version **1.2.0** (published 2022-08-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-08-12 |
| First published | 2022-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 330.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 67 |
| Author | Pablo Ferreiro |
| Maintainers | pablouser1 |

## Links

- npm: https://www.npmjs.com/package/signtok
- Repository: https://github.com/pablouser1/SignTok
- Homepage: https://github.com/pablouser1/SignTok#readme
- Issues: https://github.com/pablouser1/SignTok/issues
- npm.io page: https://npm.io/package/signtok

## Dependencies (2)

- [jsdom](https://npm.io/package/jsdom.md) ^19.0.0
- [canvas](https://npm.io/package/canvas.md) ^2.9.3

## Recent versions

- 1.2.0 (latest) — 2022-08-12

## README

# SignTok
Sign your TikTok urls easily.
This is a port of [tiktok-signature](https://github.com/carcabot/tiktok-signature) using JSDOM

This project allows signing TikTok urls without having to run a headless browser, which lowers ram usage a lot.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy/?template=https://github.com/pablouser1/SignTok)
## Installation
### Docker
```
docker pull ghcr.io/pablouser1/signtok:master
```

Now you can create a container with:
```
docker run --publish 8080:8080 ghcr.io/pablouser1/signtok:master
```
### Manual
```
yarn install
```

Now you can run the server with:
```
node api/index.js
```
## Usage
### Webserver
You can send a POST request to http://localhost:8080/signature with a raw/plain body containing the url

(Content-Type: text/plain)

If you plan to use the already deployed Vercel version, you should use https://signtok.vercel.app/api/signature

### Cli
```
node local.js 'YOUR_URL_HERE'
```

### Library
```bash
npm install signtok
```

```javascript
const SignTok = require('signtok');

const signer = new SignTok();
console.log(signer.sign('URL_HERE'));
```

## Credits
* @H1W0XXX for providing a working X-Bogus script

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