AI Updates Newsletter is a modern, beautifully designed newsletter subscription application that provides subscribers with the latest insights, trends, and developments in artificial intelligence. Built with React and Vite, featuring a stunning glass-morphism UI and powered by Supabase for secure data storage.
- ✅ Stunning UI/UX - Glass-morphism design with smooth animations
- ✅ Real-time Database - Secure storage with Supabase
- ✅ Form Validation - Client-side and server-side validation
- ✅ Responsive Design - Works perfectly on all devices
- ✅ Loading States - Visual feedback during operations
- ✅ Error Handling - Detailed error messages with user-friendly UI
- ✅ Welcome Animation - Engaging on-load experience
- ✅ Custom Favicon - Professional branding
- ✅ GitHub Integration - Easy social connection
This project features intelligent automation using n8n:
- User subscribes via React frontend
- Data stored in Supabase with timezone information
- n8n workflow triggers daily at scheduled time
- Workflow fetches all subscribers from Supabase
- AI-generated content is personalized based on subscriber data
- Automated emails sent to all subscribers
- Delivery tracking and error handling
- Automated daily trigger for newsletter distribution
- Supabase database integration for subscriber retrieval
- Email service integration for delivery
- Error handling and retry logic
- Timezone-aware scheduling
This eliminates manual newsletter management and ensures consistent, timely delivery of AI insights to all subscribers.
By subscribing to our AI Updates Newsletter, you'll receive:
- 🤖 Latest AI Trends - Stay ahead with cutting-edge insights
- 📚 Educational Content - In-depth analysis of AI technologies
- 🌐 Industry News - Updates on major AI advancements
- 🔥 Exclusive Resources - Access to curated AI tools and resources
- 💡 Practical Applications - Real-world AI use cases and implementations
- 🗓️ Daily Updates - Regular newsletter delivery to your inbox
| Technology | Description |
|---|---|
| React | JavaScript library for building user interfaces |
| Vite | Next-generation frontend build tool |
| Supabase | Open-source Firebase alternative with PostgreSQL |
| CSS3 | Styling with modern CSS features |
| JavaScript | Programming language for interactive web development |
@supabase/supabase-js- Official Supabase client library
@vitejs/plugin-react- Vite plugin for React projectseslint- JavaScript linting toolvite- Build tool for modern web projects
- Node.js (v16 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/your-username/ai-newsletter.git- Navigate to the project directory:
cd ai-newsletter- Install dependencies:
npm install
# or
yarn install- Create a
.envfile in the root directory and add your Supabase credentials:
VITE_SUPABASE_URL=your-supabase-project-url
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key- Start the development server:
npm run dev- Open your browser and navigate to http://localhost:5173
To run this project, you need to add the following environment variables to your .env file:
VITE_SUPABASE_URL - Your Supabase project URL (get from your Supabase dashboard)
VITE_SUPABASE_ANON_KEY - Your Supabase anon key (get from your Supabase dashboard)
- Create a Supabase account at supabase.com
- Create a new project in your Supabase dashboard
- Get your Project URL and Anonymous Key under Project Settings → API
- Run the following SQL in your SQL Editor to create the database table:
CREATE TABLE newsletter_subscribers (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
email TEXT NOT NULL UNIQUE,
timezone TEXT, -- Store timezone as string (e.g., "Asia/Karachi", "America/New_York")
created_at TIMESTAMP WITH TIME ZONE DEFAULT TIMEZONE('utc'::text, NOW()) NOT NULL
);
-- Enable Row Level Security
ALTER TABLE newsletter_subscribers ENABLE ROW LEVEL SECURITY;
-- Create a policy to allow public insertions
CREATE POLICY "Allow public insertions" ON newsletter_subscribers
FOR INSERT TO authenticated, anon
WITH CHECK (true);- Build the project:
npm run build- The build files will be available in the
distdirectory - Deploy the
distdirectory to your preferred hosting platform
Contributions are welcome! Here's how you can contribute:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
MuhammadUsmanGM - muhammadusman5965etc@gmail.com
Project Link: https://github.com/your-username/ai-newsletter
Made with ❤️ using React, Vite, and Supabase
This is the type of mail you will get
