{"id":24247092,"url":"https://github.com/dylanlott/storj-express","last_synced_at":"2025-08-16T01:16:41.973Z","repository":{"id":57371365,"uuid":"100495843","full_name":"dylanlott/storj-express","owner":"dylanlott","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-12T19:29:34.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T16:05:26.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanlott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-16T14:03:06.000Z","updated_at":"2017-08-16T21:30:41.000Z","dependencies_parsed_at":"2022-09-15T17:02:09.711Z","dependency_job_id":null,"html_url":"https://github.com/dylanlott/storj-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fstorj-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fstorj-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fstorj-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fstorj-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanlott","download_url":"https://codeload.github.com/dylanlott/storj-express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877137,"owners_count":20035402,"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-01-14T23:18:07.659Z","updated_at":"2025-03-04T15:46:15.309Z","avatar_url":"https://github.com/dylanlott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"storj-express\n=============\n\nadd a storj server to an existing express app quickly and easily \n\n`npm install github:dylanlott/storj-express --save`\n\n```js\n\nconst express = require('express');\nconst app = express(); \n\nconst storj = require('storj-express');\n\napp.use('/storj', storj({\n  bridgeUrl: 'https://api.storj.io',\n  bridgeUser: \u003cyour@storj.email\u003e,\n  bridgePass: \u003cyour-storj-password\u003e,\n  encryptionKey: 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about',\n  logLevel: 4\n}));\n\napp.listen(1337, () =\u003e {\n  console.log('storj-enabled express server now running on port 1337');\n});\n\n```\n\nyou can `app.use()` this route anywhere to namespace a storj service endpoint wherever you want. \n\nor, alternatively, you can use this to setup a storj microservice by namespacing it to the root url `/`\n\nhowever you want to use this is up to you! let your imagination run wild. \n\n## Roadmap \n\nThis is a work in progress middleware package. \n\nThe following routes still need to be implemented \n\n- [x] .getInfo(function(err, result) {}) - Gets general API info`\n\n- [x] .getBuckets(function(err, result) {}) - Gets list of available buckets\n\n- [x] .createBucket(bucketName, function(err, result) {}) - Creates a bucket\n\n- [x] .deleteBucket(bucketId, function(err, result) {}) - Deletes a bucket\n\n- [x] .listFiles(bucketId, function(err, result) {}) - List files in a bucket\n\n- [x] .storeFile(bucketId, filePath, options) - Uploads a file, returns state object\n\n- [ ]  .storeFileCancel(state) - This will cancel an upload\n\n- [ ] .resolveFile(bucketId, fileId, filePath, options) - Downloads a file, return state object\n\n- [ ] .resolveFileCancel(state) - This will cancel a download\n\n- [x] .deleteFile(bucketId, fileId, function(err, result) {}) - Deletes a file from a bucket\n\n- [x] .destroy() - This will zero and free memory of encryption keys and the environment\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fstorj-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanlott%2Fstorj-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fstorj-express/lists"}