TypeScript notebooks that run locally and export to markdown
Srcbook is a local, interactive notebook for TypeScript prototyping that keeps execution on your machine and treats AI as a bring-your-own-key option.

What it does
Srcbook is a browser-based notebook for TypeScript that executes locally via Node.js. You write and run TypeScript cells, embed Mermaid diagrams, and export results as .src.md markdown files. If you add an API key—Anthropic’s claude-3-5-sonnet-latest is recommended—you can use built-in AI features to explore and iterate on ideas.
The interesting bit It treats TypeScript as a notebook-first language rather than a compile-and-build affair, giving you a REPL-like loop inside a web UI without shipping code to a remote runtime.
Key highlights
- Core notebook execution happens entirely on your machine via Node.js
- Exports notebooks to valid markdown with the
.src.mdextension - Embeds Mermaid diagrams for rich visual annotations
- Serves its web interface from a local CLI process
- Open source under Apache 2.0
Caveats
- The maintainers explicitly state the project is not under active development
- AI features require bringing your own API key; there is no bundled model
- Behavioral analytics are collected by default, though the project claims no PII is gathered and they can be disabled
Verdict Worth a look if you want a sandboxed, local TypeScript scratchpad and can tolerate a dormant codebase. Avoid it if you need actively maintained tooling or a turnkey AI experience.
Frequently asked
- What is srcbookdev/srcbook?
- Srcbook is a local, interactive notebook for TypeScript prototyping that keeps execution on your machine and treats AI as a bring-your-own-key option.
- Is srcbook open source?
- Yes — srcbookdev/srcbook is open source, released under the Apache-2.0 license.
- What language is srcbook written in?
- srcbookdev/srcbook is primarily written in TypeScript.
- How popular is srcbook?
- srcbookdev/srcbook has 3.4k stars on GitHub.
- Where can I find srcbook?
- srcbookdev/srcbook is on GitHub at https://github.com/srcbookdev/srcbook.