HomeLaunchesSrcbook
31

Srcbook: TypeScript notebooks

Meet Srcbook, the best way to prototype in TypeScript!

TLDR: We recently launched a new open-source application for prototyping in TypeScript: Srcbook (pronounced “source-book”). Srcbook is a notebook-style programming environment and the best way to prototype code, explore libraries, learn concepts, and rapidly iterate on your ideas with TypeScript. It runs locally, has powerful AI features, and exports to markdown for maximum portability.

https://www.loom.com/share/f0ea7257d9c544848f4128cf0ccba8ae?sid=d5a51920-8c37-4b10-90ee-414170dfeb5d

Origin story

We are very bullish on AI moving from being a Python discipline in the ML era to a TypeScript discipline in the Generative AI era. We previously tried building multiple products to serve this new TypeScript-AI wave, but we quickly realized that most teams don’t want low-code GUI tools to do evals or build agents with drag-and-drop. What they actually want is to write code but do so with rapid iterations. In Python, they automatically reach out to Jupyter for such workflows, but in TypeScript? We found that there was a large gap… We realized that a TypeScript notebook would be useful for many use cases, not just applied gen-AI, and so we started building.

The product

Srcbook is a beautiful, open-source, local-first application to write and iterate on TypeScript code. It’s available today on npm: npx srcbook start

Some key features:

  • Full npm ecosystem access
  • AI-assisted coding (OpenAI, Anthropic, or local models), with notebook-specific advantages and a natural “pair-programmer” UX
  • Exports to valid markdown for easy sharing and version control

We recently launched on HN and devs really seem to like it, all our graphs started looking like this!

Demo

In this video, you can see Nick using the genAI features to bootstrap a CLI-based chess game in a few minutes.

https://www.loom.com/share/a212e1fd49a04c548c09125a96a1836f

Asks

Try Srcbook out! It’s free, just npm srcbook start in any terminal.

Starring us on GitHub also helps, although what we really want is for you to build cool stuff with Srcbook. If you make a good Srcbook, send it our way, and we will showcase it in the Hub.

PS: We’re Ben and Nick, been building together for 5+ years at Cruise and other startups, and we love TypeScript. If you do too, reach out and let’s chat!