frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Guts – convert Golang types to TypeScript

https://github.com/coder/guts
33•emyrk•1h ago

Comments

cube2222•1h ago
We've been using guts basically since it was published on GitHub (almost a year now), and it's so nice! We have a "custom POST-based JSON-rpc"-style api, so we have request and response bodies defined as Go types, and are generating the whole TS schema from it.

It basically lets you generate typescript types from your Go types. However, it's very customizable - you can post-process the AST. In our case, we have a custom generic Go type that indicates an optional (not nullable) field, and we can easily translate it to optional TS types (e.g. for sparse updates).

All in all, great tool/library, thanks for building it!

Disclaimer: I know a developer at Coder (not the author), who also recommended me guts back then, but am unaffiliated other than that.

emyrk•18m ago
Thrilled to see you got value out of it!
flashgordon•1h ago
I really like the idea of it. My dream has always been to work with "types" first and foremost across any and all languages (yep it is a dream). And little tools like these are really nice to see push that boundary.

One feedback - if you are truly comparing with "other" tools - you should be looking at grpc and protoc plugins. I have used to great effect for things like:

1. Generating wasm bindings for grpc services

2. Generating "data access layer" types so you can choose how a api proto is transformed to a data domain type and vice versa

3. MCP bindings for APIs

4. GraphQL/BFF bindings with multiple services

5. All of the above "across" langauges.

The tooling is fantastic and extensible - if you are ok to start with a proto view of your world - it sounds wierd and like an N+1 problem but once you are used to it it is surprisingly fun (ok we may have different ideas of fun)

chrisweekly•48m ago
Type-first is cool. But I think I'll always aim to avoid gRPC, at least in part because grpc-web was so completely broken. I also have an instinctive aversion to binary formats. YMMV, just my PoV.
jsunderland323•31m ago
I’ve had a lot of success with grpc web. Had to patch a couple of things along the way. My biggest misgiving is thinking having bigints would be a good idea (it is not a good idea). Aside from that though, I’ve been happy with it. What felt broken to you?
emyrk•20m ago
I totally agree a proto first approach to your types can pay back in dividends if you need to serialize over different wires.

This project admittedly was developed to solve a specific need in an existing codebase with a lot existing types.

The codebase is also mostly maintain by the backend Golang engineers. Letting them use their native type system increases adoption and buy in.

zikani_03•55m ago
Nice, this looks interesting.

Somewhat related is a project we worked on within Golang community in Malawi: https://github.com/golang-malawi/geneveev

It supports converting types to Zod schemas and Dart classes. Never got around to TypeScript and would be cool to see if we could add support for guts

PhilippGille•14m ago
There's also https://github.com/tkrajina/typescriptify-golang-structs

Which is used for example in the Go GUI framwork Wails: https://github.com/wailsapp/wails/tree/v2.11.0/v2/internal/b...

Gemini 3

https://blog.google/products/gemini/gemini-3/
613•preek•4h ago•496 comments

Google Antigravity

https://antigravity.google/
324•Fysi•3h ago•403 comments

Pebble, Rebble, and a Path Forward

https://ericmigi.com/blog/pebble-rebble-and-a-path-forward/
136•phoronixrly•2h ago•49 comments

A day at Hetzner online in the Falkenstein data center

https://www.igorslab.de/en/a-day-at-hetzner-online-in-the-falkenstein-data-center-insights-into-s...
109•speckx•3h ago•28 comments

Cloudflare Global Network experiencing issues

https://www.cloudflarestatus.com/?t=1
2148•imdsm•8h ago•1389 comments

Strix Halo's Memory Subsystem: Tackling iGPU Challenges

https://chipsandcheese.com/p/strix-halos-memory-subsystem-tackling
37•PaulHoule•2h ago•14 comments

Show HN: Guts – convert Golang types to TypeScript

https://github.com/coder/guts
33•emyrk•1h ago•8 comments

Solving a Million-Step LLM Task with Zero Errors

