{"id":41215248,"url":"https://github.com/rishabhsai/briefly","last_synced_at":"2026-01-23T00:00:05.553Z","repository":{"id":303678344,"uuid":"1016310504","full_name":"rishabhsai/briefly","owner":"rishabhsai","description":"Briefly transforms your weekly social media activity into a stunning, ready-to-share newsletter—automatically. Experience a modern, interactive simulation where you can see how your posts, videos, and highlights come together in a beautiful recap, powered by AI.","archived":false,"fork":false,"pushed_at":"2025-07-24T19:42:38.000Z","size":14674,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-25T00:55:13.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://briefly-taupe.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishabhsai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-08T20:12:44.000Z","updated_at":"2025-07-24T19:42:42.000Z","dependencies_parsed_at":"2025-07-08T21:35:54.119Z","dependency_job_id":"0523c0df-1bf7-4bbd-aa1a-95196b9e8d21","html_url":"https://github.com/rishabhsai/briefly","commit_stats":null,"previous_names":["rishabhsai/briefly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishabhsai/briefly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2Fbriefly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2Fbriefly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2Fbriefly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2Fbriefly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabhsai","download_url":"https://codeload.github.com/rishabhsai/briefly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabhsai%2Fbriefly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-23T00:00:00.582Z","updated_at":"2026-01-23T00:00:05.547Z","avatar_url":"https://github.com/rishabhsai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Briefly - AI-Powered Newsletter Generator\n\nBriefly is a React-based application that automatically generates newsletters from your social media posts using AI. It supports multiple platforms including LinkedIn, X, Instagram, and YouTube.\n\n## Features\n\n- **Multi-Platform Integration**: Connect your LinkedIn, X, Instagram, and YouTube accounts\n- **AI-Powered Content**: Uses OpenAI GPT-4 to generate engaging newsletter content\n- **Authentication**: Secure user authentication with Clerk\n- **Database Storage**: Save and manage your newsletters with Supabase\n- **Modern UI**: Built with React, TypeScript, Tailwind CSS, and shadcn/ui\n- **Dark Mode**: Full dark mode support with theme toggle\n\n## Tech Stack\n\n- **Frontend**: React 18 + TypeScript + Vite\n- **UI**: Tailwind CSS + shadcn/ui components\n- **Authentication**: Clerk\n- **Database**: Supabase (PostgreSQL)\n- **AI**: OpenAI GPT-4\n- **Social APIs**: RapidAPI for LinkedIn and X\n- **Styling**: CSS-in-JS with Tailwind\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+ \n- npm, yarn, or bun\n- Supabase account\n- Clerk account\n- OpenAI API key\n- RapidAPI key (for LinkedIn and X integration)\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd briefly\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables**\n   Create a `.env` file in the root directory:\n   ```env\n   # Clerk Configuration\n   VITE_CLERK_PUBLISHABLE_KEY=pk_test_your_clerk_key_here\n\n   # Supabase Configuration\n   VITE_SUPABASE_URL=your_supabase_url\n   VITE_SUPABASE_ANON_KEY=your_supabase_anon_key\n\n   # OpenAI Configuration\n   VITE_OPENAI_API_KEY=your_openai_api_key\n\n   # RapidAPI Configuration\n   VITE_RAPIDAPI_KEY=your_rapidapi_key\n   ```\n\n4. **Set up Supabase Database**\n   - Create a new Supabase project\n   - Run the SQL schema from `supabase-schema.sql` in your Supabase SQL editor\n   - Get your project URL and anon key from Settings \u003e API\n\n5. **Set up Clerk Authentication**\n   - Create a new Clerk application\n   - Get your publishable key from the Clerk dashboard\n   - Configure your application settings\n\n6. **Deploy Supabase Edge Functions**\n   ```bash\n   # Install Supabase CLI\n   npm install -g supabase\n\n   # Login to Supabase\n   supabase login\n\n   # Link your project\n   supabase link --project-ref your_project_ref\n\n   # Deploy functions\n   supabase functions deploy scrape-socials\n   supabase functions deploy transcribe\n   ```\n\n7. **Start the development server**\n   ```bash\n   npm run dev\n   ```\n\n   The app will be available at `http://localhost:8081`\n\n## Environment Variables\n\n| Variable | Description | Required |\n|----------|-------------|----------|\n| `VITE_CLERK_PUBLISHABLE_KEY` | Clerk publishable key for authentication | Yes |\n| `VITE_SUPABASE_URL` | Supabase project URL | Yes |\n| `VITE_SUPABASE_ANON_KEY` | Supabase anonymous key | Yes |\n| `VITE_OPENAI_API_KEY` | OpenAI API key for AI content generation | Yes |\n| `VITE_RAPIDAPI_KEY` | RapidAPI key for social media integration | Yes |\n\n## Usage\n\n1. **Sign In**: Use Clerk's authentication to sign in to the application\n2. **Connect Social Accounts**: Add your social media profile URLs\n3. **Generate Newsletter**: Click \"Generate Newsletter\" to create AI-powered content\n4. **Save \u0026 Share**: Save your newsletters to the database or copy content for manual sharing\n\n## API Endpoints\n\n### Supabase Edge Functions\n\n- `POST /functions/v1/scrape-socials`\n  - Body: `{ links: string[], timeRange: string }`\n  - Returns: `{ posts: Post[], newsletter: string }`\n\n- `POST /functions/v1/transcribe`\n  - Body: `{ url: string }`\n  - Returns: `{ text: string }`\n\n## Database Schema\n\n### Users Table\n```sql\nCREATE TABLE users (\n  id UUID PRIMARY KEY,\n  created_at TIMESTAMP WITH TIME ZONE,\n  email TEXT UNIQUE NOT NULL,\n  name TEXT NOT NULL,\n  avatar_url TEXT\n);\n```\n\n### Newsletters Table\n```sql\nCREATE TABLE newsletters (\n  id UUID PRIMARY KEY,\n  created_at TIMESTAMP WITH TIME ZONE,\n  user_id UUID REFERENCES users(id),\n  title TEXT NOT NULL,\n  content TEXT NOT NULL,\n  social_links TEXT[],\n  time_range TEXT,\n  status TEXT CHECK (status IN ('draft', 'published'))\n);\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests if applicable\n5. Submit a pull request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor support, please open an issue in the GitHub repository or contact the development team.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabhsai%2Fbriefly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabhsai%2Fbriefly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabhsai%2Fbriefly/lists"}