{"repo":"marcelofarias/botscript","free":true,"listed":false,"github":"https://github.com/marcelofarias/botscript","clone":"git clone https://github.com/marcelofarias/botscript.git","description":"BotScript - A TypeScript superset for the LLM era","language":"TypeScript","stars":13,"topics":["agents","bots","compiler","developer-tools","llm","programming-language","type-safety","typescript"],"license":"MIT","category":"ai-agents","readme_excerpt":"botscript A small TypeScript-superset language for a world where most code is written by machines. Read MANIFESTO.md for the why. Live playground: botscript.org — type .bs on the left, see the desugared TypeScript on the right. The actual compiler bundle, running in your browser, no install required. Or run it locally: pnpm install && pnpm play → http://localhost:5173. .bs vs .ts at a glance The same program in idiomatic TypeScript and in botscript: Async fetch with errors TypeScript botscript Exhaustive shape dispatch TypeScript botscript Pure helper TypeScript botscript The .bs versions are not just shorter — they make properties the TS compiler can't enforce (purity, declared side effects, exhaustive matching, no thrown control-flow) part of the function signature. The whole point. Why this is better for bots than vanilla TypeScript The features above aren't aesthetic — each one closes off a class of bug that language models reliably ship in TypeScript. Pick any row; that's a real failure this codebase has caught more than once: Bot failure mode in TypeScript botscript fix ------------------------------ ------------- Sneaks a fetch() into a function the human asked to be \"pure\" — survives review because the call is three layers deep. uses { … } is part of the signature. A function declared with empty capabilities cannot reach the network. Under ?bs 0.1 the runtime throws on violation; under ?bs 0.2 the compiler also rejects direct stdlib refs at parse time. Forgets a case ","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcelofarias","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcelofarias/botscript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}