Inspiration
Imagine a platform where you can not only share your creativity with the world but also generate video content using cutting-edge AI and win exciting prizes based on your audience's engagement. As a team of creatives and programmers passionate about blockchain, we wanted to revolutionize the decentralized video-sharing landscape with TPLAY. TPLAY combines the power of blockchain, AI, and community-driven contests to create an immersive and rewarding experience for creators and viewers alike. This innovative platform transforms the way we create, share, and interact with video content, offering a unique blend of technology and creativity. Join us in this new era of decentralized video sharing and discover the endless possibilities with TPLAY.
Platform Description
TPLAY is not just another video-sharing platform; it is a dynamic ecosystem that empowers users to take full control of their content and its potential. With TPLAY, you can:
Share Your Videos:
- Upload and share your video content securely and efficiently.
- Leverage decentralized storage solutions to ensure your content is always accessible and tamper-proof.
Generate Videos with AI:
- Utilize advanced AI tools to create captivating video content effortlessly.
- Enhance your videos with AI-generated effects, edits, and enhancements, making your content stand out in the crowd.
Win Prizes Based on User Engagement:
- Participate in weekly contests where your video content competes for audience engagement.
- Earn rewards from a base prize pool funded by TPLAY, plus additional user subscription fees for contest entry.
- Engage your audience and climb the leaderboard to win exciting prizes and gain recognition.
Decentralized Wallet Integration:
- Connect with popular decentralized wallets like MetaMask to seamlessly manage your earnings and transactions.
- Enjoy secure and transparent interactions with the Theta Network blockchain.
Innovative Smart Contracts:
- Benefit from TPLAY’s smart contracts for contest management, ensuring fair and transparent prize distribution.
- Utilize TNT TPlay Tokens for transactions within the ecosystem, creating a vibrant and thriving community economy.
Interactive and Engaging Features:
- Like, comment, and share videos within the community to drive engagement and support your favorite creators.
- Receive real-time updates and notifications about contest standings, video processing, and more.
Future-Ready with Theta Edge Services:
- Experience decentralized video uploads and streaming through Theta Edge Services, ensuring high performance and scalability.
- Store video cover images securely with Theta Edge Store, making your content easily retrievable and visually appealing.

Technical Overview
The application architecture leverages modern web technologies and integrates with the Theta Network blockchain for various functionalities.
Workflow
User Interaction:
- Users access the TPLAY web application through a browser.
- Users connect their decentralized wallet (e.g., MetaMask) to authenticate and interact with the platform.
Video Upload and Processing:
- Users upload videos through the web application.
- The web application sends the video data to the backend, which queues the video for processing.
- Video Services handle the processing and storage of video content on the Theta Edge Network.
Blockchain Interactions:
- The web application interacts with deployed smart contracts on the Theta Network for handling tokens and contests.
- TNT TPlay Token transactions are facilitated for ecosystem interactions.
- Contest smart contracts manage contest entries, prize pools, and reward distribution.
Data Storage:
- User and video metadata are stored in a PostgreSQL database.
- Video cover images are stored in the Theta Edge Store for decentralized access and retrieval.
AI and Webhook Services:
- AI services generate video content as needed.
- Webhook services handle real-time updates and notifications related to video processing and contests.
This document outlines the components and functionalities of the TPLAY application, referencing the provided architectural diagram.
.png)
Frontend
- Technology: Next.js
- Type: Progressive Web Application (PWA)
- Functionality:
- User Interface for interaction with the platform
- Wallet connection and authentication
- Interaction with backend services to fetch and display data
Backend
- Technology: NestJS
- Structure: Microservice architecture with Docker containerization
- Modules:
- Blockchain: Handles blockchain interactions
- Auth: Manages user authentication
- Contests: Manages contest creation and participation
- Likes: Manages likes on videos
- Queue: Manages video processing queues
- Email: Manages email notifications
- Users: Manages user data
- Comments: Manages video comments
- Videos: Manages video metadata and streaming
- Webhooks: Manages external service notifications
Blockchain
- Network: Theta Network
- Smart Contracts:
- TNT TPlay Token: Ecosystem token for transactions within the platform
- Contest Smart Contract: Manages contests, prize pools, and reward distribution
Theta Edge Services
- Purpose: Decentralized video upload, AI-generated video creation, and video updates
- Components:
- Video Services: Handles video processing and streaming
- AI Services: Generates video content using AI
- Webhooks: Receives updates and notifications
Theta Edge Store
- Purpose: Storage of video cover images and retrieval
- Components:
- Storage: Decentralized storage for video cover images
Wallet Integration
- Support: Decentralized wallets such as MetaMask, WalletConnect, etc.
- Functionality: User authentication and transaction signing
Database
- Technology: PostgreSQL
- Purpose: Storage of user and video metadata (future plans to phase out for full decentralization)
Future Improvements
Decentralization
- Full Decentralization: Our current use of PostgreSQL for metadata storage is a temporary measure. Future updates will transition to a fully decentralized storage solution, ensuring complete security, transparency, and user control over data.
Feature Expansion
- Enhanced AI Video Generation: We plan to introduce more sophisticated AI tools for video creation and enhancement. These tools will provide users with greater creative freedom and the ability to produce high-quality content effortlessly.
- Robust Contest Functionalities: We will enhance our contest features to include more varied and dynamic competition formats, comprehensive participation metrics, and more engaging reward systems.
- Improved User Engagement Mechanisms: New features will be developed to boost user interaction, such as real-time collaboration tools, enhanced commenting systems, and interactive live streaming capabilities.
Decentralized Autonomous Organization (DAO)
- Community Governance: We aim to establish a DAO where users can propose new features, vote on platform changes, and influence the future direction of TPLAY. This will empower our community to have a direct say in how the platform evolves, fostering a sense of ownership and engagement.
Video Studio Creator
- Advanced Video Editing Suite: Our upcoming Video Studio Creator will be a powerful tool that allows users to edit, enhance, and generate videos with ease. Features will include:
- Precise Video Modification: Tools for trimming, cutting, merging, and sequencing clips.
- Customizable Filters: A variety of filters to enhance video aesthetics, with options to adjust brightness, contrast, and saturation.
- AI-Powered Enhancements: AI capabilities similar to REMINI by Bending Spoons, offering noise removal, resolution upscaling, and detail enhancement.
- Content Generation: AI tools for creating new content, adding special effects, and generating animations.
- Intelligent Editing Suggestions: AI-driven suggestions for edits, effects, and enhancements based on video analysis.
Performance Improvements
- Optimized Video Upload and Modification: We will focus on optimizing the speed and efficiency of video uploads and modifications, ensuring a seamless user experience.
- Efficient Video Retrieval Algorithms: Improvements will be made to our video retrieval algorithms to enhance speed and accuracy, making it easier for users to find and view content.
- Overall Application Performance: Continuous performance enhancements will be applied across the platform, from backend processing to frontend responsiveness, ensuring TPLAY operates smoothly under all conditions.
Additional Enhancements
- Scalability: As our user base grows, we will scale our infrastructure to maintain high performance and reliability.
- Security: Ongoing improvements to our security protocols will ensure user data and content remain protected from any potential threats.
- User Support: We will enhance our support systems, providing users with comprehensive resources and responsive assistance to address any issues or queries.
Built With
- nest.js
- next.js
- postgresql
- solidity
- typescript



Log in or sign up for Devpost to join the conversation.