Our objective is to create a decentralized and distributed PHP framework for sharing files and JSON data.
All servers store the files in the 'files' directory using their SHA-256 hash as the filename. This makes it easy to check which servers store the same files and helps avoid file repetition.
Inside the 'users' directory there will be subdirectories named with usernames. Inside each subdirectory will be stored the hashes of the files that the user owns.
Inside the 'html' directory there will be several subdirectories corresponding to categories. Within each category or subdirectory, HTML files will be saved in an ordered manner (such as 1.html, 2.html) making it easier for users to navigate, retrieve and share data (from the shared or submitted JSON files).
Although the default is for all servers to store the files within the 'files' directory, it is also possible to create a list of servers that store files in directories with custom names (and indicate the category of the files stored in that directory).