{"id":13901400,"url":"https://github.com/djyde/serlina","last_synced_at":"2025-08-20T20:32:14.245Z","repository":{"id":98691350,"uuid":"143324608","full_name":"djyde/serlina","owner":"djyde","description":"A progressive React serverside-rendering framework.","archived":false,"fork":false,"pushed_at":"2020-09-02T05:37:25.000Z","size":186,"stargazers_count":139,"open_issues_count":4,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-13T06:06:48.105Z","etag":null,"topics":["react","serverside-rendering","ssr"],"latest_commit_sha":null,"homepage":"https://serlina.js.org","language":"TypeScript","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/djyde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-02T17:17:48.000Z","updated_at":"2024-11-19T06:31:30.000Z","dependencies_parsed_at":"2023-06-11T03:30:42.133Z","dependency_job_id":null,"html_url":"https://github.com/djyde/serlina","commit_stats":{"total_commits":199,"total_committers":3,"mean_commits":66.33333333333333,"dds":"0.025125628140703515","last_synced_commit":"4bda5186464ded3c8c13257bb86511d195c528bd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/djyde/serlina","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djyde%2Fserlina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djyde%2Fserlina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djyde%2Fserlina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djyde%2Fserlina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djyde","download_url":"https://codeload.github.com/djyde/serlina/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djyde%2Fserlina/sbom","scorecard":{"id":346503,"data":{"date":"2025-08-11","repo":{"name":"github.com/djyde/serlina","commit":"4bda5186464ded3c8c13257bb86511d195c528bd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"Code-Review","score":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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-18T07:09:58.482Z","repository_id":98691350,"created_at":"2025-08-18T07:09:58.482Z","updated_at":"2025-08-18T07:09:58.482Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"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-20T02:00:09.606Z","response_time":69,"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":["react","serverside-rendering","ssr"],"created_at":"2024-08-06T21:01:20.506Z","updated_at":"2025-08-20T20:32:13.938Z","avatar_url":"https://github.com/djyde.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"![logo](https://cdn.nlark.com/yuque/0/2018/png/84329/1533482375370-fc24dd8f-9cf5-46bd-b8ca-8b7cdf43be83.png)\n[![npm](https://badgen.net/npm/v/serlina)](https://npm.im/serlina)\n[![downloads](https://badgen.net/npm/dt/serlina)](https://npm.im/serlina)\n[![CircleCI](https://circleci.com/gh/djyde/serlina.svg?style=shield)](https://circleci.com/gh/djyde/serlina)\n\nA progressive React serverside-rendering framework.\n\n## Motivation\n\nI love using [Next.js](https://github.com/zeit/next.js/), but most of my projects need to use our own web server framework while Next.js run it own server. So I begin making a SSR framework (core) that like Next.js but open for server implementation. It does all the building, compiling, rendering-to-string things and give the rest render-to-html things to your own web server.\n\n\u003e Of course I know Next.js can [custom server and routing](https://github.com/zeit/next.js#custom-server-and-routing), but while Next.js handle the whole http `context`, [I cannot use it in a high layer web framework](https://github.com/eggjs/egg/issues/328).\n\n[Read the announcing post](https://medium.com/@djyde/serlina-a-progressive-react-serverside-rendering-framework-a4de2d71d984)\n\n## Integrations\n\n- [egg-serlina](https://github.com/serlina-community/egg-serlina)\n- [serlina-koa](/packages/serlina-koa/README.md)\n- [serlina-serve](/packages/serlina-serve/README.md)\n\n## Quick Start\n\n```\nnpm i serlina react react-dom --save\n```\n\nCreate a folder structure like:\n\n```bash\n├── index.js\n├── pages\n│   └── page1.js\n```\n\n```js\n// pages/page1.js\n\nexport default () =\u003e {\n  return \u003cdiv\u003eHello Serlina!\u003c/div\u003e\n}\n```\n\nAnd implement a most simple http server:\n\n```js\n// index.js\n\nconst { Serlina } = require('serlina')\nconst path = require('path')\n\nconst http = require('http')\n\nconst serlina = new Serlina({\n  baseDir: path.resolve(__dirname, './')\n})\n\nserlina.prepare()\n  .then(() =\u003e {\n    http.createServer(async (req, res) =\u003e {\n        res.writeHead(200, { 'Content-Type': 'text/html' })\n        if (req.url === '/page1') {\n          const rendered = await serlina.render('page1')\n          res.write(rendered.body)\n        } else {\n          res.write('works!')\n        }\n        res.end()\n    }).listen(8090)\n  })\n  .catch(console.error)\n```\n\nOpen `http://localhost:8090/page1`, you will see the page you wrote in React!\n\n## Documentation\n\nVisit [Full Doc](https://serlina.js.org)\n\n## Who is using?\n\n\u003cimg src=\"https://ws2.sinaimg.cn/large/006tNbRwly1fxteoetaagj31kq0d8dhv.jpg\" width=\"320\" /\u003e\n\u003cimg src=\"https://ws1.sinaimg.cn/large/006tNbRwly1fxtepijxdrj30ay05gglp.jpg\" width=\"320\" /\u003e\n\nPlease create an issue or PR to tell us you are using Serlina!\n\n## Development\n\n```bash\nnpm run bootstrap\n\nnpm test # run test\n```\n\n# License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjyde%2Fserlina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjyde%2Fserlina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjyde%2Fserlina/lists"}