Giter Site home page Giter Site logo

elie222 / inbox-zero Goto Github PK

View Code? Open in Web Editor NEW
1.9K 9.0 150.0 8.9 MB

Open source email app to reach inbox zero fast.

Home Page: https://www.getinboxzero.com

License: GNU Affero General Public License v3.0

Shell 0.01% TypeScript 92.47% CSS 0.65% JavaScript 1.86% PLpgSQL 0.07% MDX 4.95%
ai email nextjs openai prisma productivity tailwind typescript turborepo shadcn-ui

inbox-zero's Introduction

Inbox Zero

Open source email app to reach inbox zero fast.
Website · Discord · Issues · Kanban

About

Inbox Zero is an open-source email app whose goal is to help you reach inbox zero fast with AI assistance.

Demo Video

Inbox Zero demo

Key Features

  • Newsletter Cleaner: Easily manage and unsubscribe from newsletters.
  • AI Assistant: Auto respond, archive, label, and forward emails based on plain text prompt rules.
  • Cold Email Blocker: Automatically block cold emails.
  • Email Analytics: Track your email activity with daily, weekly, and monthly stats.
  • New Senders: Identify and block new spam senders.
  • Unreplied Emails: Keep track of emails awaiting responses.
  • Large Email Finder: Free up space by locating and deleting large emails.

Built with

Feature Requests

To request a feature open a GitHub issue. If you don't have a GitHub account you can request features here. Or join our Discord.

Getting Started for Developers

Contributing to the project

We have a public Kanban available here. Join our Discord to discuss tasks and check what's being worked on.

Requirements

Setup

Here's a video on how to set up the project. It covers the same steps mentioned in this document. But goes into greater detail on setting up the external services.

The external services that are required are:

We use Postgres for the database.

You can run Postgres & Redis locally using docker-compose

docker-compose up -d # -d will run the services in the background

Create your own .env file:

cp apps/web/.env.example apps/web/.env
cd apps/web
pnpm install

Set the environment variables in the newly created .env. You can see a list of required variables in: apps/web/env.mjs.

The required environment variables:

  • NEXTAUTH_SECRET -- can be any random string (try using openssl rand -hex 32 for a quick secure random string)
  • GOOGLE_CLIENT_ID -- Google OAuth client ID. More info here
  • GOOGLE_CLIENT_SECRET -- Google OAuth client secret. More info here
  • OPENAI_API_KEY -- OpenAI API key.
  • UPSTASH_REDIS_URL -- Redis URL from Upstash.
  • UPSTASH_REDIS_TOKEN -- Redis token from Upstash.
  • TINYBIRD_TOKEN -- Admin token for your Tinybird workspace (be sure to create an instance in the GCP us-east4 region. This can also be changed via your .env if you prefer a different region). You can also decide to disabled Tinybird and then the analytics and bulk unsubscribe features will be disabled. Set NEXT_PUBLIC_DISABLE_TINYBIRD=true if you decide to disable Tinybird.

To run the migrations:

pnpm prisma migrate dev

To run the app locally:

pnpm run dev

Or from the project root:

turbo dev

Open http://localhost:3000 to view it in your browser. To upgrade yourself to admin visit: http://localhost:3000/admin.

Setting up Google OAuth and Gmail API

You need to enable these scopes in the Google Cloud Console:

https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/contacts

Setting up Tinybird

Follow the instructions here to setup the pipes and datasources.

Optional: If you want to store AI usage stats in Tinybird too, then do the same in /packages/tinybird-ai-analytics.

Set up push notifications via Google PubSub to handle emails in real time

Follow instructions here.

  1. Create a topic
  2. Create a subscription
  3. Grant publish rights on your topic

Set env var GOOGLE_PUBSUB_TOPIC_NAME. When creating the subscription select Push and the url should look something like: https://www.getinboxzero.com/api/google/webhook?token=TOKEN or https://abc.ngrok-free.app/api/google/webhook?token=TOKEN where the domain is your domain. Set GOOGLE_PUBSUB_VERIFICATION_TOKEN in your .env file to be the value of TOKEN.

To run in development ngrok can be helpful:

ngrok http 3000

And then update the webhook endpoint in the Google PubSub subscriptions dashboard.

To start watching emails visit: /api/google/watch/all

inbox-zero's People

Contributors

ajmalwashere avatar atbe avatar elie222 avatar foobarnes avatar ipriyankrajai avatar ketanmehtaa avatar khaja13 avatar priyankrajai avatar rohitt-gupta avatar sharma-shanu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inbox-zero's Issues

Feature Request: Focused Mode Processing

Going though Mails sorting, archiving and replying should be done in focused bursts.

