Coder Social home page Coder Social logo

Universal Inbox

Apache 2 License Coverage Status CI

Universal Inbox is a solution that centralizes all your notifications and tasks in one place to create a unique inbox.

Features

  • 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.

Development

Pre-requisites

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.

Environment setup

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.

Environment setup (bis)

Without direnv, you can start by installing the development environment:

cd universal-inbox
devbox install

and then enter the environment:

devbox shell

Setup PostgreSQL

Start PostgreSQL (it will also start Redis):

just run-db

Prepare the database:

just migrate-db

Build the application

just build-all

Execute tests

Before executing the tests, Postgres and Redis must be running:

just test-all

OpenIDConnect service

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"

Start the application

(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 data
  • redis to store the HTTP sessions
  • nango-server (and its database nango-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 API
  • ui-web is the Universal Inbox frontend

You can the connect the development application on http://localhost:8080.

Configure Nango

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

License

Apache 2 License

Universal Inbox's Projects

universal-inbox icon universal-inbox

Universal Inbox allows you to manage all your notifications in a single place and convert them into tasks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.