Skip to content

Vampelium/VampAnime-Public

Repository files navigation

VampAnime Streaming

Notice:

The API and proxy required to play anime are not provided in this repository due to copyright restrictions. You are free to rebrand, modify, or repurpose this site as you wish, since it will no longer be hosted or updated by me. VampAnime is a simple front‑end application for discovering anime and watching your anime. It retrieves data from the public AniList GraphQL API and stores progress locally in your browser.

Usage

Open index.html in a browser. The app loads trending anime from AniList and lets you record how many episodes you've watched for each title. Progress is saved to localStorage so it persists between sessions.

The home page displays several carousels with fixed categories such as Trending Now, Top Rated, Action Packed, and Fresh Picks. Each section loads titles that match the category instead of shuffling random names.

No backend server or Node.js setup is required; everything runs purely in JavaScript on the client.

🔥 Firebase Setup

This section explains how to set up Firebase for this project, including authentication, database, functions, and hosting services. no longer needed.


Prerequisites

  • A valid Google account
  • Firebase CLI installed globally
npm install -g firebase-tools

Setup Instructions

  1. Login to Firebase
firebase login

This will open a browser window where you can authenticate your Google account.

  1. Initialize Firebase in your project
firebase init

During initialization, select the Firebase services you want to use:

  • Hosting (for deploying web applications)
  • Functions (for backend logic, if applicable)
  • Firestore or Realtime Database (for database features)
  • Authentication (for user authentication, if needed)
  1. Choose your Firebase project
    Link your local project to an existing Firebase project or create a new one during the initialization process.

  2. Configure Hosting

  • Set the public directory to your build output folder (e.g., dist or build).
  • Enable single-page application (SPA) support if applicable.
  1. Deploy to Firebase
firebase deploy

This command will upload your project and make it live on Firebase Hosting.


Common Firebase CLI Commands

Command Description
firebase serve Start a local development server
firebase deploy Deploy the entire project to Firebase
firebase deploy --only hosting Deploy only the hosting part of your project
firebase deploy --only functions Deploy only Cloud Functions
firebase emulators:start Start Firebase emulators for local development

Additional Notes

  • Remember to configure your firebase.json and .firebaserc files based on your project structure.
  • For environment-specific variables (e.g., API keys), you can use Firebase environment config:
firebase functions:config:set key_name="your_value"
firebase functions:config:get

🔐 Code Obfuscation

This project includes a JavaScript obfuscation utility to obfuscate the front‑end assets before distribution.

Available Scripts

Script Description
npm run obfuscate Obfuscates according to obfuscation.config.json (default input/output).
npm run obfuscate:on Enables obfuscation flag explicitly.
npm run obfuscate:off Disables obfuscation (helpful for development).
npm run obfuscate:public Obfuscates the public folder into build-obfuscated.
npm run obfuscate:dev Obfuscates the development folder into build-obfuscated.

Quick Use

npm run obfuscate

The processed files will appear in build-obfuscated/. Adjust behavior via obfuscation.config.json.

If you add new source files, re-run the command to regenerate the obfuscated output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors