{"id":26351682,"url":"https://github.com/theatom06/pinas","last_synced_at":"2025-03-16T10:33:55.112Z","repository":{"id":281477428,"uuid":"940563215","full_name":"theatom06/pinas","owner":"theatom06","description":"A simple file system server made in bun for a PI 0 2 w","archived":false,"fork":false,"pushed_at":"2025-03-09T10:43:33.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T11:25:22.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/theatom06.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}},"created_at":"2025-02-28T11:54:54.000Z","updated_at":"2025-03-09T10:43:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4d6f7d4-808b-479f-9e52-9773ddccaee8","html_url":"https://github.com/theatom06/pinas","commit_stats":null,"previous_names":["theatom06/pinas"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fpinas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fpinas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fpinas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fpinas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theatom06","download_url":"https://codeload.github.com/theatom06/pinas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858875,"owners_count":20359258,"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","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":[],"created_at":"2025-03-16T10:33:55.013Z","updated_at":"2025-03-16T10:33:55.089Z","avatar_url":"https://github.com/theatom06.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PiNAS\n\nThis is a simple file server made with Bun. It is intended to be used with a Raspberry Pi and a USB drive to create a simple NAS.\n\nIt also contains some bigger features like a file hash generator, time checker, and an echo server.\n\n## Usage\n\nTo install dependencies:\n\n```bash\nbun install\n```\n\nTo run:\n\n```bash\nbun run index.ts\n```\n\nAll files are stored in drive by default.\nAll logs are stored in logs by default.\n\nTo run tests:\n\n```bash\ncd test\nbun run test.ts\n```\n\nThis project was created using `bun init` in bun v1.2.3. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.\n\n## Features\n\n- **List Files**: List all files in a directory.\n- **Get Metadata**: Get metadata of a file.\n- **Download File**: Download a file.\n- **Delete File**: Delete a file.\n- **Upload File**: Upload a file.\n- **Rename File**: Rename a file.\n- **Health Check**: Check the health of the server.\n- **Hash File**: Get the hash of a file.\n- **Get Server Time**: Get the current server time.\n- **Echo Message**: Echo a message.\n- **Hello World**: Return a \"Hello, World!\" message.\n- **Get Logs**: Get the server logs.\n- **UUID**: Generate a UUID.\n- **Paperplane**: Contains the server code for the Paperplane project.\n\n## API Endpoints\n\n### List Files\n\n**GET** `/list/:id`\n\nList all files in the specified directory.\n\n### Get Metadata\n\n**GET** `/metadata/:id`\n\nGet metadata of the specified file.\n\n### Download File\n\n**GET** `/download/:id`\n\nDownload the specified file.\n\n### Delete File\n\n**DELETE** `/delete/:id`\n\nDelete the specified file.\n\n### Upload File\n\n**POST** `/upload/:id`\n\nUpload a file to the specified path.\n\n### Rename File\n\n**POST** `/rename/:id`\n\nRename the specified file.\n\n### Health Check\n\n**GET** `/health`\n\nCheck the health of the server.\n\n### Hash File\n\n**GET** `/hash/:id`\n\nGet the hash of the specified file.\n\n### Get Server Time\n\n**GET** `/time`\n\nGet the current server time.\n\n### Echo Message\n\n**POST** `/echo`\n\nEcho the message sent in the request body.\n\n### Hello World\n\n**GET** `/helloworld`\n\nReturn a \"Hello, World!\" message.\n\n### Get Logs\n\n**GET** `/log`\n\nGet the server logs.\n\n### UUID\n\n**GET** `/uuid`\n\nGenerate a UUID version 7.\n\n### Paperplane\n\n**POST** `/paperplane/upload`\n\nUploads a project to the server according to the Paperplane project and performs the necessary steps. For more information, see the [Paperplane](https://github.com/theatom06/paperplane) project.\n\n## License\n\nThis project is under the MIT License. See the [LICENSE](LICENSE) file for the full license text.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatom06%2Fpinas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheatom06%2Fpinas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatom06%2Fpinas/lists"}