A file explorer web application for browsing the Gears of War archive located at /root/archive.
- File System Explorer: Browse files and folders from
/root/archivedirectory - Nested Navigation: Support for subdirectories with breadcrumb navigation
- File Type Detection: Automatic categorization of files by extension (images, videos, documents, maps, mods, soundtracks)
- Search: Filter files by name
- Category Filter: Filter files by type category
- Responsive Design: Works on desktop and mobile devices
- Node.js (v12 or higher)
- Access to
/root/archivedirectory (may require sudo)
- Clone the repository:
git clone https://github.com/Contestant0star/gearsarchive.github.io.git
cd gearsarchive.github.io- Install dependencies:
npm install- Ensure the
/root/archivedirectory exists and contains files:
sudo mkdir -p /root/archive
# Add your files to /root/archiveStart the server (requires sudo to access /root/archive):
sudo npm startOr:
sudo node server.jsThe application will be available at: http://localhost:3000
- Browse Folders: Click on any folder to navigate into it
- Breadcrumb Navigation: Click on any path segment in the breadcrumb to navigate back
- View Files: Click on files to see their details
- Search: Use the search box to filter files by name
- Filter by Category: Use the dropdown to show only specific file types
index.html- Main HTML pagescript.js- Frontend JavaScript for UI and navigationstyles.css- Styling for the applicationserver.js- Node.js/Express backend server for file system accesspackage.json- Project dependencies and scripts
GET /api/files?path=<path>- Returns files and folders for the specified path- Returns:
{ items: [], currentPath: string, success: boolean }
- Returns:
Files are automatically categorized based on their extension:
- Images: .jpg, .jpeg, .png, .gif, .bmp, .svg, .webp, .ico
- Videos: .mp4, .avi, .mkv, .mov, .wmv, .flv, .webm
- Documents: .pdf, .doc, .docx, .txt, .rtf, .odt
- Soundtracks: .mp3, .wav, .flac, .aac, .ogg, .m4a
- Maps: .map, .bsp
- Mods: .mod, .dll, .exe, .zip, .rar, .7z, .tar, .gz
The server includes path validation to prevent directory traversal attacks and ensures all file access is restricted to the /root/archive directory.
This project is open source and available for the Gears of War community.