{"id":30580574,"url":"https://github.com/react-component/rc-server","last_synced_at":"2025-08-29T05:37:25.758Z","repository":{"id":24610815,"uuid":"28019572","full_name":"react-component/rc-server","owner":"react-component","description":"This project is deprecated, use rc-tools run server","archived":false,"fork":false,"pushed_at":"2021-08-02T21:14:13.000Z","size":175,"stargazers_count":15,"open_issues_count":13,"forks_count":1,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-08-06T12:12:42.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/react-component.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":"2014-12-15T03:53:14.000Z","updated_at":"2019-03-06T02:52:37.000Z","dependencies_parsed_at":"2022-09-06T14:51:21.727Z","dependency_job_id":null,"html_url":"https://github.com/react-component/rc-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/rc-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Frc-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Frc-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Frc-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Frc-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/rc-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Frc-server/sbom","scorecard":{"id":765397,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/rc-server","commit":"4bd51ac759150854cea688ef84731e37f266f7da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":-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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-23T00:37:39.251Z","repository_id":24610815,"created_at":"2025-08-23T00:37:39.251Z","updated_at":"2025-08-23T00:37:39.251Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636191,"owners_count":24967983,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-29T05:37:25.317Z","updated_at":"2025-08-29T05:37:25.747Z","avatar_url":"https://github.com/react-component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-server\n\ndevelopment server for react component\n\n* This project is deprecated, use [rc-tools run server](https://github.com/react-component/rc-tools) *\n\n[![NPM version][npm-image]][npm-url]\n[![gemnasium deps][gemnasium-image]][gemnasium-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-server.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-server\n[travis-image]: https://img.shields.io/travis/react-component/rc-server.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/rc-server\n[coveralls-image]: https://img.shields.io/coveralls/react-component/rc-server.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/rc-server?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/rc-server.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/rc-server\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.11-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-server.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-server\n\n## Feature\n\n* support jsx\n* support autoprefixer\n* support mocha-phantomjs\n* support travis\n* support coveralls.io\n* support react js module render as html\n* support load commonjs file into browser and run\n\n\n## Usage\n\n### file structure\n\n```\n- .travis.yml\n- examples\n - index.html\n - index.js\n- lib\n - Component.js\n- index.js\n- tests\n  - index-spec.js\n- package.json\n```\n\nSuggest using https://github.com/react-component/generator-rc\n\n#### index.js\n\n```js\n/** @jsx React.DOM */\nvar Component = require('./lib/Component');\nmodule.exports = \u003cComponent /\u003e\n```\n\n#### Component.js\n\n```js\n/** @jsx React.DOM */\nvar React = require('react');\nvar Component = React.createClass({\n    // TODO\n    render: function(){\n        return \u003cdiv\u003e\u003c/div\u003e;\n    };\n});\nmodule.exports = Component;\n```\n\n#### .travis.yml\n\n```\nlanguage: node_js\nnode_js:\n- 0.11\nbefore_script:\n- npm start \u0026\n- npm install mocha-phantomjs -g\n- phantomjs --version\nscript:\n- npm test\n- npm run browser-test\n- npm run browser-test-cover\n```\n\n#### package.json\n\n```js\n{\n    \"devDependencies\": {\n        \"rc-server\": \"^1.0.0\"\n    },\n    \"config\": {\n        \"port\": 8001\n    },\n    \"scripts\": {\n        \"start\": \"node --harmony node_modules/.bin/rc-server\",\n        \"browser-test\": \"mocha-phantomjs http://localhost:$npm_package_config_port/tests/runner.html\",\n        \"browser-test-cover\": \"mocha-phantomjs -R node_modules/rc-server/node_modules/node-jscover/lib/reporters/mocha/console http://localhost:$npm_package_config_port/tests/runner.html?coverage\"\n\n    }\n}\n```\n\n#### index-spec.js\n\n```js\nvar expect = require('expect.js');\nvar React = require('react');\nvar Component = require('../');\n\ndescribe('it', function(){\n    it('works', function(){\n        var component = (\u003cComponent/\u003e\u003ca\u003e\u003c/a\u003e\u003c/Component\u003e);\n        expect(component).to.be(component);\n    });\n});\n```\n\n#### index.html\n\n```\nplaceholder\n```\n\nremove backslash!\n\nSuggest using https://github.com/react-component/generator-rc\n\n### start server\n\n```\nnpm install\nnpm start\n```\n\n* open [http://localhost:8001/tests/runner.html](http://localhost:8001/tests/runner.html) to see test\n* open [http://localhost:8001/examples/index.md](http://localhost:8001/examples/index.html) to see demo","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Frc-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Frc-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Frc-server/lists"}