{"id":26433654,"url":"https://github.com/chat21/chat21-cloud-functions","last_synced_at":"2026-02-23T15:01:53.780Z","repository":{"id":25882641,"uuid":"106792672","full_name":"chat21/chat21-cloud-functions","owner":"chat21","description":"Firebase cloud functions for Chat21. It's the server engine of Chat21  hosted on Google Firebase ","archived":false,"fork":false,"pushed_at":"2023-01-09T17:06:54.000Z","size":28323,"stargazers_count":82,"open_issues_count":19,"forks_count":67,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-21T03:52:06.126Z","etag":null,"topics":["chat","chat-application","firebase","firebase-functions","livechat","messaging","sdk"],"latest_commit_sha":null,"homepage":"http://www.chat21.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chat21.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-13T07:32:01.000Z","updated_at":"2025-05-28T13:43:58.000Z","dependencies_parsed_at":"2023-01-14T03:36:51.417Z","dependency_job_id":null,"html_url":"https://github.com/chat21/chat21-cloud-functions","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/chat21/chat21-cloud-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chat21%2Fchat21-cloud-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chat21%2Fchat21-cloud-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chat21%2Fchat21-cloud-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chat21%2Fchat21-cloud-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chat21","download_url":"https://codeload.github.com/chat21/chat21-cloud-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chat21%2Fchat21-cloud-functions/sbom","scorecard":{"id":274879,"data":{"date":"2025-08-11","repo":{"name":"github.com/chat21/chat21-cloud-functions","commit":"dc5ecab87083bf7899ab42b47dbcb2c927cee84f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docker-community-push-latest.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-image-tag-community-tag-push.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-community-push-latest.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/chat21/chat21-cloud-functions/docker-community-push-latest.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-community-push-latest.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chat21/chat21-cloud-functions/docker-community-push-latest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-image-tag-community-tag-push.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/chat21/chat21-cloud-functions/docker-image-tag-community-tag-push.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-image-tag-community-tag-push.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/chat21/chat21-cloud-functions/docker-image-tag-community-tag-push.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating node:lts-alpine to node:lts-alpine@sha256:1b2479dd35a99687d6638f5976fd235e26c5b37e8122f786fcd5fe231d63de5b","Warn: npmCommand not pinned by hash: Dockerfile:39","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"50 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4g6q-77j7-vvjc","Warn: Project is vulnerable to: GHSA-7v5v-9h63-cj86","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-r92x-f52r-x54g","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-wm7h-9275-46v2","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp","Warn: Project is vulnerable to: GHSA-wgfq-7857-4jcc","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-48ww-j4fc-435p","Warn: Project is vulnerable to: GHSA-hwqf-gcqm-7353","Warn: Project is vulnerable to: GHSA-9h6g-pr28-7cqp","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-g954-5hwp-pp24","Warn: Project is vulnerable to: GHSA-h755-8qp9-cq85","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T14:11:17.364Z","repository_id":25882641,"created_at":"2025-08-17T14:11:17.364Z","updated_at":"2025-08-17T14:11:17.364Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29746499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chat","chat-application","firebase","firebase-functions","livechat","messaging","sdk"],"created_at":"2025-03-18T07:17:58.483Z","updated_at":"2026-02-23T15:01:53.758Z","avatar_url":"https://github.com/chat21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat21 - Firebase Cloud Functions\n\n[![npm version](https://badge.fury.io/js/%40chat21%2Fchat21-cloud-functions-public.svg)](https://badge.fury.io/js/%40chat21%2Fchat21-cloud-functions-public)\n\nChat21 is the core of the open source live chat platform [Tiledesk.com](http://www.tiledesk.com).\n\n- [Chat21 - Firebase Cloud Functions](#chat21---firebase-cloud-functions)\n  - [Introduction](#introduction)\n  - [Pre requisites](#pre-requisites)\n  - [Project building](#project-building)\n  - [Project setup](#project-setup)\n  - [Deploy](#deploy)\n  - [Tips](#tips)\n  - [Run with Docker](#run-with-docker)\n  - [Test](#test)\n    - [Send your first message](#send-your-first-message)\n  - [Advanced Setup Options](#advanced-setup-options)\n  - [REST API](#rest-api)\n\n## Introduction\n\nChat21-cloud function is the backend module required for the operation of the other chat21 modules.\n\n- Send a direct message\n- Send a group message\n- Create a conversation for each message\n- Send the push notification for direct and group message\n- Send an info message to notify the creation of a group or a member joining\n\n## Pre requisites\n\n- NPM installed. More info here \u003chttps://nodejs.org/en/\u003e\n- Create a Firebase Project on \u003chttps://console.firebase.google.com/\u003e. Follow the Firebase Documentation to create a new project on the Firebase console.\n- Install Firebase CLI running `npm install -g firebase-tools`.\n  More info here \u003chttps://firebase.google.com/docs/cli/\u003e\n  If the command fails, you may need to change npm permissions as described here \u003chttps://docs.npmjs.com/getting-started/fixing-npm-permissions\u003e or try to install Firebase CLI locally with `npm install firebase-tools`\n\nYou can find more info about Firebase Functions here \u003chttps://firebase.google.com/docs/functions/get-started\u003e\n\n## Project building\n\n```bash\ngit clone git@github.com:chat21/chat21-cloud-functions.git\ncd functions\nnpm install\n```\n\n## Project setup\n\n1. Login on the Firebase CLI with `firebase login` - it requires access to a web browser.\n\n   - To log into the CLI in remote environments that don't allow access to localhost, use the --no-localhost flag. `firebase login --no-localhost`\n     More info here \u003chttps://firebase.google.com/docs/cli/\u003e\n\n2. Set up your Firebase project by running `firebase use --add`, select your Project ID\n\n## Deploy\n\nDeploy to Firebase using the following commands:\n\n1. Go in the project root directory with\n\n   ```bash\n   cd ..\n   ```\n\n2. Deploy\n\n   ```bash\n   firebase deploy\n   ```\n\nYou can now see the deployed functions on the Firebase Console under Functions menu.\n\n## Tips\n\n- If you get Error 403 \"Your client does not have permission to the requested URL\" please enable unauthenticated function for /api e /supportapi cloud functions following this guide: \u003chttps://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_function_invocation\u003e\n\n## Run with Docker\n\nIf you prefer you can use a pre-built docker image to deploy the cloud functions to the Firebase project:\n\nRun:\n\n```bash\ndocker run -it chat21/chat21-cloud-functions sh\n```\n\nAfter that follow the \"Project setup\" and \"Deploy paragraphs.\n\n## Test\n\n### Send your first message\n\n- Create a new user on the Firebase Console under Authentication Menu.\n- Select Email/Password for Authentication Provider\n- Click on \"Add New User\" and populate Email and Password field with for example : email = a@a.com, password = 123456\n- Get a JWT token calling JWT Authentication method as described here [JWT Authentication](docs/api.md#jwt-authentication)\n- Send a new message using Send Message API with JWT Authentication as described here [Send message](docs/api.md#send-a-message)\n\n## Advanced Setup Options\n\n[Read the Setup Options page](docs/setup_options.md)\n\n## REST API\n\n[Read the REST API page](docs/api.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchat21%2Fchat21-cloud-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchat21%2Fchat21-cloud-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchat21%2Fchat21-cloud-functions/lists"}