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
* docs: review rust vs typescript
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* 📄 Update LLMs.txt snapshot for PR review
* docs: tip
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* 📄 Update LLMs.txt snapshot for PR review
---------
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .llms-snapshots/llms-full.txt
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2349,7 +2349,9 @@ The Rust ecosystem is also more mature, having been supported on the Internet Co
2349
2349
2350
2350
TypeScript support was introduced on Juno in April 2025. While developer-friendly, it currently lacks Node.js polyfills, which means many npm libraries may not work out of the box. That said, we’re actively improving this — and if there's a specific package or feature you'd like to use, reach out. We're happy to explore adding support.
2351
2351
2352
-
It is worth to note that in both environments, there is no standard library or file system access. Functions like reading from or writing to disk aren’t available. Instead, e.g. Juno provides purpose-built features such as Storage.
2352
+
Furthermore, a key advantage of TypeScript is the ability to share the same `j` schema types — built on Zod — across both your frontend and your Satellite functions, providing a single strongly typed source of truth for your data shapes with full type safety end-to-end.
2353
+
2354
+
It is worth noting that in both environments, there is no standard library or file system access. Functions like reading from or writing to disk aren’t available. Instead, e.g. Juno provides purpose-built features such as Storage.
2353
2355
2354
2356
Despite their differences, Rust and TypeScript serverless functions are designed with interoperability in mind. The API surface and structure are intentionally aligned, so migrating from TypeScript to Rust later should feel intuitive and straightforward.
2355
2357
@@ -2360,9 +2362,14 @@ Despite their differences, Rust and TypeScript serverless functions are designed
2360
2362
| **Performance** | ✅ Highest, runs natively in WASM | ⚠️ Interpreted by Rust, slower |
2361
2363
| **Library Support** | ✅ Many crates | ⚠️ Limited (only few Node.js polyfills currently supported) |
2362
2364
| **Ease of Use** | ✅ Developer-friendly (with or without AI) | ✅ Developer-friendly (with or without AI) |
2365
+
| **Shared Types** | — | ✅ Share `j`/Zod schemas across frontend and backend |
2363
2366
| **Migration Path** | — | ✅ Can migrate to Rust easily |
2364
2367
| **Recommended For** | Production apps, performance-critical code | Prototypes, smaller tools, quick dev cycles |
2365
2368
2369
+
**Tip:**
2370
+
2371
+
Even if experimental and less performant, if you're a TypeScript developer, TypeScript functions are the natural choice — you get a familiar workflow and shared types with your frontend out of the box.
2372
+
2366
2373
# Lifecycle
2367
2374
2368
2375
Understand the full journey of Serverless Functions in Juno, from setup and development to deployment and maintenance.
Copy file name to clipboardExpand all lines: docs/build/functions/index.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,9 @@ The Rust ecosystem is also more mature, having been supported on the Internet Co
93
93
94
94
TypeScript support was introduced on Juno in April 2025. While developer-friendly, it currently lacks Node.js polyfills, which means many npm libraries may not work out of the box. That said, we’re actively improving this — and if there's a specific package or feature you'd like to use, reach out. We're happy to explore adding support.
95
95
96
-
It is worth to note that in both environments, there is no standard library or file system access. Functions like reading from or writing to disk aren’t available. Instead, e.g. Juno provides purpose-built features such as Storage.
96
+
Furthermore, a key advantage of TypeScript is the ability to share the same `j` schema types — built on Zod — across both your frontend and your Satellite functions, providing a single strongly typed source of truth for your data shapes with full type safety end-to-end.
97
+
98
+
It is worth noting that in both environments, there is no standard library or file system access. Functions like reading from or writing to disk aren’t available. Instead, e.g. Juno provides purpose-built features such as Storage.
97
99
98
100
Despite their differences, Rust and TypeScript serverless functions are designed with interoperability in mind. The API surface and structure are intentionally aligned, so migrating from TypeScript to Rust later should feel intuitive and straightforward.
99
101
@@ -104,5 +106,12 @@ Despite their differences, Rust and TypeScript serverless functions are designed
104
106
|**Performance**| ✅ Highest, runs natively in WASM | ⚠️ Interpreted by Rust, slower |
105
107
|**Library Support**| ✅ Many crates | ⚠️ Limited (only few Node.js polyfills currently supported) |
106
108
|**Ease of Use**| ✅ Developer-friendly (with or without AI) | ✅ Developer-friendly (with or without AI) |
109
+
|**Shared Types**| — | ✅ Share `j`/Zod schemas across frontend and backend |
107
110
|**Migration Path**| — | ✅ Can migrate to Rust easily |
108
111
|**Recommended For**| Production apps, performance-critical code | Prototypes, smaller tools, quick dev cycles |
112
+
113
+
:::tip
114
+
115
+
Even if experimental and less performant, if you're a TypeScript developer, TypeScript functions are the natural choice — you get a familiar workflow and shared types with your frontend out of the box.
0 commit comments