Skip to content

TheWorthyOne/Manus-Worthy_Co_AI_Document

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worthy & Co. - AI Document Generator for Freelancers

Professional documents in seconds. Generate proposals, contracts, invoices, NDAs, statements of work, and receipts with AI.

🌐 Live Site: theworthycorp.com


Overview

Worthy & Co. is a SaaS platform that helps freelancers, consultants, and independent contractors create professional business documents using AI. Built with modern web technologies and designed for speed, reliability, and ease of use.

Key Features

  • AI-Powered Document Generation - Create proposals, contracts, invoices, NDAs, SOWs, and receipts in seconds
  • Smart Templates - Pre-built templates optimized for freelance business needs
  • Client Management - Store and organize client information for faster document creation
  • Document History - Access and reuse previously generated documents
  • Bulk Generation - Upload CSV files to generate multiple documents at once (Pro)
  • Export Options - Download as Markdown, PDF, or DOCX
  • Stripe Integration - Secure payment processing for Pro subscriptions
  • SEO-Optimized Blog - Marketing content hub with freelance business resources
  • Google Analytics - Track visitor behavior and conversions

Tech Stack

Frontend

  • React 19 - Modern UI library with latest features
  • TypeScript - Type-safe development
  • Tailwind CSS 4 - Utility-first styling
  • shadcn/ui - High-quality component library
  • Wouter - Lightweight routing
  • React Helmet Async - SEO meta tags management

Backend

  • Express 4 - Node.js web framework
  • tRPC 11 - End-to-end typesafe APIs
  • Drizzle ORM - Type-safe database queries
  • MySQL/TiDB - Relational database
  • Superjson - Enhanced JSON serialization

Infrastructure

  • Manus Platform - Hosting and deployment
  • Stripe - Payment processing
  • S3-compatible Storage - File storage
  • OAuth 2.0 - User authentication
  • Google Analytics 4 - Analytics tracking

AI & Services

  • OpenAI API - Document generation
  • Manus LLM Service - AI integration layer

Project Structure

freelanceflow_ai/
├── client/                 # Frontend React application
│   ├── public/            # Static assets
│   ├── src/
│   │   ├── components/    # Reusable UI components
│   │   ├── pages/         # Page-level components
│   │   ├── contexts/      # React contexts
│   │   ├── hooks/         # Custom hooks
│   │   ├── lib/           # Utilities and tRPC client
│   │   └── App.tsx        # Routes and layout
├── server/                # Backend Express + tRPC
│   ├── _core/             # Framework plumbing (OAuth, context, etc.)
│   ├── db.ts              # Database query helpers
│   ├── routers.ts         # tRPC procedures
│   ├── stripe.ts          # Stripe integration
│   ├── webhookHandler.ts  # Stripe webhook handling
│   └── notifications.ts   # Owner notifications
├── drizzle/               # Database schema and migrations
│   └── schema.ts          # Table definitions
├── storage/               # S3 storage helpers
└── shared/                # Shared types and constants

Getting Started

Prerequisites

  • Node.js 22.x
  • pnpm (package manager)
  • MySQL or TiDB database
  • Stripe account (for payments)
  • Manus account (for deployment)

Installation

  1. Clone the repository:
git clone https://github.com/TheWorthyOne/Manus-Worthy_Co_AI_Document.git
cd Manus-Worthy_Co_AI_Document
  1. Install dependencies:
pnpm install
  1. Set up environment variables (see Environment Variables section below)

  2. Push database schema:

pnpm db:push
  1. Start development server:
pnpm dev

The app will be available at http://localhost:3000


Environment Variables

The following environment variables are automatically injected by the Manus platform:

Database

  • DATABASE_URL - MySQL/TiDB connection string

Authentication

  • JWT_SECRET - Session cookie signing secret
  • VITE_APP_ID - Manus OAuth application ID
  • OAUTH_SERVER_URL - Manus OAuth backend base URL
  • VITE_OAUTH_PORTAL_URL - Manus login portal URL (frontend)
  • OWNER_OPEN_ID - Owner's OpenID
  • OWNER_NAME - Owner's name

Stripe

  • STRIPE_SECRET_KEY - Stripe API secret key
  • STRIPE_WEBHOOK_SECRET - Stripe webhook signing secret
  • VITE_STRIPE_PUBLISHABLE_KEY - Stripe publishable key (frontend)

