You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/learning-how-tos/cookbook/nodejs-proxy.mdx
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,21 @@ public: true
9
9
</Card>
10
10
11
11
12
-
This lightweight proxy server lets you call the DeepL API directly from browser-based applications during prototyping and frontend testing. Since the DeepL API doesn't allow direct browser requests (see [CORS requests documentation](/docs/best-practices/cors-requests)), this proxy handles CORS headers and keeps your API key secure.
12
+
## Overview
13
13
14
-
Perfect for hackathons, demos, and quick prototypes where you need to get up and running fast. Built with Node.js and Express with minimal dependencies. Supports all DeepL API endpoints including text translation, document translation, and glossaries. Includes an interactive web demo for testing translations right in your browser.
14
+
This lightweight proxy server lets you call the DeepL API directly from browser-based applications. In simpler terms, it lets you make DeepL API calls from your client-side JavaScript without running into browser security restrictions.
15
+
16
+
Since the DeepL API doesn't allow direct browser requests (see [CORS requests documentation](/docs/best-practices/cors-requests)), this proxy handles CORS headers and keeps your API key secure. Perfect for hackathons, demos, and quick prototypes where you need to get up and running fast.
17
+
18
+
Built with Node.js and Express with minimal dependencies. Supports all DeepL API endpoints including text translation, document translation, and glossaries. Includes an interactive web demo for testing translations right in your browser.
19
+
20
+
<Note>
21
+
This proxy is intended for prototyping and frontend testing. For production environments, consider implementing your own backend service with additional security measures and rate limiting.
22
+
</Note>
23
+
24
+
## Quick Start
25
+
26
+
The proxy includes an interactive setup wizard to get you started quickly. Clone the repo, run the setup, and start sending requests from your browser. Check out the [GitHub repository](https://github.com/DeepLcom/deepl-api-nodejs-proxy) for full setup instructions and Docker support.
15
27
16
28
## Screenshots
17
29
@@ -22,7 +34,3 @@ Perfect for hackathons, demos, and quick prototypes where you need to get up and
22
34
<Frame>
23
35
<imgsrc="https://raw.githubusercontent.com/DeepLcom/deepl-api-nodejs-proxy/main/assets/dashboard-demo.png"alt="Interactive web demo interface for testing translations" />
24
36
</Frame>
25
-
26
-
## Quick Start
27
-
28
-
The proxy includes an interactive setup wizard to get you started quickly. Clone the repo, run the setup, and start translating from your browser. Check out the [GitHub repository](https://github.com/DeepLcom/deepl-api-nodejs-proxy) for full setup instructions and Docker support.
0 commit comments