Menu

Post image 1
Post image 2
1 / 2
0

Introducing Golt: A Lightweight TypeScript Runtime Powered by Go

DEV Community·Eddy Ortega·18 days ago
#Bx9FEURc
Reading 0:00
15s threshold

Introducing Golt: A Lightweight TypeScript Runtime Powered by Go Over the last few weeks, I have been working on Golt , a small TypeScript/JavaScript runtime written in Go. The idea behind Golt is simple: Write backend scripts and small APIs in TypeScript, then run them inside a Go-powered runtime with a small and explicit API surface. Golt is not trying to be a full Node.js replacement. Instead, it focuses on a more controlled runtime experience where only the APIs provided by Golt are available. Why Golt? I wanted a runtime that could feel familiar for TypeScript developers, but still be powered by Go internally. The goal is to keep the developer experience simple: golt init my-api cd my-api golt run app.ts Enter fullscreen mode Exit fullscreen mode And then write backend code like this: const app = Golt . App (); app . use ( Golt . logger ({ format : " dev " })); app . get ( " / " , ( ctx ) => { ctx . Json ({ message : " Hello from Golt! " , runtime : " golt " , }); }); app .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More