I would love a "Sort Now" Button, that gives you a focused view on you open mails:

  • one Mail at a time
  • reply, archive, Mark todo or set reminder for later to move to next (maybe also a suggested action of the above with their own shortcut)
  • keyboard commands for the above
  • nothing else visible in UI

Mobile Navigation Does not close after clicking on the link

Steps to reproduce:

  1. Visit the mobile version of the inbox-zero landing page.
  2. Click the three lines/menu icon on the top right.
  3. Navigate to any of the mentioned links (Eg, FAQ).
  4. Observe

Actual: - After navigating/redirecting the menu should close
Expected- After redirecting./ navigation it should the menu should close.

Batched Mails

Feature Idea

  • "Receiving" Mails only on predetermined times of the day e.g. 9 am and 16 pm
  • Mails are still there and accessible but Hidden until process window arrives

Oath Screen

Once I input the correct URI in google cloud services everything works normal until i try to sign in because after i click sign in on my acc it shows as succesful but then brings me to this consent screen, and then says mismtached uri even tho I KNOW the URI is correct and i dont have any other projects

Discord links are dead

While not technically an app issue....wanted to join the discord to read up on self hosting.

Store data in browser with Indexeddb

We can store gigabytes of data in an indexddb in the browser.
Use idb package to do this.

The advantage here is extra privacy for users. After this is done we can remove large parts of the backend. The client can load the data itself and use the Gmail API to archive/label/reply.
It will also mean faster loading times.

The core tables to use are:

  • Emails
  • Labels

We may need more tables after for sorting in different ways, or to help with analytics.

Issue with mail navigation

When we go to /compose and then try to navigate back to Inbox or draft or any other navigation it not getting redirected to /mail?type=inbox

AI automation names

Although AI automation text fields have names, the names don't appear next to the text boxes. Names also can't be edited; for example, there could be a field in the edit popup when clicking the pencil icon.

Add Multiple Email Addresses

This tool would be very effective for me (and many others) if we were able to add multiple email addresses in 1 account and management them as well. Like a unibox

Compose email tasks

By @ajmalwashere
Discord link: https://discord.com/channels/1141672763652853840/1191040350375129208/1198229350009552896

  1. Need to disable image component provided by novel's underlying tiptap editor
  2. Disable todolist provided by novel
  3. Integrate novel with reply editor
  4. Add support for displaying names in sent emails. Rightnow names are ignored and only email address is used for sending. need to send in this format (eg: "Ajmal [email protected]" )
  5. Add support for copy pasting email address list to dropdown
  6. backspace or delete key in multi select dropdown should highlight and another backspace key must delete it. behaviour like gmail
  7. Add "cc" and "bcc" fields. Maybe these fields can be hidden because otherwise it will pollute the UI by adding more fields.

Support for any imap server

I would like to use inbox-zero with my own mail-server. Most clients like K-9, Thunderbird or Nextcloud Mail support automatic setup for that case too.

AI email editor

Create a screen to write new emails with AI assistance using Novel.sh:
https://github.com/steven-tey/novel

It has its own package.

It can start off as its own screen and we also add a feature for it to open as modal in the corner of the screen after that. But we can do this task in 2 parts.

Enhancement of Email Analytics with Custom Date Ranges and Comparative Analysis

Dear Maintainers,

I hope this message finds you well. I am writing to propose an enhancement to the CV Voice Cloning Tool that could significantly improve the user experience, particularly in scenarios where the source audio may contain background noise.

Context and Rationale:
Upon utilising the tool, I have observed that the quality of the cloned audio is highly dependent on the purity of the input sample. Recordings with ambient noise tend to result in less accurate voice synthesis. Given that users may not always have access to professional recording environments, the incorporation of robust noise suppression algorithms could be highly beneficial.

Suggested Enhancement:
I propose the integration of advanced noise suppression techniques, such as those utilising deep neural networks, which have shown remarkable efficacy in isolating speech from noisy backgrounds. The implementation of such algorithms could be configured to pre-process the input audio files before they are fed into the voice cloning pipeline.

Potential Benefits:

  • Improved clarity and intelligibility of cloned voices, especially when the source audio is less than ideal.
  • Expansion of the tool's usability to a wider range of environments and recording conditions.
  • Enhanced overall user satisfaction with the quality of the output.

Considerations:

  • The computational overhead introduced by the noise suppression process should be carefully evaluated to maintain a balance between audio quality and performance.
  • User control: It may be prudent to offer users the option to toggle noise suppression on or off, depending on their specific needs.

I am aware that such an enhancement would require a non-trivial amount of development effort and resources. However, I believe the potential to elevate the tool's performance and user experience justifies the investment.

I would be keen to discuss this further and contribute to the preliminary research and testing phases, should you find the suggestion aligns with the project's roadmap.

Thank you for considering this proposal. I look forward to your thoughts and feedback.

Best regards,
yihong1120

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.