You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ai Writter - Automate document writting publish to platforms
Description
Ai Doc Writter is such a platform that generates content using LLM depending on users topic and detailed prompt and then export to different kind of documents like PDF, Word, Google docs, Google Sheets etc or upload directly to platforms like Google Drive, Woocommerce and so one.
It saves users time effort by generating high quality content using LLMs like Open Ai, Claude, Gemini, Lama etc and automate repetitive work.
It focuses on subscription based SASS model built with Node.js, Express.js, Typescript, Next.js, Langgraph.js.
AI Content Generation: High quality content generation using LLMs like Open Ai, Claude, Gemini, Lama etc and automate repetitive work.
Export Import Products: Export product from AMAZON, ALIEXPRESS, DARAZ and import to google sheet or direct upload to woocommerce after ai writter.
Dynamic Tool Registry: Very Scalable code to add new document types in langgraph in minutes without logic changes.
Multi-Format Export: Binary streaming for .docx, HTML-to-PDF via Puppeteer, and Google Docs, google drive, google sheet, woocommerce API integration.
Subscription Lifecycle: Full Stripe subscription implemented with different type plans.
Authentication & Authorization: JWT access token and refresh token based authentication and role based authorization and redirect with email and reset password otp verification proccess.
Rate Limit: Upstash Redis for global rate-limiting depending on subscription plans.
Middleware: Different type of middlewares to make the platform fully secured like checkAuth, checkSubscriptionPlan, checkRateLimit etc.
Storage Integration: Upload document to cloudinary, delete from cloudinary if necessary to save cost.
Advance Dashboard Analytics: Unlike random dashbaord analytics, it includes deep details like how many tokens are using for each input and output and cost for each response. Platform revenue based on subscriptions and LLM cost etc.
Tools & Technologies
Runtime: Node.js (v20+)
Language: TypeScript
Framework: Express.js, Next.js
Database: PostgreSQL (Prisma ORM)
AI Stack: LangChain, LangGraph JS, Claude 3.5 (Anthropic), Open Ai, Gemini, Lama etc.
# Clone the repository
git clone https://github.com/your-username/repo-name.git
# Navigate to the project directorycd project-folder
# Install dependencies
npm install
# Install Puppeteer Chrome
npx puppeteer browsers install chrome
# Generate Prisma Client
npx prisma generate
# Run database migrations
npx prisma migrate dev
# Start development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Environment variables
PORT=
NODE_ENV=
DATABASE_URL=
# AI Models
GEMINI_API_KEY=
FREEMODEL_API_KEY=
OPENROUTER_API_KEY=
UPSTASH_REDIS_URL=
UPSTASH_REDIS_TOKEN=
# SECURITY
SALT_ROUND=
# CLIENT
CLIENT_URL=
# JWT
JWT_ACCESS_SECRET=
JWT_ACCESS_SECRET_EXPIRES_IN=
JWT_REFRESH_SECRET=
JWT_REFRESH_SECRET_EXPIRES_IN=
JWT_RESET_PASS_SECRET=
JWT_RESET_PASS_SECRET_EXPIRES_IN=
# CLOUDINARY
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
# STRIPE
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_STARTER_PRICE_ID=
STRIPE_PREMIUM_PRICE_ID=
# EMAIL SENDER
EMAIL_SENDER_EMAIL=
EMAIL_SENDER_APP_PASS=
# SOCIAL LOGIN
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=
Frontend Installation Guide
# Clone the repository
git clone https://github.com/your-username/repo-name.git
# Navigate to the project directorycd project-folder
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Environment variables
NEXT_PUBLIC_SERVER_URL=
NODE_ENV=
# jwt
JWT_ACCESS_SECRET=
JWT_REFRESH_SECRET=
NEXT_PUBLIC_STRIPE_STARTER_PRICE_ID=
NEXT_PUBLIC_STRIPE_PREMIUM_PRICE_ID=
About
AI Writer generates content using LLMs depending on the user's topic and detailed prompt and then exports to documents like PDF, Word, Google Docs, Google Sheets, etc or uploads directly to platforms like Google Drive, WooCommerce, and so on. It also exports products from Amazon, AliExpress, Daraz, and imports to sheets or WooCommerce.