Tweets2Blog - SaaS Platform for Converting Tweets into Blog Posts
SaaS platform that turns tweets into blog posts using AI, featuring custom subdomains, subscription system, and asynchronous queue-based processing.
- NestJS
- TypeScript
- Prisma
- PostgreSQL
- RabbitMQ
- OpenAI API
- JWT
- Swagger
- Next.js
- Tailwind CSS
- NextAuth.js
- Zustand
- React Markdown
- TwitterAPI
- AbacatePay

About this project
Platform that converts Twitter/X tweets into blog posts using artificial intelligence. The system operates as a SaaS with custom subdomains, public pages and subscription-based access control.
The architecture is full-stack, composed of a modular NestJS API, a Next.js 14 frontend, PostgreSQL with Prisma, and RabbitMQ for distributed AI job processing. Authentication uses OAuth with Twitter/X via NextAuth and JWT for backend communication.
Key features include Tweet synchronization via TwitterAPI, manual selection of tweets, Markdown post generation using GPT-4o-mini, job status tracking and a complete management dashboard.
The processing flow is distributed: the user authenticates through Twitter, syncs tweets, selects the content to process, the backend creates an AIJob and sends it to RabbitMQ. A consumer processes each job with OpenAI, generates the formatted post, saves it in the database and publishes it under the user's subdomain.
The platform integrates a subscription system using AbacatePay for PIX payments, with automatic plan status updates via webhooks. Deployment uses Railway for backend, frontend, PostgreSQL, RabbitMQ and DNS wildcard configuration for multi-subdomain support.
The solution follows architectural patterns such as Repository, Service Layer, DTOs, Guards, data validation with class-validator, security with rate limiting and environment-based CORS, and complete type-safety using TypeScript and Prisma-generated types.