Skip to content

Commit 9bdfaea

Browse files
committed
📦 NEW: Readme
1 parent d758235 commit 9bdfaea

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

ecosystem-tests/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Ecosystem Tests
2+
3+
This folder contains minimal tests for the Langbase SDK across different JavaScript runtimes and environments.
4+
5+
## How to Test Each Ecosystem
6+
7+
### Node.js (ESM)
8+
1. `cd node-esm`
9+
2. `npm install`
10+
3. `node index.mjs`
11+
12+
### Node.js (CJS)
13+
1. `cd node-cjs`
14+
2. `npm install`
15+
3. `node index.cjs`
16+
17+
### Bun
18+
1. `cd bun`
19+
2. `bun install`
20+
3. `bun run index.ts`
21+
22+
### Deno
23+
1. `cd deno`
24+
2. Make sure you have Deno installed: https://deno.com/manual/getting_started/installation
25+
3. Run: `deno run --allow-net index.ts`
26+
- If you see type errors in your editor, see comments at the top of `index.ts`.
27+
28+
### Cloudflare Worker
29+
1. `cd cf-worker`
30+
2. `npm install`
31+
3. Deploy or run locally using a tool like [`wrangler`](https://developers.cloudflare.com/workers/wrangler/):
32+
- `wrangler dev index.ts`
33+
34+
---
35+
36+
- Make sure to set your `LANGBASE_API_KEY` (or replace `'YOUR_API_KEY'` in the code) for tests that require authentication.
37+
- Each subfolder contains a `README.md` with more specific instructions if needed.

0 commit comments

Comments
 (0)