[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4845":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":16,"starSnapshotCount":16,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},4845,"tinygo","tinygo-org\u002Ftinygo","tinygo-org","Go compiler for small places. Microcontrollers, WebAssembly (WASM\u002FWASI), and command-line tools. Based on LLVM.","https:\u002F\u002Ftinygo.org",null,"Go",17498,1052,182,416,0,1,11,79,84.47,"Other",false,"dev",true,[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,5,41,42,43],"adafruit","arduino","arm","avr","esp32","gpio","i2c","llvm","microbit","microcontroller","nrf51","nrf52","samd21","spi","stm32","wasi","wasm","webassembly","2026-06-12 04:00:23","# TinyGo - Go compiler for small places\n\n[![Linux](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Flinux.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Flinux.yml) [![macOS](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fbuild-macos.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fbuild-macos.yml) [![Windows](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fwindows.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fwindows.yml) [![Docker](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fdocker.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fdocker.yml) [![Nix](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fnix.yml\u002Fbadge.svg?branch=dev)](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo\u002Factions\u002Fworkflows\u002Fnix.yml) [![CircleCI](https:\u002F\u002Fcircleci.com\u002Fgh\u002Ftinygo-org\u002Ftinygo\u002Ftree\u002Fdev.svg?style=svg)](https:\u002F\u002Fcircleci.com\u002Fgh\u002Ftinygo-org\u002Ftinygo\u002Ftree\u002Fdev)\n\nTinyGo is a Go compiler intended for use in small places such as microcontrollers, WebAssembly (wasm\u002Fwasi), and command-line tools.\n\nIt reuses libraries used by the [Go language tools](https:\u002F\u002Fgolang.org\u002Fpkg\u002Fgo\u002F) alongside [LLVM](http:\u002F\u002Fllvm.org) to provide an alternative way to compile programs written in the Go programming language.\n\n> [!IMPORTANT]\n> You can help TinyGo with a financial contribution using OpenCollective. Please see https:\u002F\u002Fopencollective.com\u002Ftinygo for more information. Thank you!\n\n## Embedded\n\nHere is an example program that blinks the built-in LED when run directly on any supported board with onboard LED:\n\n```go\npackage main\n\nimport (\n    \"machine\"\n    \"time\"\n)\n\nfunc main() {\n    led := machine.LED\n    led.Configure(machine.PinConfig{Mode: machine.PinOutput})\n    for {\n        led.Low()\n        time.Sleep(time.Millisecond * 1000)\n\n        led.High()\n        time.Sleep(time.Millisecond * 1000)\n    }\n}\n```\n\nThe above program can be compiled and run without modification on an [Arduino Uno](https:\u002F\u002Ftinygo.org\u002Fdocs\u002Freference\u002Fmicrocontrollers\u002Fboards\u002Farduino-uno), an [Adafruit Circuit Playground Express](https:\u002F\u002Ftinygo.org\u002Fdocs\u002Freference\u002Fmicrocontrollers\u002Ffeatured\u002Fcircuitplay-express), a [Seeed Studio XIAO-ESP32S3](https:\u002F\u002Ftinygo.org\u002Fdocs\u002Freference\u002Fmicrocontrollers\u002Ffeatured\u002Fxiao-esp32s3) or any of the many supported boards that have a built-in LED, just by setting the correct TinyGo compiler target. For example, this compiles and flashes an Arduino Uno:\n\n```shell\ntinygo flash -target arduino-uno examples\u002Fblinky1\n```\n\n## WebAssembly\n\nTinyGo is very useful for compiling programs both for use in browsers (WASM) as well as for use on servers and other edge devices (WASI).\n\nTinyGo programs can run in [Fastly Compute](https:\u002F\u002Fwww.fastly.com\u002Fdocumentation\u002Fguides\u002Fcompute\u002Fgo\u002F), [Fermyon Spin](https:\u002F\u002Fdeveloper.fermyon.com\u002Fspin\u002Fgo-components), [wazero](https:\u002F\u002Fwazero.io\u002Flanguages\u002Ftinygo\u002F) and many other WebAssembly runtimes.\n\nHere is a small TinyGo program for use by a WASI host application:\n\n```go\npackage main\n\n\u002F\u002Fgo:wasmexport add\nfunc add(x, y uint32) uint32 {\n\treturn x + y\n}\n```\n\nThis compiles the above TinyGo program for use on any WASI Preview 1 runtime:\n\n```shell\ntinygo build -buildmode=c-shared -o add.wasm -target=wasip1 add.go\n```\n\nYou can also use the same syntax as Go 1.24+:\n\n```shell\nGOOS=wasip1 GOARCH=wasm tinygo build -buildmode=c-shared -o add.wasm add.go\n```\n\n## Installation\n\nSee the [getting started instructions](https:\u002F\u002Ftinygo.org\u002Fgetting-started\u002F) for information on how to install TinyGo, as well as how to run the TinyGo compiler using our Docker container.\n\n## Supported targets\n\n### Embedded\n\nYou can compile TinyGo programs for over 150 different microcontroller boards.\n\nFor more information, please see https:\u002F\u002Ftinygo.org\u002Fdocs\u002Freference\u002Fmicrocontrollers\u002F\n\n### WebAssembly\n\nTinyGo programs can be compiled for both WASM and WASI targets.\n\nFor more information, see https:\u002F\u002Ftinygo.org\u002Fdocs\u002Fguides\u002Fwebassembly\u002F\n\n### Operating Systems\n\nYou can also compile programs for Linux, macOS, and Windows targets.\n\nFor more information:\n\n- Linux https:\u002F\u002Ftinygo.org\u002Fdocs\u002Fguides\u002Flinux\u002F\n\n- macOS https:\u002F\u002Ftinygo.org\u002Fdocs\u002Fguides\u002Fmacos\u002F\n\n- Windows https:\u002F\u002Ftinygo.org\u002Fdocs\u002Fguides\u002Fwindows\u002F\n\n## Currently supported features:\n\nFor a description of currently supported Go language features, please see [https:\u002F\u002Ftinygo.org\u002Flang-support\u002F](https:\u002F\u002Ftinygo.org\u002Flang-support\u002F).\n\n## Documentation\n\nDocumentation is located on our web site at [https:\u002F\u002Ftinygo.org\u002F](https:\u002F\u002Ftinygo.org\u002F).\n\nYou can find the web site code at [https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo-site](https:\u002F\u002Fgithub.com\u002Ftinygo-org\u002Ftinygo-site).\n\n## Getting help\n\nIf you're looking for a more interactive way to discuss TinyGo usage or\ndevelopment, we have a [#TinyGo channel](https:\u002F\u002Fgophers.slack.com\u002Fmessages\u002FCDJD3SUP6\u002F)\non the [Gophers Slack](https:\u002F\u002Fgophers.slack.com).\n\nIf you need an invitation for the Gophers Slack, you can generate one here which\nshould arrive fairly quickly (under 1 min): https:\u002F\u002Finvite.slack.golangbridge.org\n\n## Contributing\n\nYour contributions are welcome!\n\nPlease take a look at our [Contributing](https:\u002F\u002Ftinygo.org\u002Fdocs\u002Fguides\u002Fcontributing\u002F) page on our web site for details.\n\n## Project Scope\n\nGoals:\n\n* Have very small binary sizes. Don't pay for what you don't use.\n* Support for most common microcontroller boards.\n* Be usable on the web using WebAssembly.\n* Good CGo support, with no more overhead than a regular function call.\n* Support most standard library packages and compile most Go code without modification.\n\nNon-goals:\n\n* Be efficient while using zillions of goroutines. However, good goroutine support is certainly a goal.\n* Be as fast as `gc`. However, LLVM will probably be better at optimizing certain things so TinyGo might actually turn out to be faster for number crunching.\n* Be able to compile every Go program out there.\n\n## Why this project exists\n\n> We never expected Go to be an embedded language, and so it’s got serious problems...\n\n-- Rob Pike, [GopherCon 2014 Opening Keynote](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=VoS7DsT1rdM&feature=youtu.be&t=2799)\n\nTinyGo is a project to bring Go to microcontrollers and small systems with a single processor core. It is similar to [emgo](https:\u002F\u002Fgithub.com\u002Fziutek\u002Femgo) but a major difference is that we want to keep the Go memory model (which implies garbage collection of some sort). Another difference is that TinyGo uses LLVM internally instead of emitting C, which hopefully leads to smaller and more efficient code and certainly leads to more flexibility.\n\nThe original reasoning was: if [Python](https:\u002F\u002Fmicropython.org\u002F) can run on microcontrollers, then certainly [Go](https:\u002F\u002Fgolang.org\u002F) should be able to run on even lower level micros.\n\n## License\n\nThis project is licensed under the BSD 3-clause license, just like the [Go project](https:\u002F\u002Fgolang.org\u002FLICENSE) itself.\n\nSome code has been copied from the LLVM project and is therefore licensed under [a variant of the Apache 2.0 license](http:\u002F\u002Freleases.llvm.org\u002F11.0.0\u002FLICENSE.TXT). This has been clearly indicated in the header of these files.\n\nSome code has been copied and\u002For ported from Paul Stoffregen's Teensy libraries and is therefore licensed under PJRC's license. This has been clearly indicated in the header of these files.\n","TinyGo 是一个专为微控制器、WebAssembly (WASM\u002FWASI) 以及命令行工具设计的 Go 语言编译器。它基于 LLVM，能够重用 Go 语言工具库中的组件，从而提供了一种新的编译方式来处理 Go 程序，特别适合资源受限环境下的开发。TinyGo 的核心功能包括支持多种微控制器平台（如 Arduino, ESP32, STM32 等）和 WebAssembly 目标，使得开发者可以轻松地将 Go 代码部署到这些环境中。此外，TinyGo 还提供了丰富的硬件接口库，简化了与外部设备的交互过程。此项目非常适合需要在嵌入式系统或WebAssembly环境中运行Go代码的应用场景，比如物联网设备控制、边缘计算等。",2,"2026-06-11 03:00:51","top_language"]