138 days ago · 7 min read1369 words · Tech · hide · Fediverse post

This week I finally got an opportunity to sit down and play around with the tsnet library from Tailscale. I used it to build a demo application called TSHelp. This is a short write up of what I built and learned.What is tsnet?Lets start with the description from Tailscale's documentation.tsnet is a library that lets you embed Tailscale inside a Go program. With tsnet, you can programmatically make direct connections to devices on your Tailscale network (known as a tailnet), just like any other device in your tailnet would.Essentially, it's a Go package born out of the Tailscale client open source code. Tailscale use it themselves to build new products and features, so it is as fully-featured as it gets.The primary use case is being able to open a listener on the tailnet to service requests (like a http server, for example). Although it also comes with a number of other tools as well.Native Tailscale applicationsWith tsnet, it is possible to build a program which directly connects to a…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town