Manus Services

  • BUILT_IN_FORGE_API_URL - Manus built-in APIs (LLM, storage, notifications)
  • BUILT_IN_FORGE_API_KEY - Bearer token for server-side API access
  • VITE_FRONTEND_FORGE_API_KEY - Bearer token for frontend API access
  • VITE_FRONTEND_FORGE_API_URL - Manus APIs URL for frontend

Analytics

  • VITE_ANALYTICS_ENDPOINT - Manus analytics endpoint
  • VITE_ANALYTICS_WEBSITE_ID - Manus analytics website ID

Branding

  • VITE_APP_TITLE - Application title
  • VITE_APP_LOGO - Application logo URL

Database Schema

Core Tables

users - User accounts and authentication

  • id, openId, email, name, avatar, role, createdAt

subscriptions - User subscription tiers

  • id, userId, tier (free/pro), stripeCustomerId, stripeSubscriptionId, status, currentPeriodEnd

documents - Generated documents

  • id, userId, type, title, content, metadata, createdAt

clients - Client information

  • id, userId, name, email, company, createdAt

blogPosts - Blog content

  • id, title, slug, excerpt, content, category, readTimeMinutes, published, publishedAt, authorId

API Routes

tRPC Procedures

All API calls go through /api/trpc with end-to-end type safety.

Public Procedures:

  • auth.me - Get current user
  • auth.logout - Sign out

Protected Procedures:

  • subscription.getStatus - Get user's subscription tier and usage
  • documents.generate - Generate a new document
  • documents.list - List user's documents
  • clients.create - Add a new client
  • clients.list - List user's clients
  • stripe.createCheckoutSession - Create Stripe checkout
  • stripe.createBillingPortalSession - Access billing portal

Webhooks

  • /api/stripe/webhook - Stripe webhook handler for subscription events

Deployment

This project is designed to be deployed on the Manus platform, which handles:

  • Automatic SSL certificates
  • Custom domain management
  • Database provisioning
  • Environment variable injection
  • OAuth integration
  • Analytics tracking

To deploy:

  1. Create a checkpoint in Manus
  2. Click "Publish" in the Management UI
  3. Configure custom domain (optional)

Development Workflow

Adding New Features

  1. Update database schema in drizzle/schema.ts
  2. Run pnpm db:push to apply changes
  3. Add query helpers in server/db.ts
  4. Create tRPC procedures in server/routers.ts
  5. Build UI in client/src/pages/
  6. Call procedures using trpc.*.useQuery/useMutation
  7. Write tests in server/*.test.ts
  8. Run pnpm test to verify

Testing

# Run all tests
pnpm test

# Run tests in watch mode
pnpm test:watch

Database Migrations

# Push schema changes to database
pnpm db:push

# Generate migration files
pnpm db:generate

# Apply migrations
pnpm db:migrate

Business Model

Free Tier

  • 3 AI-generated documents per month
  • Access to proposals, contracts, and invoices
  • Markdown export
  • Watermarked PDF export

Pro Tier ($29/month)

  • Unlimited AI-generated documents
  • All document types (NDA, SOW, Receipt)
  • Bulk generation via CSV upload
  • Premium templates
  • Unwatermarked PDF & DOCX export
  • Document history & storage
  • Priority support

Marketing & SEO

Blog Content

  • 7 comprehensive articles targeting high-volume keywords
  • Topics: contracts, proposals, invoicing, freelance business
  • Combined monthly search volume: 40,200+

Resources Hub

  • 6 marketing guides for freelancers
  • Searchable resource library
  • Internal linking for SEO

Technical SEO

  • XML sitemap at /sitemap.xml
  • HTML sitemap at /sitemap
  • robots.txt configured
  • Google Analytics 4 integrated
  • Meta tags optimized for sharing

Contributing

This is a personal project, but feedback and suggestions are welcome! Feel free to:

  • Open issues for bugs or feature requests
  • Submit pull requests for improvements
  • Share your experience using the platform

License

Copyright © 2025 Nathan Kenworthy. All rights reserved.

This is proprietary software. Unauthorized copying, modification, distribution, or use of this software, via any medium, is strictly prohibited.


About the Creator

Built by Nathan Kenworthy, a medical student and aspiring entrepreneur, while balancing family life and the demands of medical school. This project represents a commitment to helping freelancers succeed with better tools and automation.

Connect:


Acknowledgments


⭐ If you find this project interesting, please star the repository!

About

AI-powered document generation platform for freelancers - proposals, contracts, invoices, NDAs, SOWs, and receipts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published