/translateer

An unlimited free Google Translate API using Puppeteer

Primary LanguageTypeScriptMIT LicenseMIT

Translateer

An unlimited free Google Translate API using Puppeteer.

This service is provided to the public for educational purposes only.

Demo and Usage

Try it out:

curl 'https://t.song.work/api?text=hello&from=en&to=zh-CN'

Visit https://t.song.work/ to see more usage.

This free demo can only serve 5 concurrent requests. It does not collect any data.

Self-Hosted

Option 1: Serve with Docker (Recommended)

  1. Clone the repository

    git clone https://github.com/songkeys/translateer.git
  2. Build and run Dockerfile

    docker build -t translateer .
    docker run -d -p 8999:8999 translateer

Option 2: Serve Locally

  1. Clone the repository

    git clone https://github.com/songkeys/translateer.git
  2. Install dependencies and build

    deno install
  3. Run the server

    deno task start

Environment Variables

See the markdown table below:

Variable Description Default
PORT Port to listen on 8999
PAGE_COUNT Number of browser pages to hold for speedup 5

Raycast Extension

An easy-to-use Raycast extension is provided. Check songkeys/raycast-extension#Translateer for more details.

raycast-extension-preview