{"id":83310,"title":"Srcbook: TypeScript notebooks","tagline":"Meet Srcbook, the best way to prototype in TypeScript!","body":"**TLDR**: We recently launched a new open-source application for prototyping in TypeScript: [**Srcbook**](https://srcbook.com/) (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.\n\n[**https://www.loom.com/share/f0ea7257d9c544848f4128cf0ccba8ae?sid=d5a51920-8c37-4b10-90ee-414170dfeb5d**](https://www.loom.com/share/f0ea7257d9c544848f4128cf0ccba8ae?sid=d5a51920-8c37-4b10-90ee-414170dfeb5d)\n\n### Origin story\n\nWe 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.\n\n### The product\n\nSrcbook is a beautiful, open-source, local-first application to write and iterate on TypeScript code. It’s available today on npm: `npx srcbook start`\n\n![uploaded image](/media/?type=post\u0026id=83310\u0026key=user_uploads/1399285/1af6e324-e52a-4d49-8e35-27af1b5dd4b5)\n\nSome key features:\n\n* Full npm ecosystem access\n* AI-assisted coding (OpenAI, Anthropic, or local models), with notebook-specific advantages and a natural “pair-programmer” UX\n* Exports to valid markdown for easy sharing and version control\n\nWe recently [launched on HN](https://news.ycombinator.com/item?id=41291700) and devs really seem to like it, all our graphs started looking like this!\n\n![uploaded image](/media/?type=post\u0026id=83310\u0026key=user_uploads/1399285/a040cd03-a61f-4767-b524-50b285aa9bd3)\n\n### Demo\n\nIn this video, you can see Nick using the genAI features to bootstrap a CLI-based chess game in a few minutes.\n\n\u003chttps://www.loom.com/share/a212e1fd49a04c548c09125a96a1836f\u003e\n\n### Asks\n\nTry Srcbook out! It’s free, just `npm srcbook start` in any terminal.\n\nStarring us on [GitHub](https://github.com/srcbookdev/srcbook/tree/main) 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](https://hub.srcbook.com).\n\n![uploaded image](/media/?type=post\u0026id=83310\u0026key=user_uploads/1399285/8bab03fa-f71f-43bb-9639-152a83cfb733)\n\nPS: We’re [Ben](https://linkedin.com/in/bereinhart) and [Nick](https://linkedin.com/in/nicholas-charriere), 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!","slug":"Lfi-srcbook-typescript-notebooks","created_at":"2024-08-22T17:06:51.212Z","updated_at":"2026-04-20T04:21:37.157Z","total_vote_count":31,"url":"https://www.ycombinator.com/launches/Lfi-srcbook-typescript-notebooks","share_image_url":"https://www.ycombinator.com/media/?type=post\u0026id=83310\u0026key=user_uploads/1399285/8bab03fa-f71f-43bb-9639-152a83cfb733","company":{"id":29115,"name":"Mocha","slug":"mocha","url":"https://getmocha.com","logo":"https://bookface-images.s3.amazonaws.com/small_logos/e2e9ab5d9d14600d56cfc241294be2559fffc5f6.png","batch":"Summer 2023","industry":"B2B","tags":["Artificial Intelligence","No-code","Web Development"],"search_path":"https://bookface.ycombinator.com/company/29115"}}