Srcbook (”source-book”) is an open-source TypeScript notebook that runs locally, powered by Node.js. It shines for rapid prototyping, code exploration, and collaborating on ideas. It’s inspired by Python’s Jupyter and Elixir’s Livebook.
Key features:
- Full npm ecosystem access
- AI-assisted coding (OpenAI, Anthropic, or local models), it can iterate on the cells for you with a code diff UX that you accept/reject for a given code cell, generate entire Srcbooks, fix compilation issues, etc…
- Exports to valid markdown for easy sharing and version control
Try it now: `npx srcbook start`
Examples Srcbooks to explore: https://hub.srcbook.com
We built this because we needed a Jupyter-like environment for TypeScript, we hope others like it as much as we do! Feedback and contributions are super appreciated.
(edit: formatting)
Also see this jupyter notebook request https://github.com/typst/typst/issues/962