TreeBio is a powerful, modern bio link platform that transforms the way you showcase your digital presence. Create stunning, customizable profile pages with unlimited links, real-time analytics, QR codes, URL shortening, and advanced customization optionsβall in one seamless platform designed for content creators, entrepreneurs, and businesses.
- Frontend: Next.js 15.5.2, React, TypeScript, Tailwind CSS
- Backend: Next.js API Routes, Prisma ORM
- Database: PostgreSQL (Neon)
- Authentication: Clerk
- Deployment: Vercel
- Real-time: Pusher
- UI Components: Radix UI, Lucide React
- π Smart Link Management: Unlimited links with categories, scheduling, and custom icons
- π Real-time Analytics: Comprehensive tracking with geographic insights and device analytics
- π¨ Advanced Customization: Professional themes, custom colors, and mobile-first design
- π οΈ Professional Tools: Built-in URL shortener, QR code generator, and bulk import/export
- π Secure Authentication: User management with privacy controls and GDPR compliance
- Node.js 18.0 or higher
- PostgreSQL database
- Git
-
Clone the repository
git clone https://github.com/RajdeepKushwaha5/TreeBio1.git cd TreeBio1 -
Install dependencies
npm install
-
Set up environment variables
Create a
.env.localfile in the root directory:# Database DATABASE_URL="postgresql://username:password@localhost:5432/treebio" # Clerk Authentication NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="your_clerk_publishable_key" CLERK_SECRET_KEY="your_clerk_secret_key" NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in" NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up" # App Configuration NEXT_PUBLIC_APP_URL="http://localhost:3000" NEXT_PUBLIC_APP_NAME="TreeBio" # Pusher (Real-time features) NEXT_PUBLIC_PUSHER_APP_KEY="your_pusher_key" PUSHER_APP_ID="your_app_id" PUSHER_SECRET="your_secret" NEXT_PUBLIC_PUSHER_CLUSTER="your_cluster"
-
Set up the database
npx prisma generate npx prisma db push
-
Start the development server
npm run dev
-
Open your browser
Visit http://localhost:3000 to see TreeBio running locally.
- Create Account: Sign up using the authentication system
- Setup Profile: Add your avatar, bio, and personal information
- Add Links: Create and organize your important links
- Customize: Choose themes and customize your page design
- Share: Share your TreeBio profile URL with your audience
- Monitor: Track performance with built-in analytics
https://treebio1.vercel.app/yourusername
| Variable | Description | Required |
|---|---|---|
DATABASE_URL |
PostgreSQL connection string | Yes |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY |
Clerk publishable key | Yes |
CLERK_SECRET_KEY |
Clerk secret key | Yes |
NEXT_PUBLIC_APP_URL |
Your app's URL | Yes |
NEXT_PUBLIC_PUSHER_APP_KEY |
Pusher app key | Optional |
TreeBio uses Prisma as the ORM. The database schema includes:
- Users and authentication
- Links and collections
- Analytics and tracking
- URL shortener data
TreeBio provides RESTful API endpoints for all major functionality:
GET /api/health- Health checkGET /api/profile- Get user profilePOST /api/links- Create new linkGET /api/analytics- Get analytics dataPOST /api/shortener- Create short URL
GET /api/debug/database- Database connection testGET /api/debug/env- Environment variables check
For complete API documentation, run the application locally and visit the debug endpoints.
-
Fork this repository to your GitHub account
-
Import to Vercel
- Go to Vercel Dashboard
- Click "New Project"
- Import your forked repository
-
Set Environment Variables
- Add all variables from your
.env.localfile - Set
DATABASE_URLto your production database - Configure Clerk with production keys
- Add all variables from your
-
Deploy
- Click "Deploy"
- Your TreeBio instance will be live in minutes
TreeBio can also be deployed to:
- Railway
- Heroku
- DigitalOcean App Platform
- AWS Amplify
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Use conventional commit messages
- Use GitHub Issues to report bugs
- Include steps to reproduce
- Specify your environment details
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2025 Rajdeep Kushwaha
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
- Next.js Team for the amazing React framework
- Vercel for seamless deployment platform
- Clerk for authentication services
- Prisma for the excellent ORM
- Tailwind CSS for the utility-first CSS framework
