* start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * update bun library -> v1.0.4 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library -> v4.3.1-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * handle oauth token scope, fix user.SigninCount + token.UserID Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library --> v4.3.2-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update sqlite library -> v1.13.0 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * review changes * start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * review changes Co-authored-by: kim (grufwub) <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
11 KiB
GoToSocial
GoToSocial is an ActivityPub social network server, written in Golang.
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.
With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles, without being tracked or advertised to.
Documentation is at docs.gotosocial.org. You can skip straight to the API documentation here.
Features
Federation
Because GoToSocial uses the ActivityPub protocol, you can hang out not just with people on your home server, but with people all over the Fediverse, seamlessly.
Mastodon API compatible
Full support for modern, elegant apps like Tusky and Pinafore.
Tusky | Pinafore |
---|---|
Granular post settings
You should be able to choose how your posts can be interacted with:
- Local-only posts.
- Rebloggable/boostable toggle.
- 'Likeable' toggle.
- 'Replyable' toggle.
Easy customizability for admins
- Adjustable post length.
- Media upload size settings.
LetsEncrypt
Built-in, automatic support for secure HTTPS with LetsEncrypt.
Light footprint and good performance
Plays nice with lower-powered machines like Raspberry Pi, old laptops and tiny VPSes.
Easy to deploy
No external dependencies apart from a database. Just download the binary + assets (or Docker container), and run.
HTTP signature authentication
Protect your data.
User Safety
Strict privacy enforcement for posts and strict blocking logic.
Subscribeable and shareable allow/denylists for federation
Import and export allowlists and denylists. Subscribe to community-created blocklists (think Adblocker, but for federation!).
Various federation modes
- 'Normal' federation; discover new servers.
- Allowlist-only federation; choose which servers you talk to.
- Zero federation; keep your server private.
Wishlist
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:
- Twitter-style
- Blogpost
- Gallery
- Etc.
Design Ethos
One of the key differences between GoToSocial and other federated server projects is that GoToSocial doesn't include an integrated client front-end (ie., a webapp).
Instead, like Matrix.org's Synapse project, it provides only a server implementation, some static pages, and a well-documented API. On top of this API, developers are free to build any front-end implementation or mobile application that they wish.
Because the server implementation is as generic and flexible/configurable as possible, GoToSocial provides the basis for many different types of social media experience, whether Tumblr-like, Facebook-like, or Twitter-like.
Status
Work began on the project around February 2021, and the project is still in prerelease.
At this point, GoToSocial is already deployable and very useable, and it federates cleanly with most other Fediverse servers (not yet all).
For a detailed view on what's implemented and what's not, and progress made towards a first v0.1.0 (beta) release, see here.
Getting Started
Proper documentation for running and maintaining GoToSocial will be forthcoming in the first release.
For now (if you want to run it pre-alpha, like a beast), check out the quick and dirty getting started guide.
Contributing
You wanna contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you wanna jump in on, and read the CONTRIBUTING.md file for guidelines and setting up your dev environment.
Contact
For questions and comments, you can join our Matrix channel at #gotosocial:superseriousbusiness.org
. This is the quickest way to reach the devs. You can also mail admin@gotosocial.org.
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).
Credits
The following libraries and frameworks are used by GoToSocial, with gratitude 💕
- buckket/go-blurhash; used for generating image blurhashes. GPL-3.0 License.
- coreos/go-oidc; OIDC client library. Apache-2.0 License.
- gin-gonic/gin; speedy router engine. MIT License.
- gin-contrib/cors; Gin CORS middleware. MIT License.
- gin-contrib/sessions; Gin sessions middleware. MIT License
- gin-contrib/static; Gin static page middleware. MIT License
- go-fed/activity; Golang ActivityPub/ActivityStreams library. BSD-3-Clause License.
- go-fed/httpsig; secure HTTP signature library. BSD-3-Clause License.
- google/uuid; UUID generation. BSD-3-Clause License
- go-playground/validator; struct validation. MIT License
- gorilla/websocket; Websocket connectivity. BSD-2-Clause License.
- h2non/filetype; filetype checking. MIT License.
- jackc/pgx; Postgres driver. MIT License.
- microcosm-cc/bluemonday; HTML user-input sanitization. BSD-3-Clause License.
- mitchellh/mapstructure; Go interface => struct parsing. MIT License.
- modernc.org/sqlite; cgo-free port of SQLite. Other License.
- modernc.org/ccgo; c99 AST -> Go translater. BSD-3-Clause License.
- modernc.org/libc; C-runtime services. BSD-3-Clause License.
- mvdan/xurls; URL parsing regular expressions. BSD-3-Clause License.
- nfnt/resize; convenient image resizing. ISC License.
- oklog/ulid; sequential, database-friendly ID generation. Apache-2.0 License.
- ReneKroon/ttlcache; in-memory caching. MIT License.
- russross/blackfriday; markdown parsing for statuses. Simplified BSD License.
- sirupsen/logrus; logging. MIT License.
- stretchr/testify; test framework. MIT License.
- superseriousbusiness/exifremove forked from scottleedavis/go-exif-remove; EXIF data removal. MIT 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. MIT License.
- uptrace/bun; database ORM. BSD-2-Clause License.
- urfave/cli; command-line interface framework. MIT License.
- wagslane/go-password-validator; password strength validation. MIT License.
Image Attribution
Sloth logo made by Freepik from www.flaticon.com.
Sponsorship + Funding
Currently, this project is funded using Liberapay, to put bread on the table while work continues on it.
If you want to sponsor this project, you can do so here! <3
License
GoToSocial is licensed under the GNU AGPL v3 LICENSE.
Copyright (C) 2021 the GoToSocial Authors.