* serve publickey separately from AP, don't throttle it * update nginx cache documentation, cache main-key too * throttle public key, but separately from other endpoints
|12 hours ago|
|.github||2 days ago|
|.vscode||2 weeks ago|
|archive||5 months ago|
|cmd/gotosocial||12 hours ago|
|docs||12 hours ago|
|example||1 week ago|
|internal||12 hours ago|
|scripts||7 months ago|
|test||2 weeks ago|
|testrig||5 days ago|
|vendor||3 days ago|
|web||1 day ago|
|.dockerignore||8 months ago|
|.drone.yml||2 weeks ago|
|.gitignore||3 months ago|
|.golangci.yml||2 months ago|
|.goreleaser.yml||3 months ago|
|.readthedocs.yaml||2 years ago|
|CODE_OF_CONDUCT.md||2 months ago|
|CONTRIBUTING.md||1 month ago|
|Dockerfile||3 months ago|
|LICENSE||2 years ago|
|README.md||1 month ago|
|ROADMAP.md||2 months ago|
|go.mod||3 days ago|
|go.sum||3 days ago|
|mkdocs.yml||2 weeks ago|
GoToSocial is an ActivityPub social network server, written in Golang.
With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles. All without being tracked or advertised to!
GoToSocial is still ALPHA SOFTWARE. It is already deployable and useable, and it federates cleanly with many other Fediverse servers (not yet all). However, many things are not yet implemented, and there are plenty of bugs! We foresee entering beta somewhere in 2023.
Here's a screenshot of the instance landing page!
Table of Contents
- What is GoToSocial?
- Getting Started
- Third-Party Packaging
- Known Issues
- Sponsorship + Funding
What is GoToSocial?
GoToSocial provides a lightweight, customizable, and safety-focused entryway into the Fediverse, and is comparable to (but distinct from) existing projects such as Mastodon, Pleroma, Friendica, and PixelFed.
If you've ever used something like Twitter or Tumblr (or even Myspace!) GoToSocial will probably feel familiar to you: You can follow people and have followers, you make posts which people can favourite and reply to and share, and you scroll through posts from people you follow using a timeline. You can write long posts or short posts, or just post images, it's up to you. You can also, of course, block people or otherwise limit interactions that you don't want by posting just to your friends.
GoToSocial does NOT use recommendation algorithms or collect data about you to suggest content or 'improve your experience'. The timeline is chronological: whatever you see at the top of your timeline is there because it's just been posted, not because it's been selected as interesting (or controversial) based on your personal profile.
GoToSocial is not designed for 'must-follow' influencers with tens of thousands of followers, and it's not designed to be addictive. Your timeline and your experience are shaped by who you follow and how you interact with people, not by metrics of engagement!
GoToSocial doesn't claim to be better than any other application, but it offers something that might be better for you in particular.
Federation means that your home server is part of a network of servers all over the world that all communicate using the same protocol. Your data is no longer centralized on one company's servers, but resides on your own server and is shared — as you see fit — across a resilient web of servers run by other people.
This federated approach also means that you aren't beholden to arbitrary rules from some gigantic corporation potentially thousands of miles away. Your server has its own rules and culture; your fellow server residents are your neighbors; you will likely get to know your server admins and moderators, or be an admin yourself.
GoToSocial advocates for many small, weird, specialist servers where people can feel at home, rather than a few big and generic ones where one person's voice can get lost in the crowd.
History and Status
This project sprang up in February/March 2021 out of a dissatisfaction with the safety + privacy features of other Federated microblogging/social media applications, and a desire to implement something a little different.
It began as a solo project, and then picked up steam as more developers became interested and jumped on.
Mastodon API compatibility
The Mastodon API has become the de facto standard for client communication with federated servers, so GoToSocial has implemented and extended the API with custom functionality.
If you're used to using Mastodon with Tusky or Pinafore, you'll find using GoToSocial a breeze.
Granular post settings
It's important that when you post something, you can choose who sees it.
GoToSocial offers public/unlisted/friends-only/mutuals-only/and direct posts (slide in DMs! -- with consent).
It also allows you to customize how people interact with your posts:
- Local-only posts.
- Rebloggable/boostable toggle.
- 'Likeable' toggle.
- 'Replyable' toggle.
Customizability for admins
Plenty of config options for admins to play around with, including:
- Easily adjustable post length.
- Media upload size settings.
Easy to run
No external dependencies apart from a database (or just use SQLite!). Simply download the binary + assets (or Docker container), and run.
GoToSocial plays nice with lower-powered machines like Raspberry Pi, old laptops and tiny $5/month VPSes.
Safety + security features
- Built-in, automatic support for secure HTTPS with Let's Encrypt.
- Strict privacy enforcement for posts and strict blocking logic.
- Import and export allow lists and deny lists. Subscribe to community-created block lists (think Ad blocker, but for federation!).
- HTTP signature authentication: GoToSocial requires HTTP Signatures when sending and receiving messages, to ensure that your messages can't be tampered with and your identity can't be forged.
Various federation modes
GoToSocial doesn't apply a one-size-fits-all approach to federation. Who your server federates with should be up to you.
- 'Normal' federation; discover new servers.
- Allow list-only federation; choose which servers you talk to.
- Zero federation; keep your server private.
GoToSocial supports OpenID Connect (OIDC) identity providers, meaning you can integrate it with existing user management services like Auth0, Gitlab, etc., or run your own and hook GtS up to that (we recommend Dex).
Unlike other federated server projects, GoToSocial doesn't include an integrated client front-end (i.e., a web app).
On top of this API, web developers are encouraged to build any front-end implementation or mobile application that they wish, whether Tumblr-like, Facebook-like, Twitter-like, or something else entirely.
These cool things will be implemented if time allows (because we really want them):
- Groups and group posting!
- Reputation-based 'slow' federation.
- Community decision-making for federation and moderation actions.
- User-selectable custom templates for rendering public posts:
All docs for installation and configuration are hosted at docs.gotosocial.org.
Thank you so much to the cool people who have put time and energy into packaging GoToSocial! Known third-party packaging projects are listed below:
- YunoHost GoToSocial Packaging by OniriCorpe.
- GoToSocial Helm Charts:
These packages are not maintained by GoToSocial, so please direct questions and issues to the repository maintainers (and donate to them!).
Client App Issues
GoToSocial works great with Tusky and Pinafore, but some other client applications still need work or have issues connecting to GoToSocial. We're tracking them right here. It's our goal to make any app that's compatible with the Mastodon API work seamlessly with GoToSocial.
Since every ActivityPub server implementation has a slightly different interpretation of the protocol, some servers don't quite federate properly with GoToSocial yet. We're tracking these issues in this project. Eventually, we want to make sure that any implementation that can federate nicely with Mastodon should also be able to federate with GoToSocial.
You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you intend to jump in on, and read the CONTRIBUTING.md file for guidelines and setting up your dev environment.
Instructions for building GoToSocial from source are in the CONTRIBUTING.md file.
For bugs and feature requests, please check to see if there's already an issue, and if not, open one or use one of the above channels to make a request (if you don't have a Github account).
The following libraries and frameworks are used by GoToSocial, with gratitude 💕
- abema/go-mp4; mp4 parsing. MIT License.
- buckket/go-blurhash; used for generating image blurhashes. GPL-3.0 License.
- coreos/go-oidc; OIDC client library. Apache-2.0 License.
- disintegration/imaging; image resizing. MIT License.
- gin-gonic/gin; speedy router engine. MIT License.
- go-fed/httpsig; secure HTTP signature library. BSD-3-Clause License.
- google/uuid; UUID generation. BSD-3-Clause License.
- google/wuffs; png-stripping code. Apache-2.0 License.
- go-playground/validator; struct validation. MIT License.
- gorilla/feeds; RSS + Atom feed generation. BSD-2-Clause License.
- gorilla/websocket; Websocket connectivity. BSD-2-Clause License.
- gruf/go-debug; profiling support in debug builds. MIT License.
- gruf/go-bytesize; byte size parsing / formatting. MIT License.
- gruf/go-cache; object caching. MIT License.
- gruf/go-kv; key-value field formatting. MIT License.
- gruf/go-mutexes; mutex map. MIT License.
- gruf/go-runners; worker pool library. MIT License.
- gruf/go-store; local media store. MIT License.
- h2non/filetype; filetype checking. MIT License.
- jackc/pgx; Postgres driver. MIT License.
- mcuadros/go-syslog; Syslog server library. MIT License.
- microcosm-cc/bluemonday; HTML user-input sanitization. BSD-3-Clause License.
- miekg/dns; DNS utilities. Go License.
- mitchellh/mapstructure; Go interface => struct parsing. MIT License.
- modernc.org/sqlite; cgo-free port of SQLite. Other License.
- mvdan/xurls; URL parsing regular expressions. BSD-3-Clause License.
- oklog/ulid; sequential, database-friendly ID generation. Apache-2.0 License.
- ReneKroon/ttlcache; in-memory caching. MIT License.
- robfig/cron; cron job scheduling. MIT License.
- russross/blackfriday; markdown parsing for statuses. Simplified BSD License.
- spf13/cobra; command-line tooling. Apache-2.0 License.
- spf13/pflag; command-line flag utilities. Apache-2.0 License.
- spf13/viper; configuration management. Apache-2.0 License.
- stretchr/testify; test framework. MIT License.
- superseriousbusiness/exif-terminator; EXIF data removal. GNU AGPL v3 LICENSE.
- superseriousbusiness/activity forked from go-fed/activity; Golang ActivityPub/ActivityStreams library. BSD-3-Clause License.
- superseriousbusiness/oauth2 forked from go-oauth2/oauth2; OAuth server framework and token handling. MIT License.
- go-swagger/go-swagger; Swagger OpenAPI spec generation. Apache-2.0 License.
- tdewolff/minify; HTML minification for Markdown-submitted posts. MIT License.
- uptrace/bun; database ORM. BSD-2-Clause License.
- wagslane/go-password-validator; password strength validation. MIT License.
- ulule/limiter; http rate limit middleware. MIT License.
Sloth logo by Anna Abramek, Copyright (C) 2021-2023 the GoToSocial Authors.
In alphabetical order (... and order of smell):
- f0x [donate with liberapay]
- kim [check out my code @ codeberg, or find me @ @kim]
- tobi [donate with liberapay]
- maloki [@firstname.lastname@example.org]
A huge thank you to CJ from go-fed: without your work, GoToSocial would not have been possible.
Thanks to everyone who has used GtS, opened an issue, suggested something, given funding, and otherwise encouraged or supported the project!
Sponsorship + Funding
Please note: GoToSocial has NO CORPORATE SPONSORS and does not desire corporate sponsorship. In addition, we do not take donations from any of the following: adult websites, affiliate and review websites, casinos and gambling, insurance and financial products (credit), pharmacy products, SEO services and social media buying, VPN and proxy services, and essay writing services. Donations from such sources will be automatically rejected.
If you would like to donate to GoToSocial to keep the lights on during development, you can do so via our OpenCollective page!
If you prefer, we also have an account on LiberaPay! You can find that right here.
Crowdfunded donations to our OpenCollective and Liberapay accounts go towards paying the core team, paying server costs, and paying for GtS art, design, and other bits and bobs.
💕 🦥 💕 Thank you!
Combined with the above crowdfunding sources, 2023 Alpha development of GoToSocial is also funded by a 50,000 EUR grant from the NGI0 Entrust Fund, via NLnet. See here for more details. The successful grant application is archived here.
GoToSocial is free software, licensed under the GNU AGPL v3 LICENSE. We encourage forking and changing the code, hacking around with it, and experimenting.
If you modify the GoToSocial source code, and run that modified code in a way that's accessible over a network, you must make your modifications to the source code available following the guidelines of the license:
[I]f you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software.
Copyright (C) 2021-2023 GoToSocial Authors