{"id":31729743,"url":"https://github.com/amirumna/amiverse","last_synced_at":"2026-05-05T14:05:22.011Z","repository":{"id":315567598,"uuid":"1059138745","full_name":"Amirumna/amiverse","owner":"Amirumna","description":"My Second Website (Form 5)","archived":false,"fork":false,"pushed_at":"2025-10-06T10:15:20.000Z","size":43862,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T12:18:22.358Z","etag":null,"topics":["amiruman","cloudflare","experience","games","kertas","nextjs","vercel","website","workers"],"latest_commit_sha":null,"homepage":"https://amiverse.site","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amirumna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-18T03:50:39.000Z","updated_at":"2025-10-06T10:15:24.000Z","dependencies_parsed_at":"2025-10-06T12:29:27.866Z","dependency_job_id":null,"html_url":"https://github.com/Amirumna/amiverse","commit_stats":null,"previous_names":["amirumna/amigames","amirumna/amiverse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amirumna/amiverse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirumna%2Famiverse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirumna%2Famiverse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirumna%2Famiverse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirumna%2Famiverse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amirumna","download_url":"https://codeload.github.com/Amirumna/amiverse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirumna%2Famiverse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000989,"owners_count":26082972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amiruman","cloudflare","experience","games","kertas","nextjs","vercel","website","workers"],"created_at":"2025-10-09T07:16:13.033Z","updated_at":"2026-05-05T14:05:21.991Z","avatar_url":"https://github.com/Amirumna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎮 AmiVerse\n\nA modern universal portfolio and file management system built with Next.js 15, featuring Google Drive integration, gaming profiles, and a sleek dark-themed UI.\n\n![Next.js](https://img.shields.io/badge/Next.js-15.5.4-black?style=for-the-badge\u0026logo=next.js)\n![React](https://img.shields.io/badge/React-19-blue?style=for-the-badge\u0026logo=react)\n![TypeScript](https://img.shields.io/badge/TypeScript-5-blue?style=for-the-badge\u0026logo=typescript)\n![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-4.1.9-38B2AC?style=for-the-badge\u0026logo=tailwind-css)\n![Cloudflare](https://img.shields.io/badge/Cloudflare-Workers-orange?style=for-the-badge\u0026logo=cloudflare)\n\n## ✨ Features\n\n### 🎯 Gaming Portfolio\n- **Game Profiles**: Dedicated pages for Genshin Impact, Honkai Star Rail, Wuthering Waves, Valorant, and more\n- **Character Showcases**: Detailed character profiles with stats, builds, and achievements\n- **Team Compositions**: Character team setups and strategies with effectiveness ratings\n- **World Exploration**: Game world progress tracking and completion status\n- **Achievement System**: Gaming achievements with rarity levels and point systems\n- **Gaming Statistics**: Comprehensive stats including playtime, levels, and rankings\n- **Game Reviews**: Personal game reviews with ratings, pros/cons, and recommendations\n- **Gaming Setup**: Hardware and software configuration details\n\n### 📁 File Management (Kertas)\n- **Multiple Google Drive Folders**: Support for multiple root folders with different access levels\n- **Password Protection**: Secure folder access with JWT-based authentication\n- **Session Management**: 24-hour session tokens with automatic expiration\n- **File Preview**: Support for images, videos, PDFs, audio, text, JSON files\n- **Search Functionality**: Full-text search across all files with pagination\n- **Secure Downloads**: HMAC-signed download tokens with resumable support\n- **Pretty URLs**: SEO-friendly folder navigation (`/kertas/drive-name/folder-name`)\n- **Grid/List Views**: Toggle between different viewing modes\n- **Rate Limiting**: Built-in rate limiting for API protection\n- **CORS Support**: Proper cross-origin request handling\n\n### 🎨 Modern UI/UX\n- **Dark Theme**: Consistent dark mode design with plasma background effects\n- **Responsive Design**: Mobile-first approach with smooth animations\n- **Interactive Elements**: Hover effects, transitions, and micro-interactions\n- **Accessibility**: ARIA labels and keyboard navigation support\n- **Cursor Trail**: Interactive cursor trail effects\n- **Plasma Background**: Dynamic plasma background with mouse interaction\n- **Loading States**: Skeleton loading and progress indicators\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Node.js 18+ \n- npm or yarn\n- Google Cloud Platform account with Drive API enabled\n- Cloudflare account (for deployment)\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/amirumna/amiverse.git\n   cd amiverse\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables**\n   ```bash\n   cp .env.local .env\n   ```\n   \n   Fill in your environment variables:\n   ```env\n   # Google Drive Integration (Required)\n   GOOGLE_PROJECT_ID=your_project_id\n   GOOGLE_PRIVATE_KEY_ID=your_private_key_id\n   GOOGLE_PRIVATE_KEY=\"-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n\"\n   GOOGLE_CLIENT_EMAIL=your_service_account@project.iam.gserviceaccount.com\n   GOOGLE_CLIENT_ID=your_client_id\n   GDRIVE_HMAC_SECRET=your_hmac_secret\n\n   # Multiple Drive Configuration (Required)\n   ROOT_FOLDER_ID_PUBLIC=your_public_folder_id\n   ROOT_FOLDER_ID_PRIVATE=your_private_folder_id\n   ROOT_FOLDER_ID_WORK=your_work_folder_id\n   ROOT_FOLDER_ID_PERSONAL=your_personal_folder_id\n\n   # Drive Passwords (Plain text - will be validated against stored passwords)\n   DRIVE_PASSWORD_PRIVATE=your_private_password\n   DRIVE_PASSWORD_WORK=your_work_password\n   DRIVE_PASSWORD_PERSONAL=your_personal_password\n\n   # Session Management (Required)\n   SESSION_SECRET=your_session_secret_key\n\n   # Email Service (Required for contact form)\n   RESEND_API_KEY=your_resend_api_key\n   CONTACT_TO_EMAIL=contact@yourdomain.com\n\n   # CORS Configuration (Optional)\n   NEXT_PUBLIC_ALLOWED_ORIGINS=https://yourdomain.com,https://www.yourdomain.com\n   ```\n\n4. **Run the development server**\n   ```bash\n   npm run dev\n   ```\n\n5. **Open your browser**\n   Navigate to [http://localhost:3000](http://localhost:3000)\n\n## 🔐 Setting Up Multiple Drives\n\n### 1. Configure Drive IDs\nSet up your Google Drive folder IDs in the environment variables:\n- `ROOT_FOLDER_ID_PUBLIC` - Public folder (no password required)\n- `ROOT_FOLDER_ID_PRIVATE` - Private folder (password protected)\n- `ROOT_FOLDER_ID_WORK` - Work folder (password protected)\n- `ROOT_FOLDER_ID_PERSONAL` - Personal folder (password protected)\n\n### 2. Set Drive Passwords\nConfigure plain text passwords for protected drives:\n- `DRIVE_PASSWORD_PRIVATE` - Password for private drive\n- `DRIVE_PASSWORD_WORK` - Password for work drive\n- `DRIVE_PASSWORD_PERSONAL` - Password for personal drive\n\n### 3. Generate Session Secret\nGenerate a secure session secret for JWT tokens:\n\n```bash\n# Generate a random session secret\nnode -e \"console.log(require('crypto').randomBytes(32).toString('hex'))\"\n```\n\n### 4. Drive Access Control\n- **Public drives**: No authentication required\n- **Protected drives**: Require password authentication via JWT tokens\n- **Session duration**: 24 hours (configurable)\n- **Automatic logout**: Sessions expire automatically\n- **Token validation**: HMAC-signed tokens for secure downloads\n\n## 🛠️ Technology Stack\n\n### Core Framework\n- **Next.js 15.5.4** - React framework with App Router\n- **React 19** - UI library with latest features\n- **TypeScript 5** - Type-safe JavaScript\n- **Turbopack** - Fast development builds\n\n### Styling \u0026 UI\n- **Tailwind CSS 4.1.9** - Utility-first CSS framework\n- **Radix UI** - Accessible component primitives\n- **Lucide React** - Beautiful icon library\n- **Geist Font** - Modern typography\n- **Plasma Background** - Dynamic background effects\n- **Cursor Trail** - Interactive cursor effects\n\n### Backend \u0026 APIs\n- **Google APIs** - Google Drive integration\n- **Resend** - Email service\n- **JWT Authentication** - Secure session management\n- **HMAC Signing** - Secure download tokens\n- **Rate Limiting** - API protection\n\n### State Management \u0026 Forms\n- **React Hook Form** - Form management\n- **Zod** - Schema validation\n- **Jose** - JWT token handling\n\n### Deployment\n- **Cloudflare Workers** - Serverless deployment\n- **OpenNext.js** - Next.js to Cloudflare adapter\n- **Wrangler** - Cloudflare CLI tool\n- **Vercel Analytics** - Performance monitoring\n\n## 📁 Project Structure\n\n```\namigames/\n├── app/                    # Next.js App Router\n│   ├── api/               # API Routes\n│   │   ├── gdrive/        # Google Drive API endpoint\n│   │   ├── drive-auth/    # Drive authentication endpoint\n│   │   └── send/          # Contact form endpoint\n│   ├── games/             # Gaming profile pages\n│   │   ├── genshin-impact/\n│   │   ├── honkai-star-rail/\n│   │   ├── wuthering-waves/\n│   │   └── valorant/\n│   ├── kertas/            # File browser pages\n│   │   ├── [drive]/       # Drive selection page\n│   │   └── [drive]/[...folders]/ # Dynamic folder pages\n│   ├── about/             # About page\n│   ├── maintenance/       # Maintenance page\n│   ├── layout.tsx         # Root layout\n│   ├── page.tsx           # Homepage\n│   └── not-found.tsx      # 404 page\n├── components/            # React components\n│   ├── gaming/           # Gaming-specific components\n│   │   ├── achievement-showcase.tsx\n│   │   ├── character-profile.tsx\n│   │   ├── game-library-grid.tsx\n│   │   ├── game-profile-card.tsx\n│   │   ├── gaming-stats-card.tsx\n│   │   ├── gaming-status-indicator.tsx\n│   │   ├── main-team-showcase.tsx\n│   │   ├── team-composition.tsx\n│   │   └── world-exploration.tsx\n│   ├── ui/               # Reusable UI components\n│   │   ├── alert-dialog.tsx\n│   │   ├── avatar.tsx\n│   │   ├── button.tsx\n│   │   ├── card.tsx\n│   │   ├── cursor-trail.tsx\n│   │   ├── dialog.tsx\n│   │   ├── form.tsx\n│   │   ├── input.tsx\n│   │   ├── progress.tsx\n│   │   └── select.tsx\n│   ├── drive-selection-grid.tsx\n│   ├── drive-password-modal.tsx\n│   ├── gdrive-list.tsx   # Main file browser component\n│   ├── site-header.tsx   # Navigation component\n│   ├── hero.tsx          # Landing hero component\n│   ├── plasma.tsx        # Plasma background component\n│   └── contact-form.tsx  # Contact form component\n├── lib/                  # Utility libraries\n│   ├── gdrive.ts         # Google Drive API client\n│   ├── gaming-data.ts    # Gaming statistics\n│   ├── gaming-types.ts   # Gaming type definitions\n│   ├── genshin-api.ts    # Genshin Impact data\n│   ├── config.ts         # Site configuration\n│   ├── drives-config.ts  # Drive configuration\n│   ├── auth-utils.ts     # Authentication utilities\n│   ├── drive-utils.ts    # Drive utility functions\n│   ├── node-to-web-stream.ts # Stream conversion\n│   └── utils.ts          # Utility functions\n├── hooks/                # Custom React hooks\n│   ├── contact-email.tsx # Contact email template\n│   └── cursor-trail.ts   # Cursor trail hook\n├── styles/               # Global styles\n│   ├── globals.css       # Global CSS\n│   └── plasma.css        # Plasma effects CSS\n├── public/               # Static assets\n│   ├── icons/            # App icons\n│   ├── images/           # Game and tech images\n│   └── videos/           # Video assets\n├── middleware.ts         # Next.js middleware\n├── next.config.mjs       # Next.js configuration\n├── tailwind.config.ts    # Tailwind configuration\n├── wrangler.jsonc        # Cloudflare Workers config\n└── package.json          # Dependencies and scripts\n```\n\n## 🔧 API Endpoints\n\n### Google Drive Integration (`/api/gdrive`)\n- `GET ?action=list\u0026driveSlug=...\u0026folderId=...` - List folder contents\n- `GET ?action=search\u0026q=...` - Search files across all drives\n- `GET ?action=stream\u0026fileId=...` - Stream/serve files with range support\n- `GET ?action=download\u0026fileId=...\u0026expiry=...\u0026token=...` - Secure downloads with HMAC tokens\n- `HEAD ?action=stream\u0026fileId=...` - Get file metadata and headers\n- `OPTIONS` - CORS preflight handling\n\n### Drive Authentication (`/api/drive-auth`)\n- `POST` - Authenticate with drive password (returns JWT token)\n- `GET` - Verify current authentication status\n\n### Contact \u0026 Communication (`/api/send`)\n- `POST` - Contact form submission with email validation\n\n## 🚀 Deployment\n\n### Cloudflare Workers\n\n1. **Build the project**\n   ```bash\n   npm run build\n   ```\n\n2. **Deploy to Cloudflare**\n   ```bash\n   npm run deploy\n   ```\n\n3. **Preview deployment**\n   ```bash\n   npm run preview\n   ```\n\n### Environment Variables for Production\nMake sure to set all required environment variables in your Cloudflare Workers dashboard or via Wrangler:\n\n```bash\nwrangler secret put GOOGLE_PROJECT_ID\nwrangler secret put GOOGLE_PRIVATE_KEY\nwrangler secret put GOOGLE_CLIENT_EMAIL\n# ... and so on for all secrets\n```\n\n## 🔒 Security Features\n\n- **JWT Authentication**: Secure session management with 24-hour expiration\n- **HMAC Token Validation**: Secure download tokens with IP binding\n- **CORS Headers**: Proper cross-origin request handling\n- **Security Headers**: XSS protection, content type validation, HSTS\n- **Rate Limiting**: Built-in API rate limiting (100 requests/minute)\n- **Input Validation**: Request parameter sanitization with Zod schemas\n- **Password Protection**: Drive-level password authentication\n- **Range Requests**: Resumable download support with proper headers\n- **Environment Variables**: Secure configuration management\n- **Middleware Protection**: Route-level authentication checks\n\n## 📊 Performance Features\n\n- **Turbopack**: Fast development builds with hot reloading\n- **Image Optimization**: Next.js automatic image optimization\n- **Lazy Loading**: Component-level lazy loading with Suspense\n- **Streaming**: Node.js to Web Stream conversion for file serving\n- **Caching**: Proper cache headers for static assets and API responses\n- **Pagination**: Efficient file listing with page tokens\n- **Range Requests**: Resumable downloads for large files\n- **Analytics**: Vercel Analytics and Speed Insights integration\n- **Preloading**: Asset preloading for better performance\n\n## 🎮 Gaming Features\n\n### Supported Games\n- **Genshin Impact**: AR 60, character profiles, team compositions, world exploration\n- **Honkai Star Rail**: Trailblaze Level 70, character showcases, achievement tracking\n- **Wuthering Waves**: Union Level 90, character profiles, progress tracking\n- **Valorant**: Diamond rank, gaming statistics, competitive achievements\n- **Honkai Impact 3rd**: Level 88, action RPG with fast-paced combat\n- **Mobile Legends**: Mythic rank, strategic team battles\n\n### Character Management\n- **Character Profiles**: Detailed stats, builds, and equipment\n- **Team Compositions**: Strategic team setups with effectiveness ratings\n- **Achievement System**: Rarity-based achievements with point systems\n- **World Exploration**: Progress tracking and completion status\n- **Gaming Statistics**: Comprehensive stats dashboard\n- **Game Reviews**: Personal reviews with ratings and recommendations\n- **Gaming Setup**: Hardware and software configuration details\n\n## 📱 File Management Features (Kertas)\n\n### Supported File Types\n- **Images**: JPEG, PNG, GIF, WebP, SVG\n- **Videos**: MP4, WebM, MOV, AVI\n- **Documents**: PDF, TXT, JSON, DOC, DOCX\n- **Audio**: MP3, WAV, OGG, FLAC\n- **Archives**: ZIP, RAR, 7Z, TAR\n- **Code**: JS, TS, HTML, CSS, PY, JSON\n\n### File Operations\n- **Preview**: In-browser file preview with proper MIME type handling\n- **Download**: Secure, resumable downloads with HMAC tokens\n- **Search**: Full-text search across all files with pagination\n- **Navigation**: Breadcrumb navigation with folder support\n- **Sharing**: Direct file sharing links with expiration\n- **Authentication**: Drive-level password protection\n- **Rate Limiting**: Built-in protection against abuse\n- **CORS Support**: Cross-origin request handling\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- **Next.js Team** - For the amazing React framework\n- **Vercel** - For deployment and analytics\n- **Cloudflare** - For serverless hosting\n- **Google** - For Drive API integration\n- **Radix UI** - For accessible components\n- **Tailwind CSS** - For utility-first styling\n\n## 📞 Support\n\nIf you have any questions or need help, please:\n\n1. Check the [Issues](https://github.com/amirumna/amiverse/issues) page\n2. Create a new issue if your problem isn't already reported\n3. Contact us via the contact form on the website\n\n---\n\n**Made with ❤️ by AmiNET Development**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirumna%2Famiverse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirumna%2Famiverse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirumna%2Famiverse/lists"}