nowfound

Life & fun · April 14, 2025

Zero-codegen, no-compile TypeScript type inference from Protobufs

🛫 Zero-codegen, no-compile TypeScript `type` inference from protobuf `message`s - nathanhleung/protobuf-ts-types

Zero-codegen, no-compile TypeScript type inference from Protobufs launched on April 14, 2025 with 138 votes, #310 of 7,818 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.

Visit github.com ↗Alternativestop 4% of April 2025

In plain words

Zero-codegen is a TypeScript tool that infers types directly from Protocol Buffer definitions without requiring code generation or compilation steps. It enables developers working with Protobufs to use full type safety in TypeScript projects while skipping traditional build processes. The tool is designed for teams looking to streamline their development workflow and reduce the overhead of maintaining generated code alongside their type definitions.

written from the facts on this page · September 2026

From the sources

Zero-codegen, no-compile TypeScript type inference from protobuf message s. protobuf-ts-types lets you define language-agnostic message types in proto format, then infers TypeScript types from them with no additional codegen. Try on github.dev | View on CodeSandbox | Discuss on Hacker News Proof of concept, not production ready. See Limitations below for more details. In short, aggressive use of TypeScript's template literal types . Annotated example from the source: // Pass the proto string you want to infer `message` names from as a generic parameter type MessageNames < Proto extends string > = // Infer `message` parts using template literal type WrapWithNewlines < Proto > extends `${…from github.com

Does a similar job

all alternatives →
  • Zeroqode 2.02018 · zeroqode.com · ▲286

    Everything you need to build apps without code.

  • TB
    ts-blank-space – fast TypeScript type-stripper2024 · bloomberg.github.io · ▲22

    We've built a new type-stripping compiler for TypeScript source: `ts-blank-space` It's: * 5.6x faster than `tsc` due to zero-codegen * Written in TypeScript * Uses the official TypeScript parser * Accurate&#x2F;preserved source locations * In used in production It uses the same novel approach that inspired Node 22.6.0's `--experimental-strip-types` functionality, released last month

  • TypeScript to GraphQL conversion tool with type inference2018 · github.com · ▲90

    Build Typed GraphQL Queries in TypeScript without the code generation - acro5piano/typed-graphqlify

  • An opinionated and statically-typed TypeScript SDK generator2022 · easysdk.xyz · ▲81

    Hi Hacker News! My name is Sagar, I’m working on a startup called Speakeasy - we’re making all APIs self-service. The platform is currently in beta, but we’re independently launching this tool which you can use to generate language-idiomatic, statically-typed TS SDKs from any public OpenAPI schemas. We hope to continue iterating on this to give devs a way to easily generate high fidelity client SDKs for all the major languages. Inspiration for this product is from past experiences struggling with OpenAPI. I was originally optimistic about using the OpenAPI tools to build out our offering,…

  • AN
    A no-build fullstack SSR TypeScript web framework2025 · jsr.io · ▲75

    Hi HN! I'd love to seek your insights on a fullstack web framework that employs a different approach: no build. It's not a new concept. The folks as Preact mentioned it: https:&#x2F;&#x2F;preactjs.com&#x2F;guide&#x2F;v10&#x2F;no-build-workflows&#x2F; However, in the Web Framework market, I've yet to find many that support both "no build" and "SSR". There's always some sorts of "client mount" and "server mount" and either has (or both have) to go through a build (bundling) process. With the build process, there comes additional maintenance efforts and cognitive load. I've enjoyed wrestling…

  • Just – Zero Config TypeScript Development Tool2022 · github.com · ▲27

    I built a cli tool that gets you started with TypeScript development with zero config. Initially created to solve my own problem but thought it might be useful for others as well. - SWC compiler - TypeScript type check support - Live reload support - .env file support - Path alias support - Typescript script runner - REPL support Please tell me I am not going down a rabbit hole.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, April 2025

the whole month →
  • Hi everyone, I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution. I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz). The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.…

    Dev tools · 2025 · runpyxl.com

  • The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.

    Life & fun · 2025 · filiph.github.io

  • https:&#x2F;&#x2F;the-pocket.github.io&#x2F;Tutorial-Codebase-Knowledge&#x2F;

    AI · 2025 · github.com

  • Whatting▲898

    The iPad diary, just for you

    Work · 2025 · whatting.com

  • Browser with AI companions that automate web tasks

    AI · 2025 · strawberrybrowser.com

  • Peek▲828

    AI personal finance coach that guides you through decisions

    Work · 2025 · peek.money