https://arxiv.org/abs/2511.09030
55•Anon84•3h ago•22 comments

How Quake.exe got its TCP/IP stack

https://fabiensanglard.net/quake_chunnel/index.html
393•billiob•11h ago•89 comments

Do not put your site behind Cloudflare if you don't need to

https://huijzer.xyz/posts/123/do-not-put-your-site-behind-cloudflare-if-you-dont
374•huijzer•6h ago•279 comments

Nearly all UK drivers say headlights are too bright

https://www.bbc.com/news/articles/c1j8ewy1p86o
518•YeGoblynQueenne•5h ago•513 comments

Short Little Difficult Books

https://countercraft.substack.com/p/short-little-difficult-books
104•crescit_eundo•5h ago•62 comments

Show HN: RowboatX – open-source Claude Code for everyday automations

https://github.com/rowboatlabs/rowboat
11•segmenta•47m ago•2 comments

Gemini 3 Pro Model Card

https://pixeldrain.com/u/hwgaNKeH
415•Topfi•7h ago•269 comments

The Miracle of Wörgl

https://scf.green/story-of-worgl-and-others/
103•simonebrunozzi•8h ago•58 comments

NPR to get $36M in settlement to operate US public radio system

https://apnews.com/article/trump-npr-lawsuit-2cc4abfa8cf00fe6f89e387e63eb4a2a
39•geox•1h ago•11 comments

Mathematics and Computation (2019) [pdf]

https://www.math.ias.edu/files/Book-online-Aug0619.pdf
53•nill0•7h ago•10 comments

Experiment: Making TypeScript Immutable-by-Default

https://evanhahn.com/typescript-immutability-experiment/
59•ingve•5h ago•53 comments

Beauty in/of mathematics: tessellations and their formulas

https://www.tandfonline.com/doi/full/10.1080/00036811.2025.2510472
21•QueensGambit•5d ago•0 comments

Google CEO: If an AI bubble pops, no one is getting out clean

https://arstechnica.com/ai/2025/11/googles-sundar-pichai-warns-of-irrationality-in-trillion-dolla...
46•doctorshady•1h ago•34 comments

I've Wanted to Play That 'Killer Shark' Arcade Game Briefly Seen in 'Jaws'

https://www.remindmagazine.com/article/15694/jaws-arcade-video-game-killer-shark-atari-sega-elect...
32•speckx•4d ago•15 comments

When 1+1+1 Equals 1

https://mathenchant.wordpress.com/2024/12/19/when-111-equals-1/
4•surprisetalk•4d ago•0 comments

Ruby 4.0.0 Preview2 Released

https://www.ruby-lang.org/en/news/2025/11/17/ruby-4-0-0-preview2-released/
170•pansa2•6h ago•60 comments

A squeaky nail, or the wheel that sticks out

https://prashanth.world/squeaky-nail/
7•mangoman•1w ago•8 comments

How many video games include a marriage proposal? At least one

https://32bits.substack.com/p/under-the-microscope-ncaa-basketball
312•bbayles•5d ago•76 comments

GoSign Desktop RCE flaws affecting users in Italy

https://www.ush.it/2025/11/14/multiple-vulnerabilities-gosign-desktop-remote-code-execution/
45•ascii•7h ago•21 comments

Looking for Hidden Gems in Scientific Literature

https://elicit.com/blog/literature-based-discovery
14•ravenical•6d ago•1 comments

Langfuse (YC W23) Hiring OSS Support Engineers in Berlin and SF

https://jobs.ashbyhq.com/langfuse/5ff18d4d-9066-4c67-8ecc-ffc0e295fee6
1•clemo_ra•12h ago

Azure hit by 15 Tbps DDoS attack using 500k IP addresses

https://www.bleepingcomputer.com/news/microsoft/microsoft-aisuru-botnet-used-500-000-ips-in-15-tb...
463•speckx•1d ago•290 comments

The surprising benefits of giving up

https://nautil.us/the-surprising-benefits-of-giving-up-1248362/
186•jnord•14h ago•147 comments