TransForma AI is a web-based AI content transformation platform that adapts a single source into audience-specific content based on the required purpose, tone, language, detail level, content style, output type, and output format.
This repository contains the frontend application built with Next.js, React, TypeScript, and Tailwind CSS.
- AI-powered content transformation workspace
- Upload a source document or enter source text directly
- Single-source-file workflow
- Drag-and-drop file upload
- Supports source files:
- DOC
- DOCX
- TXT
- JPG
- JPEG
- PNG
- PPT
- PPTX
- Configure up to 3 outputs in a single transformation request
- Audience-specific transformation
- Communication objective selection
- Tone selection
- English and Hindi output
- Detail-level control
- Multiple content styles
- Multiple output types
- Output formats:
- DOCX
- PPTX
- PNG
- Additional instructions field
- Automatic download of generated output
- Multiple outputs are downloaded as a ZIP archive
- Light/dark theme with saved theme preference
- Responsive interface
The frontend provides options such as:
- School Student
- College Student
- Professional
- Department Head
- General Public
- Government Official
- Researcher
- Media / Journalist
- Teacher / Educator
- Policy Maker
- NGO / Civil Society
- Social Media
- And other audience profiles
Available objectives include:
- Educate
- Briefing
- Awareness
- Reporting
- Public Communication
- Persuasion
- Instruction
- Information Sharing
- Policy Communication
- Decision Support
- Announcement
- Emergency Communication
- Formal
- Professional
- Simple
- Technical
- Friendly
- Authoritative
- Neutral
- Persuasive
- Urgent
- Informative
- Conversational
- English
- Hindi
- Concise
- Moderate
- Detailed
- Comprehensive
The frontend supports styles including:
- Informative
- Educational
- Executive
- Public Information
- Technical
- Policy
- News / Media
- Conversational
- Instructional
- Analytical
- Social-media-specific styles such as LinkedIn, Instagram, YouTube, Threads, TikTok, Twitter/X, and Facebook formats
- Executive Summary
- Press Release
- Advisory
- Social Media Post
- Presentation
- Study Notes
- Briefing Note
- Report
- Speech
- Public Notice
- FAQ
- Infographic Content
- Policy Summary
- Meeting Minutes
- Newsletter
- Article
- DOCX
- PPTX
- PNG
- Open the Transform workspace.
- Add source text or upload one supported source file.
- Configure the first output.
- Add up to two additional output configurations if required.
- Provide additional instructions if needed.
- Click the transformation action.
- The frontend sends the source and output configurations to the backend API.
- A single generated output is downloaded directly.
- When multiple outputs are requested, the backend returns a ZIP archive containing the generated files.
- Next.js 16.3.4
- React 19.2.8
- TypeScript
- Tailwind CSS 4
- Next Themes
- ESLint
transforma-ai-frontend/
├── app/
│ ├── page.tsx
│ ├── transform/
│ │ └── page.tsx
│ ├── globals.css
│ └── layout.tsx
├── public/
├── .env.example
├── package.json
├── tsconfig.json
├── postcss.config.mjs
└── eslint.config.mjs
Make sure you have:
- Node.js
- npm
installed on your system.
Clone the repository and install dependencies:
git clone https://github.com/aryancodesdaily/transforma-ai-frontend.git
cd transforma-ai-frontend
npm installCreate a .env.local file in the project root:
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000For a deployed backend, set the variable to the backend API URL:
NEXT_PUBLIC_API_URL=https://transforma-ai-api.onrender.comThe frontend uses NEXT_PUBLIC_API_URL to send transformation requests to the backend /transform endpoint.
Start the development server:
npm run devOpen:
http://localhost:3000
Create a production build:
npm run buildStart the production server:
npm startRun ESLint with:
npm run lintThe frontend communicates with the TransForma AI backend using a multipart/form-data request.
The request contains:
source_textfileadditional_instructionsoutputs
Each output configuration contains:
{
"output_number": 1,
"audience": "General Public",
"objective": "Public Communication",
"tone": "Professional",
"language": "English",
"detail_level": "Concise",
"content_style": "Informative",
"output_type": "Executive Summary",
"output_format": "PDF"
}The backend returns:
- A generated file when one output is requested
- A ZIP archive when multiple outputs are requested
The frontend can be deployed to platforms that support Next.js, including Vercel.
For deployment, configure:
NEXT_PUBLIC_API_URL=https://your-backend-urlThe backend must also allow the deployed frontend origin through its CORS configuration.
TransForma AI
AI-Powered Content Transformation Platform
Frontend repository: