{"library":"goscript","type":"library","category":null,"description":"GoScript is an experimental Go-to-TypeScript transpiler that converts Go source code at the AST level into TypeScript, enabling sharing algorithms and business logic between Go backends and TypeScript frontends. Current stable version is 0.0.84 with frequent releases (weekly). Unlike GopherJS (full Go runtime in browser), GoScript aims for readable TypeScript output focused on self-contained algorithms. It supports structs, interfaces, generics, goroutines (mapped to async/await), channels, and limited stdlib. Uses JavaScript number type (64-bit float), no unsafe or complex numbers. Mature enough for sharing logic but not full Go apps.","language":"javascript","status":"active","version":"0.0.84","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install goscript","imports":["import { goscript } from 'goscript'","import { compile } from 'goscript'","import { GoscriptOptions } from 'goscript'"]},{"cmd":"yarn add goscript","imports":[]},{"cmd":"pnpm add goscript","imports":[]}],"homepage":null,"github":"https://github.com/aperturerobotics/goscript","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/goscript","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}