{"id":13677277,"url":"https://github.com/childrentime/pareto","last_synced_at":"2025-03-31T11:08:21.183Z","repository":{"id":235366022,"uuid":"790540916","full_name":"childrentime/pareto","owner":"childrentime","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-10T08:16:50.000Z","size":3920,"stargazers_count":65,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T17:53:29.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://paretojs.tech/","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/childrentime.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["childrentime"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"lianwenwu","custom":null}},"created_at":"2024-04-23T04:18:51.000Z","updated_at":"2025-03-27T17:30:32.000Z","dependencies_parsed_at":"2024-04-23T07:10:56.265Z","dependency_job_id":"f456f0f3-177b-4756-ba8a-a292bc1f6090","html_url":"https://github.com/childrentime/pareto","commit_stats":null,"previous_names":["childrentime/pareto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/childrentime%2Fpareto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/childrentime%2Fpareto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/childrentime%2Fpareto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/childrentime%2Fpareto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/childrentime","download_url":"https://codeload.github.com/childrentime/pareto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458000,"owners_count":20780677,"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","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":"2024-08-02T13:00:39.816Z","updated_at":"2025-03-31T11:08:21.162Z","avatar_url":"https://github.com/childrentime.png","language":"TypeScript","funding_links":["https://github.com/sponsors/childrentime","https://buymeacoffee.com/lianwenwu"],"categories":["Resources"],"sub_categories":["Ecosystem"],"readme":"# Pareto\n\n[English Version](./README.md)\n\nPareto 是一个以流式渲染为核心的 SSR（服务器端渲染）框架。 它的目标不是一个类似 `next.js` 或者 `remix` 的全栈框架，而是旨在对常规的 SSR应用进行增强。\n\n你可以直接用 `pareto` 来新建应用，也可以参考这个[模板](./examples/base/)来为你自己的 SSR 应用支持流式渲染功能。\n\n## 目的\n\n在SSR应用中接入流式渲染是一个复杂的过程，并且遗憾的是，没有一些好的实践来告诉我们怎么接入流式渲染。像next.js 干脆将 `server component` 和流式渲染强行绑定了，而 remix 也需要使用它自定义的 `defer` 和 `loader` 逻辑。\n\n### 关于流式渲染\n\n关于流式渲染的文章，可以参考 \u003chttps://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming#what-is-streaming\u003e \u003chttps://github.com/reactwg/react-18/discussions/22\u003e\n\n简而言之，流式渲染相较于传统的SSR能够改善您的FCP（首次内容绘制）和TTFB（首字节时间）指标。这种改进很显著，因为现在我们不必等待服务器上所有并行接口的返回。我们可以“流式传输”返回时间最长的接口。\n\n\n## 赞助我\n\n如果我的工作对你有帮助，考虑给我买杯咖啡吧，非常感谢！\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://d21002cb.images-f3o.pages.dev/images/wechat.jpg\" alt=\"Wechat Pay\" width=\"200\" /\u003e\n  \u003cimg src=\"https://d21002cb.images-f3o.pages.dev/images/ali.jpg\" alt=\"Ali Pay\" width=\"200\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchildrentime%2Fpareto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchildrentime%2Fpareto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchildrentime%2Fpareto/lists"}