Universal Inbox is a solution that centralizes all your notifications and tasks in one place to create a unique inbox.
- Synchronize notifications from:
- Github
- Linear
- Google Mail
- ... (more to come)
- Synchronize tasks from:
- Todoist
- Act on notifications:
- delete the notification and a new one will be received if the underlying resource (issue, pull request, project, ...) is updated
- unsubscribe the notification, it is deleted and no new one will be received unless a new mention appears in the underlying resource
- snooze the notification to make it disappear until the next day
- create and plan a task in the connected task service (Todoist for now)
- associate the notification to an existing task
- 2 ways synchronization: Universal Inbox tries as much as possible to keep its notifications state in sync with the upstream service. The upstream service API does not always permit it.
The development environment is using Devbox which is based on Nix. Before setting up the Universal Inbox environment, you have to install Devbox following these instructions.
git clone https://github.com/universal-inbox/universal-inbox.git
The simplest is to install direnv to enter a complete development environment everytime you enter the universal-inbox
directory:
cd universal-inbox
direnv allow
From here, it should keep the environment installed using Devbox.
Without direnv, you can start by installing the development environment:
cd universal-inbox
devbox install
and then enter the environment:
devbox shell
Start PostgreSQL (it will also start Redis):
just run-db
Prepare the database:
just migrate-db
just build-all
Before executing the tests, Postgres and Redis must be running:
just test-all
Universal Inbox uses OpenIDConnect to implement the user authentication and it relies on a third party OIDC service. Thus it must be configured to use this OIDC service using the following configuration variables, using environment variables:
AUTHENTICATION_OIDC_ISSUER_URL=https://oidc.service
AUTHENTICATION_OIDC_INTROSPECTION_URL=https://oidc.service/oauth/v2/introspect
AUTHENTICATION_OIDC_FRONT_CLIENT_ID=1234@universal_inbox
AUTHENTICATION_OIDC_API_CLIENT_ID=1234@universal_inbox
AUTHENTICATION_OIDC_API_CLIENT_SECRET=secret
AUTHENTICATION_USER_PROFILE_URL=https://oidc.service/users/me
Or using a api/config/local.toml
file:
[application.authentication]
oidc_issuer_url = "https://service"
oidc_introspection_url = "https://service/oauth/v2/introspect"
oidc_front_client_id = "1234@universal_inbox"
oidc_api_client_id = "1234@universal_inbox"
oidc_api_client_secret = "secret"
user_profile_url = "https://oidc.service/users/me"
(just run-db
must be stopped as both will start PostgreSQL and Redis):
just run-all
It will start the following services:
postgresql
to store Universal Inbox dataredis
to store the HTTP sessionsnango-server
(and its databasenango-db
) running as Docker container. Nango is used to manage all OAuth2 connections and token with third party services (used to fetch notifications and tasks)ui-api
is the Universal Inbox rest APIui-web
is the Universal Inbox frontend
You can the connect the development application on http://localhost:8080.
To be able to connect to the implemented integrations (for notifications or tasks), Universal Inbox must be declared as an OAuth2 application for each integrations to fetch a Client ID
and a Client Secret
.
Each integrations must then be configured in Nango (accessible at http://localhost:3003). In Nango, the Integration Unique Key
must match the keys declared in api/config/default.yaml
:
[integrations.oauth2.nango_provider_keys]
Github = "github"
Linear = "linear"
GoogleMail = "google-mail"
Todoist = "todoist"
To be able to complete an OAuth2 connection, the Nango server must be accessible from internet. The public address for development is by default https://oauth-dev.universal-inbox.com