{"id":15384117,"url":"https://github.com/theashraf/parse-cloud-function","last_synced_at":"2025-10-27T20:30:34.334Z","repository":{"id":48270986,"uuid":"163519833","full_name":"theashraf/parse-cloud-function","owner":"theashraf","description":"Create scalable \u0026 reusable parse cloud functions with middlewares","archived":false,"fork":false,"pushed_at":"2021-08-03T19:59:45.000Z","size":2832,"stargazers_count":2,"open_issues_count":31,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T13:43:01.247Z","etag":null,"topics":["cloud","code","middleware","parse","parse-server"],"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/theashraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-29T15:07:38.000Z","updated_at":"2023-04-18T09:40:07.000Z","dependencies_parsed_at":"2022-09-01T23:11:31.938Z","dependency_job_id":null,"html_url":"https://github.com/theashraf/parse-cloud-function","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theashraf%2Fparse-cloud-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theashraf%2Fparse-cloud-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theashraf%2Fparse-cloud-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theashraf%2Fparse-cloud-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theashraf","download_url":"https://codeload.github.com/theashraf/parse-cloud-function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238550155,"owners_count":19490841,"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":["cloud","code","middleware","parse","parse-server"],"created_at":"2024-10-01T14:40:39.696Z","updated_at":"2025-10-27T20:30:29.000Z","avatar_url":"https://github.com/theashraf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parse Cloud Function\n\n[![npm](https://img.shields.io/npm/v/parse-cloud-function.svg)](https://www.npmjs.com/package/parse-cloud-function)\n[![license](https://img.shields.io/github/license/theashraf/parse-cloud-function.svg)](https://github.com/theashraf/parse-cloud-function/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/dw/parse-cloud-function.svg)](https://www.npmjs.com/package/parse-cloud-function)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](#badge)\n\n\u003e Create scalable parse cloud functions\n\nParse Cloud Function helps in adding middlewares to cloud functions for more clean,reusable and scalable cloud code\n\n## Installation\n\n```sh\nnpm install --save parse-cloud-function\n```\n\n## Example\n\nA working example can be found [here](example)\n\n### Supported versions\n\n- parse-server \u003e= 3.0.0\n- node \u003e= 6.4\n\n### Basic Usage\n\n```js\n//parse cloud code file\nconst CloudFunction = require('parse-cloud-function')\nconst authMiddleware = async req =\u003e {\n\tif (!req.user) throw 'unauthorized'\n\treturn req // passes the req to the next middleware function\n}\nconst anotherMiddleware = async req =\u003e {\n\treq.data = 'some data'\n\treturn req\n}\nnew CloudFunction(Parse)\n\t.use([authMiddleware, anotherMiddleware])\n\t.define('myFunction', async req =\u003e {\n\t\tconsole.log(req.data) // 'some data'\n\t\treturn 'success'\n\t})\n```\n\n## Development setup\n\n```sh\nnpm install \u0026\u0026 npm run dev\n```\n\n## Contribution\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/fooBar`), or hotfix branch (`git checkout -b hotfix/fooBar`)\n3. Commit your changes (`npm run cz`)\n4. Push to the feature branch (`git push origin feature/fooBar`), or hotfix branch (`git push origin hotfix/fooBar`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheashraf%2Fparse-cloud-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheashraf%2Fparse-cloud-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheashraf%2Fparse-cloud-function/lists"}