Trinity Build is an AI-powered platform that allows users to effortlessly create stunning, AI-generated websites and web applications. With intelligent automation and seamless customization, Trinity Build is the future of web design.
- AI-Powered Web App Creation: Generate full-stack web applications with AI assistance.
- Customizable Components: Modify and deploy components tailored to your needs.
- Integrated Chat: Chat with AI to refine your ideas and get real-time suggestions.
- Code Preview and Deployment: View, edit, and deploy your code directly from the platform.
- Token-Based System: Manage your usage with tokens and upgrade plans as needed.
- Third-Party Integrations: Includes Google OAuth, PayPal for payments, and more.
- Frontend: Next.js, React, Tailwind CSS
- Backend: Convex Database
- Authentication: Google OAuth
- Payments: PayPal Integration
- AI Models: Google Generative AI
- Icons: Lucide React
- Other Libraries: Axios, React-Markdown, Sonner, and more
Ensure you have the following installed:
- Node.js (v18 or higher)
- npm, yarn, or pnpm
-
Clone the repository:
git clone https://github.com/swayamjain8/trinity-build.git cd trinity-build
-
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up environment variables:
Create a
.env.local
file in the root directory and add the following variables:NEXT_PUBLIC_GOOGLE_AUTH_CLIENT_ID_KEY=your-google-client-id NEXT_PUBLIC_GEMINI_API_KEY=your-google-generative-ai-key NEXT_PUBLIC_CONVEX_URL=your-convex-url NEXT_PUBLIC_PAYPAL_CLIENT_ID=your-paypal-client-id
-
Start the Convex database locally:
npx convex dev
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 in your browser to view the app.
trinity-build/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── (main)/ # Main pages
│ ├── provider.jsx # Global providers
│ ├── layout.js # Root layout
│ ├── page.js # Home page
├── components/ # Reusable components
│ ├── custom/ # Custom components
│ ├── ui/ # UI components
├── context/ # React context for global state
├── convex/ # Convex database queries and mutations
├── data/ # Static data and configurations
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
├── public/ # Static assets
├── styles/ # Global styles
├── .env.local.sample # Sample environment variables
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
npm run dev
: Start the development server.npm run build
: Build the project for production.npm run start
: Start the production server.npm run lint
: Run ESLint to check for code quality.
- Chat with AI to brainstorm ideas and refine your project.
- AI generates suggestions and code snippets based on your input.
- View and edit your code in real-time using Sandpack.
- Deploy your project directly from the platform.
- Each user is allocated tokens for AI usage.
- Upgrade plans to get more tokens for extended usage.
- Secure login with Google OAuth.
- PayPal integration for upgrading plans.
Variable | Description |
---|---|
NEXT_PUBLIC_GOOGLE_AUTH_CLIENT_ID_KEY |
Google OAuth Client ID |
NEXT_PUBLIC_GEMINI_API_KEY |
Google Generative AI API Key |
NEXT_PUBLIC_CONVEX_URL |
Convex Database URL |
NEXT_PUBLIC_PAYPAL_CLIENT_ID |
PayPal Client ID |
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
. - Commit your changes:
git commit -m "Add feature"
. - Push to the branch:
git push origin feature-name
. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions, suggestions, or issues, please reach out:
- Author: Swayam Jain
- Email: jainswyam4006@gmail.com
- Issues: GitHub Issues
- Website: Trinity Build
Thank you for using Trinity Build! 🚀