{"id":19767471,"url":"https://github.com/hprose/hprose-js","last_synced_at":"2026-03-08T07:32:15.071Z","repository":{"id":14155841,"uuid":"16861653","full_name":"hprose/hprose-js","owner":"hprose","description":"Hprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript","archived":false,"fork":false,"pushed_at":"2018-02-02T01:38:43.000Z","size":2129,"stargazers_count":135,"open_issues_count":5,"forks_count":44,"subscribers_count":22,"default_branch":"master","last_synced_at":"2026-02-19T17:17:38.603Z","etag":null,"topics":["cross-browser","cross-desktop","cross-device","cross-domain","cross-language","cross-platform","hprose","javascript","rpc","rpc-client","rpc-framework","serialization","serialization-library","serialize","serializer","tcp","websockets"],"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/hprose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-15T11:39:58.000Z","updated_at":"2025-12-02T14:47:00.000Z","dependencies_parsed_at":"2022-08-28T21:01:48.956Z","dependency_job_id":null,"html_url":"https://github.com/hprose/hprose-js","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/hprose/hprose-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hprose%2Fhprose-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hprose%2Fhprose-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hprose%2Fhprose-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hprose%2Fhprose-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hprose","download_url":"https://codeload.github.com/hprose/hprose-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hprose%2Fhprose-js/sbom","scorecard":{"id":470245,"data":{"date":"2025-08-11","repo":{"name":"github.com/hprose/hprose-js","commit":"ffd36cef49ce729ee1c2d123a403fc809772e287"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":"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":"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"}}]},"last_synced_at":"2025-08-19T13:43:09.287Z","repository_id":14155841,"created_at":"2025-08-19T13:43:09.290Z","updated_at":"2025-08-19T13:43:09.290Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30248892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T05:41:50.788Z","status":"ssl_error","status_checked_at":"2026-03-08T05:41:39.075Z","response_time":56,"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":["cross-browser","cross-desktop","cross-device","cross-domain","cross-language","cross-platform","hprose","javascript","rpc","rpc-client","rpc-framework","serialization","serialization-library","serialize","serializer","tcp","websockets"],"created_at":"2024-11-12T04:29:50.001Z","updated_at":"2026-03-08T07:32:15.055Z","avatar_url":"https://github.com/hprose.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"http://hprose.com/banner.@2x.png\" alt=\"Hprose\" title=\"Hprose\" width=\"650\" height=\"200\" /\u003e\u003c/p\u003e\n\n\u003ca href=\"https://promisesaplus.com/\"\u003e\n    \u003cimg src=\"https://promisesaplus.com/assets/logo-small.png\" alt=\"Promises/A+ logo\" title=\"Promises/A+ 1.1 compliant\" align=\"right\" /\u003e\n\u003c/a\u003e\n\n# Hprose for JavaScript\n\n[![Join the chat at https://gitter.im/hprose/hprose-js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hprose/hprose-js?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/hprose/hprose-js.svg?branch=master)](https://travis-ci.org/hprose/hprose-js)\n[![Sauce Test Status](https://saucelabs.com/buildstatus/hprose-js)](https://saucelabs.com/u/hprose-js)\n[![bower version](https://img.shields.io/bower/v/hprose.svg)](http://bower.io/search/?q=hprose)\n[![npm version](https://img.shields.io/npm/v/hprose-js.svg)](https://www.npmjs.com/package/hprose-js)\n[![License](https://img.shields.io/github/license/hprose/hprose-js.svg)](http://opensource.org/licenses/MIT)\n\n\u003e---\n- **[Introduction](#introduction)**\n    - **[Browser support](#browser-support)**\n    - **[Hybird app support](#hybird-app-support)**\n- **[Usage](#usage)**\n    - **[Exception Handling](#exception-handling)**\n\n\u003e---\n\n## Introduction\n\n*Hprose* is a High Performance Remote Object Service Engine.\n\nIt is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.\n\n*Hprose* supports many programming languages, for example:\n\n* AAuto Quicker\n* ActionScript\n* ASP\n* C++\n* Dart\n* Delphi/Free Pascal\n* dotNET(C#, Visual Basic...)\n* Golang\n* Java\n* JavaScript\n* Node.js\n* Objective-C\n* Perl\n* PHP\n* Python\n* Ruby\n* ...\n\nThrough *Hprose*, You can conveniently and efficiently intercommunicate between those programming languages.\n\nThis project is the implementation of Hprose for JavaScript.\n\nHprose 2.0 for JavaScript Documents（中文版）: https://github.com/hprose/hprose-js/wiki \n\n### Browser support\n\n#### Desktop browsers\n\n* Google Chrome\n* Apple Safari\n* Mozilla Firefox\n* Opera\n* Microsoft Internet Explorer 6.0+\n* Netscape 7+\n* Konqueror\n* ...\n\n#### Mobile browsers\n\n* Apple Safari on iOS\n* Google Chrome on iOS\n* Google Chrome on Android\n* Default Browser on Android\n* Internet Explorer on Windows Phone\n* Opera Mobile\n* Default Browser on WebOS\n* Default Browser on Blackberry\n* Default Browser on N9 MeeGo\n* Mozilla Firefox on N9 MeeGo\n* \\*Default Browser on Symbian\n* \\*Opera Mini\n* \\*Pocket IE\n* ...\n\nAll of the above browsers (except asterisk marked) support cross-domain invoking with Hprose for JavaScript.\n\n### Hybird app support\n\n* ionic + cordova (http, tcp, websocket)\n* Chrome extentions (http, tcp, websocket)\n* APICloud (http, tcp*)\n* DCloud (http)\n* AppCan (http)\n* DeviceOne (http)\n* ... (http, websocket)\n\nTCP is only available on iOS for APICloud, because there is a bug of APICloud Android SDK, and they don't want to fix this bug.\n\n## Usage\n\nYou don't need use the javascript source files. You only need include `hprose.js` in your html.\n\nThe file `FlashHttpRequest.swf` you can put it on anywhere, and then specify its load path by setting the `flashpath` attribute in the `script` tag. If you omit this attribute, the default path is current path.\n\n### Exception Handling\n\nIf an error occurred on the server, or your service function/method throw an exception, it will be sent to the client. You need to pass an error callback function after succuss callback function to receive it. If you omit this callback function, the client will ignore the exception, like never happened.\n\nFor example:\n\n```html\n\u003chtml\u003e\n\u003chead\u003e\n\u003cscript type=\"text/javascript\" src=\"hprose.js\" flashpath=\"/\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    var client = hprose.Client.create(\"http://www.hprose.com/example/\", [\"hello\"]);\n    client.hello(\"World!\")\n    .then(function(result) {\n        alert(result);\n    }, function(err) {\n        alert(err);\n    });\n\u003c/script\u003e\n\u003c/body\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhprose%2Fhprose-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhprose%2Fhprose-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhprose%2Fhprose-js/lists"}