app | ||
config | ||
embed | ||
hook-darcs | ||
hook-git | ||
migrations | ||
src | ||
templates | ||
test | ||
th | ||
.ghci | ||
.gitignore | ||
API.md | ||
AUTHORS.md | ||
CHANGELOG.md | ||
COPYING | ||
COPYING.AGPL3 | ||
COPYING.CC0 | ||
create-db.sql | ||
docker-compose.yml | ||
Dockerfile | ||
FEDERATION.md | ||
INSTALL.md | ||
prepare-state.sh | ||
README.md | ||
stack.yaml | ||
update-deps.sh | ||
vervis.cabal |
Vervis is a free, open-source federated forge backend server:
- A platform for hosting and collaboration on software projects
- A reference implementation of the ForgeFed forge federation protocol, which is an extension of ActivityPub, the protocol that drives the Fediverse
- A decentralized network in which people on one server can seamlessly collaborate with people from another server, including non-Vervis software that implements ForgeFed
- Vervis is still in pre-alpha phase and not ready for production use!
- Provides a temporary static UI, to be replaced by the Anvil frontend client
Navigation
- Project on Codeberg
- Support the development via Liberapay or OpenCollective
- Official Docker image
- Demo instances:
Features
The current focus is the classic core features for collaboration:
- Repositories
- Git
- Darcs
- Issue tracking
- Pull requests
- And of course federation! Including, eventually, with other forge projects working on implementing federation, such as Forgejo and GitLab
SSH Client Config
Vervis comes with its own SSH server, which usually requires some configuration to be set in your SSH client, if you'd like to be able to push and pull repos via SSH.
Add the following to your ~/.ssh/config
file (or create it if it doesn't
exist), replacing the Host with your instance's domain:
Host fig.fr33domlover.site
KexAlgorithms +diffie-hellman-group1-sha1
ControlMaster no
ForwardAgent no
ForwardX11 no
Ciphers +aes256-cbc
MACs +hmac-sha1
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa
Cloning repositories works over (unauthenticated) HTTPS and (authenticated) SSH.
HTTPS clone:
$ git clone https://vervis.peers.community/repos/rjQ3E vervis
SSH clone and push:
If your system username and Vervis username are identical:
$ git clone vervis.peers.community:rjQ3E vervis
If usernames are different:
$ git clone luke@vervis.peers.community:rjQ3E vervis
Deployment
Tech stack
- Haskell programming language
- Yesod web framework
- PostgreSQL database for most data
- Some data in SQLite databases
- The work-in-progress Anvil frontend uses:
- Svelte
- Skeleton
- Tauri
Requirements
- PostgreSQL 9.5+
Docker
The repository includes deployment configurations for Docker and docker-compose.
- Install Docker
- In
create-db.sql
, update thevervis
DB user's password - Create and edit
config/settings.yml
based onconfig/settings-sample-prod.yml
, remember to set the same DB password here - In
docker-compose.yml
, update the database superuser password (it's the password for thepostgres
superuser, notvervis
) - Create initial state:
./prepare-state.sh
- Ready for launch!
docker-compose up -d
sudo apt install docker-compose docker.io
vim create-db.sql
cp config/settings-sample-prod.yml config/settings.yml
vim config/settings.yml
vim docker-compose.yml
./prepare-state.sh
docker-compose up -d
Manual Installation
For manual/custom installation steps, see INSTALL.md.
Development
To prepare a development environment, follow the instructions in INSTALL.md.
Federation & API
See FEDERATION.md
& API.md
.
Contributing
Mastodon is free, open-source software licensed under AGPLv3.
You can open issues for bugs you've found or features you think are missing. You can also submit pull requests to this repository.
Matrix room: #general-forgefed:matrix.batsense.net
Finding your way in the codebase
Folders:
app
: main functions of the web app, for regular build and for development modesconfig
: Settings the app reads when it launches, some defined by a human and some auto-generated.git
: Internal version control data of this repoembed
: Files embedded into the app source code at build time (using TH)hook-darcs
&hook-git
: main functions for VCS hook programs to be inserted into every repo hosted by the appmigrations
: Helper files for DB migrations: New entities added & model files for migrations involving data manipulationsrc
: Web app Haskell source code, built as a library whose modules are used by the various executablesstatic
: Static files (such as CSS and fonts) served by the web app (no such files at the moment)templates
: UI page and widget templates (.hamlet
for HTML,.cassius
for CSS)test
: No tests have been written yetth
: Domain-specific language snippets, from which code is generated using TH
Files:
.gitignore
th/routes
th/models
update-deps.sh
bindist.sh
Haskell modules in src
:
- Non-
Vervis
modules:- Modules ending with
Local
: - The rest:
- Modules ending with
Vervis.Data
Vervis.Persist
Vervis.Fetch
Vervis.Serve
Vervis.Query
Vervis.Web
- Primary web app support modules:
Vervis.Foundation
Vervis.Application
Vervis.Settings
Vervis.Model
Vervis.Migration
- Primary web app logic modules:
Vervis.Actor
Vervis.Handler
Vervis.Client
Vervis.Ssh
License
AGPLv3+. See COPYING
.
Funding
This project is funded through the NGI Zero Entrust Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.