StreamLink is a cutting-edge live streaming platform built to empower creators and connect them with audiences globally. With real-time video streaming, interactive chat, and a seamless user experience, StreamLink leverages modern technologies such as Next.js, WebRTC, Sockets, Prisma, Tailwind CSS, MySQL, and LiveKit. Designed for scalability and performance, StreamLink allows creators to engage with their viewers in a highly interactive and responsive environment.
StreamLink integrates several modern technologies to ensure an optimal and scalable user experience:
Follow these steps to set up StreamLink locally.
Ensure you have the following installed before proceeding:
git clone https://github.com/yourusername/streamlink.git
cd streamlink
2. Install Dependencies
Install all the necessary dependencies with npm:
npm install
3. Set Up Environment Variables
Create a .env file in the root directory and define the following environment variables. Make sure to replace the placeholders with your actual values.
NEXT_PUBLIC_LIVEKIT_API_KEY=your_livekit_api_key
DATABASE_URL=mysql://username:password@localhost:3306/streamlink
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
NEXTAUTH_SECRET=your_jwt_secret
4. Run the Development Server
Start the development server:
npm run dev
Now, you can access the platform at http://localhost:3000.
π Deployment
StreamLink is built with scalability in mind, so it can be deployed easily on cloud platforms. Here are some deployment options:
1. AWS:
Set up an EC2 instance with Node.js and MySQL installed.
Use S3 to store video content and CloudFront to deliver streams with low latency.
2. Vercel:
For easy frontend deployment, connect your GitHub repository to Vercel.
3. LiveKit:
Host the LiveKit server to manage and scale real-time media streams.
For more details, refer to the respective documentation of AWS, Vercel, and LiveKit for deployment guidelines.
π Contributing
We welcome contributions to StreamLink! If you would like to improve the platform, fix bugs, or add new features, please follow these steps:
How to Contribute:
Fork the repository on GitHub.
Clone your fork to your local machine:
git clone https://github.com/yourusername/streamlink.git
Create a new branch for your feature or fix:
git checkout -b feature/your-feature
Make your changes and commit them:
git commit -m 'Add new feature'
Push your changes to your forked repository:
git push origin feature/your-feature
Open a pull request from your fork to the main repository.
π License
StreamLink is licensed under the MIT License. See the LICENSE file for more details.
π¬ Support
If you encounter any issues, need help with setup, or have questions, please donβt hesitate to reach out:
mail:[email protected]