Back to list
Tweets2Blog - SaaS Platform for Converting Tweets into Blog Posts

Tweets2Blog - SaaS Platform for Converting Tweets into Blog Posts

2025
NestJSTypeScriptPrismaPostgreSQLRabbitMQOpenAI APIJWTSwaggerNext.jsTailwind CSSNextAuth.jsZustandReact MarkdownTwitterAPIAbacatePay

About the 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.

Tweets2Blog - SaaS Platform for Converting Tweets into Blog Posts - Guilherme Torres