[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73468":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},73468,"Zero","Mail-0\u002FZero","Mail-0","Experience email the way you want with Mail0 – the first open source email app that puts your privacy and safety first. Join the discord: https:\u002F\u002Fmail0.link\u002Fdiscord","https:\u002F\u002Fdiscord.gg\u002FmzJ227YJR",null,"TypeScript",10599,1304,41,15,0,9,12,55,27,98.85,"MIT License",false,"staging",true,[27,28,29,30],"ai","email","privacy","security","2026-06-12 04:01:09","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource srcset=\"apps\u002Fmail\u002Fpublic\u002Fwhite-icon.svg\" media=\"(prefers-color-scheme: dark)\">\n    \u003Cimg src=\"apps\u002Fmail\u002Fpublic\u002Fblack-icon.svg\" alt=\"Zero Logo\" width=\"64\" style=\"background-color: #000; padding: 10px;\"\u002F>\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n# Zero\n\nAn Open-Source Gmail Alternative for the Future of Email\n\n## What is Zero?\n\nZero is an open-source AI email solution that gives users the power to **self-host** their own email app while also integrating external services like Gmail and other email providers. Our goal is to modernize and improve emails through AI agents to truly modernize emails.\n\n## Why Zero?\n\nMost email services today are either **closed-source**, **data-hungry**, or **too complex to self-host**.\n0.email is different:\n\n- ✅ **Open-Source** – No hidden agendas, fully transparent.\n- 🦾 **AI Driven** - Enhance your emails with Agents & LLMs.\n- 🔒 **Data Privacy First** – Your emails, your data. Zero does not track, collect, or sell your data in any way. Please note: while we integrate with external services, the data passed through them is not under our control and falls under their respective privacy policies and terms of service.\n- ⚙️ **Self-Hosting Freedom** – Run your own email app with ease.\n- 📬 **Unified Inbox** – Connect multiple email providers like Gmail, Outlook, and more.\n- 🎨 **Customizable UI & Features** – Tailor your email experience the way you want it.\n- 🚀 **Developer-Friendly** – Built with extensibility and integrations in mind.\n\n## Tech Stack\n\nZero is built with modern and reliable technologies:\n\n- **Frontend**: Next.js, React, TypeScript, TailwindCSS, Shadcn UI\n- **Backend**: Node.js, Drizzle ORM\n- **Database**: PostgreSQL\n- **Authentication**: Better Auth, Google OAuth\n\u003C!-- - **Testing**: Jest, React Testing Library -->\n\n## Getting Started\n\n### Video Tutorial\n\nWatch this helpful video tutorial on how to set up Zero locally:\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=yIXLQcjbeEM\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.youtube.com\u002Fvi\u002FyIXLQcjbeEM\u002F0.jpg\" alt=\"Zero Setup Tutorial\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n### Prerequisites\n\n**Required Versions:**\n\n- [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload) (v18 or higher)\n- [pnpm](https:\u002F\u002Fpnpm.io) (v10 or higher)\n- [Docker](https:\u002F\u002Fdocs.docker.com\u002Fengine\u002Finstall\u002F) (v20 or higher)\n\nBefore running the application, you'll need to set up services and configure environment variables. For more details on environment variables, see the [Environment Variables](#environment-variables) section.\n\n### Setup Options\n\nYou can set up Zero in two ways:\n\n\u003Cdetails open>\n\u003Csummary>\u003Cb>Standard Setup (Recommended)\u003C\u002Fb>\u003C\u002Fsummary>\n\n#### Quick Start Guide\n\n1. **Clone and Install**\n\n   ```bash\n   # Clone the repository\n   git clone https:\u002F\u002Fgithub.com\u002FMail-0\u002FZero.git\n   cd Zero\n\n   # Install dependencies\n   pnpm install\n\n   # Start database locally\n   pnpm docker:db:up\n   ```\n\n2. **Set Up Environment**\n\n   - Run `pnpm nizzy env` to setup your environment variables\n   - Run `pnpm nizzy sync` to sync your environment variables and types\n   - Start the database with the provided docker compose setup: `pnpm docker:db:up`\n   - Initialize the database: `pnpm db:push`\n\n3. **Start the App**\n\n   ```bash\n   pnpm dev\n   ```\n\n4. **Open in Browser**\n\n   Visit [http:\u002F\u002Flocalhost:3000](http:\u002F\u002Flocalhost:3000)\n   \u003C\u002Fdetails>\n\n\u003Cdetails open>\n\u003Csummary>\u003Cb>Devcontainer Setup\u003C\u002Fb>\u003C\u002Fsummary>\n\n#### Quick Start guide\n\n1. **Clone and Install**\n\n   ```bash\n   # Clone the repository\n   git clone https:\u002F\u002Fgithub.com\u002FMail-0\u002FZero.git\n   cd Zero\n   ```\n\n   Then open the code in devcontainer and install the dependencies:\n\n   ```\n   pnpm install\n\n   # Start the database locally\n   pnpm docker:db:up\n   ```\n\n2. **Set Up Environment**\n\n   - Run `pnpm nizzy env` to setup your environment variables\n   - Run `pnpm nizzy sync` to sync your environment variables and types\n   - Start the database with the provided docker compose setup: `pnpm docker:db:up`\n   - Initialize the database: `pnpm db:push`\n\n3. **Start The App**\n   ```bash\n   pnpm dev\n   ```\n   Visit [http:\u002F\u002Flocalhost:3000](http:\u002F\u002Flocalhost:3000)\n     \u003C\u002Fdetails>\n\n### Environment Setup\n\n1. **Better Auth Setup**\n\n   - Open the `.env` file and change the BETTER_AUTH_SECRET to a random string. (Use `openssl rand -hex 32` to generate a 32 character string)\n\n     ```env\n     BETTER_AUTH_SECRET=your_secret_key\n     ```\n\n2. **Google OAuth Setup** (Required for Gmail integration)\n\n   - Go to [Google Cloud Console](https:\u002F\u002Fconsole.cloud.google.com)\n   - Create a new project\n   - Add the following APIs in your Google Cloud Project: [People API](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Flibrary\u002Fpeople.googleapis.com), [Gmail API](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Flibrary\u002Fgmail.googleapis.com)\n     - Use the links above and click 'Enable' or\n     - Go to 'APIs and Services' > 'Enable APIs and Services' > Search for 'Google People API' and click 'Enable'\n     - Go to 'APIs and Services' > 'Enable APIs and Services' > Search for 'Gmail API' and click 'Enable'\n   - Enable the Google OAuth2 API\n   - Create OAuth 2.0 credentials (Web application type)\n   - Add authorized redirect URIs:\n     - Development:\n       - `http:\u002F\u002Flocalhost:8787\u002Fapi\u002Fauth\u002Fcallback\u002Fgoogle`\n     - Production:\n       - `https:\u002F\u002Fyour-production-url\u002Fapi\u002Fauth\u002Fcallback\u002Fgoogle`\n   - Add to `.env`:\n\n     ```env\n     GOOGLE_CLIENT_ID=your_client_id\n     GOOGLE_CLIENT_SECRET=your_client_secret\n     ```\n\n   - Add yourself as a test user:\n\n     - Go to [`Audience`](https:\u002F\u002Fconsole.cloud.google.com\u002Fauth\u002Faudience)\n     - Under 'Test users' click 'Add Users'\n     - Add your email and click 'Save'\n\n> [!WARNING]\n> The authorized redirect URIs in Google Cloud Console must match **exactly** what you configure in the `.env`, including the protocol (http\u002Fhttps), domain, and path - these are provided above.\n\n3. **Autumn Setup** (Required for some encryption)\n\n   - Go to [Autumn](https:\u002F\u002Fuseautumn.com\u002F)\n   - For Local Use, click [onboarding](https:\u002F\u002Fapp.useautumn.com\u002Fsandbox\u002Fonboarding) button and generate an Autumn Secret Key\n   - For production, select the production mode from upper left corner and generate and fill the other fields. After that, generate an Autumn Secret Key\n\n   - Add to `.env`:\n\n   ```env\n   AUTUMN_SECRET_KEY=your_autumn_secret\n   ```\n\n4. **Twilio Setup** (Required for SMS Integration)\n\n   - Go to the [Twilio](https:\u002F\u002Fwww.twilio.com\u002F)\n   - Create a Twilio account if you don’t already have one\n   - From the dashboard, locate your:\n\n     - Account SID\n     - Auth Token\n     - Phone Number\n\n   - Add to your `.env` file:\n\n   ```env\n   TWILIO_ACCOUNT_SID=your_account_sid\n   TWILIO_AUTH_TOKEN=your_auth_token\n   TWILIO_PHONE_NUMBER=your_twilio_phone_number\n   ```\n\n### Environment Variables\n\nRun `pnpm nizzy env` to setup your environment variables. It will copy the `.env.example` file to `.env` and fill in the variables for you.\nFor local development a connection string example is provided in the `.env.example` file located in the same folder as the database.\n\n### Database Setup\n\nZero uses PostgreSQL for storing data. Here's how to set it up:\n\n1. **Start the Database**\n\n   Run this command to start a local PostgreSQL instance:\n\n   ```bash\n   pnpm docker:db:up\n   ```\n\n   This creates a database with:\n\n   - Name: `zerodotemail`\n   - Username: `postgres`\n   - Password: `postgres`\n   - Port: `5432`\n\n2. **Set Up Database Connection**\n\n   Make sure your database connection string is in `.env` file. And you have ran `pnpm nizzy sync` to sync the latest env.\n\n   For local development use:\n\n   ```\n   DATABASE_URL=\"postgresql:\u002F\u002Fpostgres:postgres@localhost:5432\u002Fzerodotemail\"\n   ```\n\n3. **Database Commands**\n\n   - **Set up database tables**:\n\n     ```bash\n     pnpm db:push\n     ```\n\n   - **Create migration files** (after schema changes):\n\n     ```bash\n     pnpm db:generate\n     ```\n\n   - **Apply migrations**:\n\n     ```bash\n     pnpm db:migrate\n     ```\n\n   - **View database content**:\n     ```bash\n     pnpm db:studio\n     ```\n     > If you run `pnpm dev` in your terminal, the studio command should be automatically running with the app.\n\n### Sync\n\nBackground: https:\u002F\u002Fx.com\u002Fcmdhaus\u002Fstatus\u002F1940886269950902362\nWe're now storing the user's emails in their Durable Object & an R2 bucket. This allow us to speed things up, a lot.\nThis also introduces 3 environment variables, `DROP_AGENT_TABLES`,`THREAD_SYNC_MAX_COUNT`, `THREAD_SYNC_LOOP`.\n`DROP_AGENT_TABLES`: should the durable object drop the threads table before starting a sync\n`THREAD_SYNC_MAX_COUNT`: how many threads should we sync? max `500` because it's using the same number for the maxResults number from the driver. i.e 500 results per page.\n`THREAD_SYNC_LOOP`: should make sure to sync all of the items inside a folder? i.e if THREAD_SYNC_MAX_COUNT=500 it will sync 500 threads per request until the folder is fully synced. (should be true in production)\n\n## Contribute\n\nPlease refer to the [contributing guide](.github\u002FCONTRIBUTING.md).\n\nIf you'd like to help with translating Zero to other languages, check out our [translation guide](.github\u002FTRANSLATION.md).\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=Mail-0\u002FZero&type=Timeline)](https:\u002F\u002Fwww.star-history.com\u002F#Mail-0\u002FZero&Timeline)\n\n## This project wouldn't be possible without these awesome companies\n\n\u003Cdiv style=\"display: flex; justify-content: center;\">\n  \u003Ca href=\"https:\u002F\u002Fvercel.com\" style=\"text-decoration: none;\">\n    \u003Cimg src=\"public\u002Fvercel.png\" alt=\"Vercel\" width=\"96\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fbetter-auth.com\" style=\"text-decoration: none;\">\n    \u003Cimg src=\"public\u002Fbetter-auth.png\" alt=\"Better Auth\" width=\"96\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Form.drizzle.team\" style=\"text-decoration: none;\">\n    \u003Cimg src=\"public\u002Fdrizzle-orm.png\" alt=\"Drizzle ORM\" width=\"96\"\u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fcoderabbit.com\" style=\"text-decoration: none;\">\n    \u003Cimg src=\"public\u002Fcoderabbit.png\" alt=\"Coderabbit AI\" width=\"96\"\u002F>\n  \u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## 🤍 The team\n\nCurious who makes Zero? Here are our [contributors and maintainers](https:\u002F\u002F0.email\u002Fcontributors)\n","Mail-0\u002FZero 是一个开源的电子邮件应用，旨在提供隐私保护和安全性。该项目允许用户自托管邮件服务，并支持与Gmail等外部邮件提供商集成，通过AI代理技术提升邮件处理能力。其核心功能包括开放源码、数据隐私优先、易于自托管、统一收件箱管理以及高度可定制的界面。采用的技术栈包括Next.js、React、TypeScript等现代前端框架和Node.js、PostgreSQL等后端技术。适用于重视隐私安全、希望拥有更多控制权的个人或企业使用场景。",2,"2026-06-11 03:45:41","high_star"]