Spaces:
Running
Running
Commit
Β·
fe77549
1
Parent(s):
f39a207
update readme
Browse files- APP_README.md +0 -98
- README.md +66 -27
APP_README.md
DELETED
|
@@ -1,98 +0,0 @@
|
|
| 1 |
-
# XORB & Shard File Viewer
|
| 2 |
-
|
| 3 |
-
A static web application built with Svelte that allows you to upload and analyze XORB or Shard object files to view their metadata structure.
|
| 4 |
-
|
| 5 |
-
## Features
|
| 6 |
-
|
| 7 |
-
- **File Upload**: Drag & drop or click to upload XORB and Shard files
|
| 8 |
-
- **Automatic Detection**: Automatically detects file type based on binary structure
|
| 9 |
-
- **Comprehensive Metadata Display**: Shows detailed information about file contents
|
| 10 |
-
- **Responsive Design**: Works on desktop and mobile devices
|
| 11 |
-
- **Error Handling**: Provides clear error messages for invalid files
|
| 12 |
-
|
| 13 |
-
## Supported File Types
|
| 14 |
-
|
| 15 |
-
### π¦ XORB Files
|
| 16 |
-
|
| 17 |
-
XORB (Xet Orb) files contain collections of compressed chunks with metadata. The viewer displays:
|
| 18 |
-
|
| 19 |
-
- Chunk count and sizes
|
| 20 |
-
- Compression ratios
|
| 21 |
-
- Hash information
|
| 22 |
-
- Boundary offsets
|
| 23 |
-
- Individual chunk details
|
| 24 |
-
|
| 25 |
-
### ποΈ Shard Files
|
| 26 |
-
|
| 27 |
-
MDB Shard files store file metadata and content-addressable storage information for efficient deduplication. The viewer shows:
|
| 28 |
-
|
| 29 |
-
- File information entries
|
| 30 |
-
- CAS (Content Addressable Storage) data
|
| 31 |
-
- Lookup tables
|
| 32 |
-
- Timestamps and security keys
|
| 33 |
-
- Header and footer details
|
| 34 |
-
|
| 35 |
-
## Development
|
| 36 |
-
|
| 37 |
-
### Prerequisites
|
| 38 |
-
|
| 39 |
-
- Node.js 18+
|
| 40 |
-
- pnpm (or npm/yarn)
|
| 41 |
-
|
| 42 |
-
### Setup
|
| 43 |
-
|
| 44 |
-
```bash
|
| 45 |
-
cd xorb-shard-viewer
|
| 46 |
-
pnpm install
|
| 47 |
-
pnpm run dev
|
| 48 |
-
```
|
| 49 |
-
|
| 50 |
-
The application will be available at `http://localhost:5173`
|
| 51 |
-
|
| 52 |
-
### Build for Production
|
| 53 |
-
|
| 54 |
-
```bash
|
| 55 |
-
pnpm run build
|
| 56 |
-
```
|
| 57 |
-
|
| 58 |
-
The static files will be generated in the `build` directory.
|
| 59 |
-
|
| 60 |
-
## File Format Support
|
| 61 |
-
|
| 62 |
-
The application implements binary parsers for:
|
| 63 |
-
|
| 64 |
-
- **XORB Format**: Based on the CAS object format with chunk compression and merkle hashing
|
| 65 |
-
- **Shard Format**: MDB shard file format v2 with header, footer, file info, and CAS info sections
|
| 66 |
-
|
| 67 |
-
## Architecture
|
| 68 |
-
|
| 69 |
-
- **Frontend**: Svelte + TypeScript
|
| 70 |
-
- **Parsing**: Custom binary parsers for both file formats
|
| 71 |
-
- **Styling**: Component-scoped CSS with responsive design
|
| 72 |
-
- **Type Safety**: Full TypeScript support with detailed type definitions
|
| 73 |
-
|
| 74 |
-
## Browser Compatibility
|
| 75 |
-
|
| 76 |
-
Works in all modern browsers that support:
|
| 77 |
-
|
| 78 |
-
- File API
|
| 79 |
-
- ArrayBuffer/Uint8Array
|
| 80 |
-
- ES2020+ features
|
| 81 |
-
|
| 82 |
-
## Security
|
| 83 |
-
|
| 84 |
-
- All file processing happens client-side
|
| 85 |
-
- No data is uploaded to any server
|
| 86 |
-
- Files are processed entirely in the browser's memory
|
| 87 |
-
|
| 88 |
-
## Contributing
|
| 89 |
-
|
| 90 |
-
1. Fork the repository
|
| 91 |
-
2. Create a feature branch
|
| 92 |
-
3. Make your changes
|
| 93 |
-
4. Test thoroughly
|
| 94 |
-
5. Submit a pull request
|
| 95 |
-
|
| 96 |
-
## License
|
| 97 |
-
|
| 98 |
-
See the parent repository's LICENSE file for licensing information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -11,50 +11,89 @@ license: mit
|
|
| 11 |
short_description: Display the contents of a xorb or a shard
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
short_description: Display the contents of a xorb or a shard
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# XORB & Shard File Viewer
|
| 15 |
|
| 16 |
+
A static web application built with Svelte that allows you to upload and analyze XORB or Shard object files to view their metadata structure.
|
| 17 |
|
| 18 |
+
## Features
|
| 19 |
|
| 20 |
+
- **File Upload**: Drag & drop or click to upload XORB and Shard files
|
| 21 |
+
- **Automatic Detection**: Automatically detects file type based on binary structure
|
| 22 |
+
- **Comprehensive Metadata Display**: Shows detailed information about file contents
|
| 23 |
+
- **Responsive Design**: Works on desktop and mobile devices
|
| 24 |
+
- **Error Handling**: Provides clear error messages for invalid files
|
| 25 |
|
| 26 |
+
## Supported File Types
|
| 27 |
|
| 28 |
+
### π¦ XORB Files
|
| 29 |
|
| 30 |
+
XORB (Xet Orb) files contain collections of compressed chunks with metadata. The viewer displays:
|
| 31 |
|
| 32 |
+
- Chunk count and sizes
|
| 33 |
+
- Compression ratios
|
| 34 |
+
- Hash information
|
| 35 |
+
- Boundary offsets
|
| 36 |
+
- Individual chunk details
|
| 37 |
|
| 38 |
+
### ποΈ Shard Files
|
|
|
|
| 39 |
|
| 40 |
+
MDB Shard files store file metadata and content-addressable storage information for efficient deduplication. The viewer shows:
|
| 41 |
|
| 42 |
+
- File information entries
|
| 43 |
+
- CAS (Content Addressable Storage) data
|
| 44 |
+
- Lookup tables
|
| 45 |
+
- Timestamps and security keys
|
| 46 |
+
- Header and footer details
|
| 47 |
|
| 48 |
+
## Development
|
| 49 |
|
| 50 |
+
### Prerequisites
|
| 51 |
|
| 52 |
+
- Node.js 18+
|
| 53 |
+
- pnpm (or npm/yarn)
|
| 54 |
|
| 55 |
+
### Setup
|
| 56 |
|
| 57 |
+
```bash
|
| 58 |
+
cd xorb-shard-viewer
|
| 59 |
+
pnpm install
|
| 60 |
+
pnpm run dev
|
| 61 |
+
```
|
| 62 |
|
| 63 |
+
The application will be available at `http://localhost:5173`
|
| 64 |
|
| 65 |
+
### Build for Production
|
| 66 |
|
| 67 |
+
```bash
|
| 68 |
+
pnpm run build
|
| 69 |
+
```
|
| 70 |
|
| 71 |
+
The static files will be generated in the `build` directory.
|
| 72 |
|
| 73 |
+
## File Format Support
|
| 74 |
+
|
| 75 |
+
The application implements binary parsers for:
|
| 76 |
+
|
| 77 |
+
- **XORB Format**: Based on the CAS object format with chunk compression and merkle hashing
|
| 78 |
+
- **Shard Format**: MDB shard file format v2 with header, footer, file info, and CAS info sections
|
| 79 |
+
|
| 80 |
+
## Architecture
|
| 81 |
+
|
| 82 |
+
- **Frontend**: Svelte + TypeScript
|
| 83 |
+
- **Parsing**: Custom binary parsers for both file formats
|
| 84 |
+
- **Styling**: Component-scoped CSS with responsive design
|
| 85 |
+
- **Type Safety**: Full TypeScript support with detailed type definitions
|
| 86 |
+
|
| 87 |
+
## Browser Compatibility
|
| 88 |
+
|
| 89 |
+
Works in all modern browsers that support:
|
| 90 |
+
|
| 91 |
+
- File API
|
| 92 |
+
- ArrayBuffer/Uint8Array
|
| 93 |
+
- ES2020+ features
|
| 94 |
+
|
| 95 |
+
## Security
|
| 96 |
+
|
| 97 |
+
- All file processing happens client-side
|
| 98 |
+
- No data is uploaded to any server
|
| 99 |
+
- Files are processed entirely in the browser's memory
|