{"id":20064938,"url":"https://github.com/baidu/san-ssr","last_synced_at":"2025-07-27T19:10:22.817Z","repository":{"id":38108629,"uuid":"205780786","full_name":"baidu/san-ssr","owner":"baidu","description":"San SSR framework and utils","archived":false,"fork":false,"pushed_at":"2024-07-05T13:38:32.000Z","size":9200,"stargazers_count":39,"open_issues_count":12,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-21T19:40:52.096Z","etag":null,"topics":["san","ssr","ssr-target-js"],"latest_commit_sha":null,"homepage":"https://baidu.github.io/san-ssr/","language":"TypeScript","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/baidu.png","metadata":{"files":{"readme":"README.en.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-02T05:10:20.000Z","updated_at":"2025-04-04T03:51:38.000Z","dependencies_parsed_at":"2024-06-18T18:31:22.447Z","dependency_job_id":"ab27de87-bcf5-49e8-ba33-a44fe3b829e2","html_url":"https://github.com/baidu/san-ssr","commit_stats":{"total_commits":584,"total_committers":12,"mean_commits":"48.666666666666664","dds":"0.49486301369863017","last_synced_commit":"5feaebca64cea3fa1ede4d4aa60e226884d77b8d"},"previous_names":[],"tags_count":112,"template":false,"template_full_name":null,"purl":"pkg:github/baidu/san-ssr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fsan-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fsan-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fsan-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fsan-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baidu","download_url":"https://codeload.github.com/baidu/san-ssr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu%2Fsan-ssr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267408892,"owners_count":24082526,"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-07-27T02:00:11.917Z","response_time":82,"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":["san","ssr","ssr-target-js"],"created_at":"2024-11-13T13:48:21.486Z","updated_at":"2025-07-27T19:10:22.800Z","avatar_url":"https://github.com/baidu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# San SSR\n[![npm version](https://img.shields.io/npm/v/san-ssr.svg)](https://www.npmjs.org/package/san-ssr)\n[![downloads](https://img.shields.io/npm/dm/san-ssr.svg)](https://www.npmjs.org/package/san-ssr)\n[![Build Status](https://github.com/baidu/san-ssr/workflows/check.yml/badge.svg)](https://github.com/baidu/san-ssr/actions?query=workflow:Check)\n[![Coveralls](https://img.shields.io/coveralls/baidu/san-ssr.svg)](https://coveralls.io/github/baidu/san-ssr?branch=master)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/baidu/san-ssr)\n[![GitHub issues](https://img.shields.io/github/issues-closed/baidu/san-ssr.svg)](https://github.com/baidu/san-ssr/issues)\n[![David](https://img.shields.io/david/baidu/san-ssr.svg)](https://david-dm.org/baidu/san-ssr)\n[![David Dev](https://img.shields.io/david/dev/baidu/san-ssr.svg)](https://david-dm.org/baidu/san-ssr?type=dev)\n[![DUB license](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/baidu/san-ssr/blob/master/LICENSE)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits)\n\n**The purpurse of this repo** is to provide an SSR framework and utils for the [san][san] components.\n\n* [中文](https://github.com/baidu/san-ssr/blob/master/README.md)\n* SSR migration：[from san to san-ssr](https://github.com/baidu/san-ssr/wiki/%E4%BB%8E-san-%E8%BF%81%E7%A7%BB%E5%88%B0-san-ssr)\n* Demo：[demo/](https://github.com/baidu/san-ssr/tree/master/demo)\n\n## Usage\n\nThe [SanProject class][sanproject] is used to compile component files into ssr render function.\n\n```javascript\nconst { SanProject } = require('san-ssr')\nconst app = require('src/component.js')\n\nconst project = new SanProject()\nconst render = project.compileToRenderer(app)\n\nconsole.log(render({name: 'harttle'}))\n```\n\nSee API doc [SanProject][sanproject] for details, or refer to the demo project in /demo directory.\n\n## Working with San\n\nSupported san versions for each release are specified by `peerDependencies`, that means you'll need both `san` and `san-ssr` installed in case you need server side rendering. And it's considered compatible as long as you don't see any `UNMET` warning.\n\nNote: As described in [baidu/san/issues/441](https://github.com/baidu/san/issues/441#issuecomment-550260372), a minor version in san implies possible BREAKING CHANGES, thus the peerDependency is specified via [tilde version](https://docs.npmjs.com/misc/semver#tilde-ranges-123-12-1).\n\n## Other Target Platforms\n\nsan-ssr provides static analysis for San components and generates abstract component tree, while code generation is a separated process, which is provided by specific implementations:\n\n* [san-ssr-target-js](https://github.com/baidu/san-ssr/tree/master/src/target-js)\n* [san-ssr-target-php](https://github.com/baidu/san-ssr-target-php)\n\n[san]: https://github.com/baidu/san\n[sanproject]: https://baidu.github.io/san-ssr/classes/_src_models_san_project_.sanproject.html\n[target-compile]: https://baidu.github.io/san-ssr/interfaces/_models_compiler_.compiler.html#compile","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu%2Fsan-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaidu%2Fsan-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu%2Fsan-ssr/lists"}