Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songkeys/translateer
An unlimited free Google Translate API using Puppeteer
https://github.com/songkeys/translateer
api free google-translate
Last synced: 13 days ago
JSON representation
An unlimited free Google Translate API using Puppeteer
- Host: GitHub
- URL: https://github.com/songkeys/translateer
- Owner: songkeys
- License: mit
- Created: 2021-11-21T11:52:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T11:07:53.000Z (2 months ago)
- Last Synced: 2024-10-29T14:28:38.283Z (16 days ago)
- Topics: api, free, google-translate
- Language: TypeScript
- Homepage: https://t.song.work
- Size: 215 KB
- Stars: 80
- Watchers: 10
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
curl 'https://t.song.work/api?text=hello&from=en&to=zh-CN'
```Visit 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
```bash
git clone https://github.com/Songkeys/translateer.git
```2. Run with Docker-Compose
```bash
docker-compose up -d
```### Option 2: Serve Locally
1. Clone the repository
```bash
git clone https://github.com/Songkeys/translateer.git
```2. Install dependencies and build
```bash
npm install
npm run build
```3. Run the server
```bash
npm run start
```### Environment Variables
See the markdown table below:
| Variable | Description | Default |
| ----------------------- | -------------------------------------------- | ---------------------------------------------- |
| `PORT` | Port to listen on | `8999` |
| `PUPPETEER_WS_ENDPOINT` | WebSocket endpoint of the Puppeteer instance | undefined or `ws://browserless:3000` in docker |
| `PAGE_COUNT` | Number of browser pages to hold for speedup | `5` |## Raycast Extension
An easy-to-use [Raycast](https://www.raycast.com) extension is provided. Check [Songkeys/raycast-extension#Translateer](https://github.com/Songkeys/raycast-extensions#translateer) for more details.
![raycast-extension-preview](https://user-images.githubusercontent.com/22665058/142718320-871b0c71-7e30-422a-889d-51d0bc6dcf88.png)