{"id":29189393,"url":"https://github.com/coderaiser/restbox","last_synced_at":"2025-07-01T23:07:26.463Z","repository":{"id":66160186,"uuid":"155690315","full_name":"coderaiser/restbox","owner":"coderaiser","description":"📦 REST for CRUD file operations on dropbox","archived":false,"fork":false,"pushed_at":"2024-04-10T08:21:23.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T12:50:42.059Z","etag":null,"topics":["api","crud","dropbox","express","middleware","rest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2018-11-01T09:16:39.000Z","updated_at":"2025-05-22T04:44:29.000Z","dependencies_parsed_at":"2024-06-19T14:58:48.494Z","dependency_job_id":"79b57bd9-704d-484b-b387-3bbd4cfe5a4a","html_url":"https://github.com/coderaiser/restbox","commit_stats":{"total_commits":90,"total_committers":1,"mean_commits":90.0,"dds":0.0,"last_synced_commit":"9e7f9b3ec9a5c758e45ae23cd689bbe6de51ac0e"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/restbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frestbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frestbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frestbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frestbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/restbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frestbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261663829,"owners_count":23192056,"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":["api","crud","dropbox","express","middleware","rest"],"created_at":"2025-07-01T23:07:25.654Z","updated_at":"2025-07-01T23:07:26.358Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":[],"sub_categories":[],"readme":"# Restbox [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/restbox.svg?style=flat\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/restbox \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[BuildStatusURL]: https://github.com/coderaiser/restbox//actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/restbox/workflows/Node%20CI/badge.svg\n[CoverageURL]: https://coveralls.io/github/coderaiser/restbox?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/restbox/badge.svg?branch=master\u0026service=github\n\n**REST** for **CRUD** file operations on `dropbox`.\n\n## What is it?\n\n**RE**presentational **S**tate **T**ransfer is an abstraction of the architecture of the World Wide Web.\n\n**C**reate **R**ead **U**pdate **D**elete is 4 basic functions of persistent storage.\n\n## Install\n\n`npm i restbox`\n\n## REST\n\n|Name         |Method   |Query          |Body               |Description                    |\n|:------------|:--------|:--------------|:------------------|:------------------------------|\n|`fs`         |`GET`    |               |                   |get file or dir content        |\n|             |         |`sort`         |                   |sort dir content by `name`,    |\n|             |         |               |                   |`size`, or `time`              |\n|             |         |`order`        |                   |order of sorting, can be:      |\n|             |         |               |                   |`asc` or `desc`                |\n|             |         |`raw`          |                   |get file or raw dir content    |\n|             |         |`size`         |                   |get file or dir size           |\n|             |         |`time`         |                   |get time of file change        |\n|             |         |`hash`         |                   |get file hash                  |\n|             |`PUT`    |               |file content       |create/write file              |\n|             |         | `unzip`       |file content       |unzip and create/write file    |\n|             |         | `dir`         |                   |create dir                     |\n|             |`PATCH`  |               |diff               |patch file                     |\n|             |`DELETE` |               |                   |delete file                    |\n|             |         |`files`        |Array of names     |delete files                   |\n\n## How to use?\n\n```js\nconst restbox = require('restbox');\nconst http = require('http');\nconst express = require('express');\n\nconst app = express();\nconst server = http.createServer(app);\n\nconst port = 1337;\nconst ip = '0.0.0.0';\n\napp.use(restbox({\n    token: 'your dropbox token',\n    prefix: '/dropbox', // default\n    root: '/', // default, can be string or function\n}));\n\napp.use(express.static(__dirname));\n\nserver.listen(port, ip);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Frestbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Frestbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Frestbox/lists"}