{"id":20761172,"url":"https://github.com/msgbyte/tushan","last_synced_at":"2025-05-16T03:04:45.815Z","repository":{"id":157098095,"uuid":"510116730","full_name":"msgbyte/tushan","owner":"msgbyte","description":"Tushan: Build a admin platform for your application in five minutes.","archived":false,"fork":false,"pushed_at":"2025-03-07T15:17:31.000Z","size":2872,"stargazers_count":426,"open_issues_count":11,"forks_count":41,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T13:11:28.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tushan.msgbyte.com/","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/msgbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-03T19:26:38.000Z","updated_at":"2025-03-07T15:17:35.000Z","dependencies_parsed_at":"2024-07-06T10:28:58.511Z","dependency_job_id":"8fd7433d-660b-4bc8-b2c9-692d8f1d48bb","html_url":"https://github.com/msgbyte/tushan","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgbyte%2Ftushan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgbyte%2Ftushan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgbyte%2Ftushan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgbyte%2Ftushan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msgbyte","download_url":"https://codeload.github.com/msgbyte/tushan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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-11-17T10:17:56.422Z","updated_at":"2025-05-16T03:04:40.804Z","avatar_url":"https://github.com/msgbyte.png","language":"TypeScript","readme":"[简体中文](./README.zh.md)\n\n# Introduction\n\n## **Tushan: Build a Backend Management Platform in Five Minutes**\n\n\u003cimg width=\"128px\" src=\"https://tushan.msgbyte.com/img/logo.svg\" /\u003e\n\nOfficial Documentation: [https://tushan.msgbyte.com/](https://tushan.msgbyte.com/)\n\n`Tushan` is a highly flexible, React-based, out-of-the-box frontend framework for backend management applications.\n\nAs a developer, you can quickly create a usable backend management framework as if you were calling a library.\n\nA simple `Tushan` application might looks like this:\n\n```tsx\nimport {\n  createTextField,\n  createEmailField,\n  createUrlField,\n  jsonServerProvider,\n  ListTable,\n  Resource,\n  Tushan,\n} from 'tushan';\n\nconst dataProvider = jsonServerProvider('https://jsonplaceholder.typicode.com');\n\nfunction App() {\n  return (\n    \u003cTushan\n      basename=\"/admin\"\n      dataProvider={dataProvider}\n    \u003e\n      \u003cResource\n        name=\"users\"\n        label=\"User\"\n        list={\n          \u003cListTable\n            fields={[\n              createTextField('id', {\n                label: 'ID',\n              }),\n              createTextField('name', {\n                label: 'Name',\n                list: {\n                  sort: true,\n                },\n              }),\n              createEmailField('email', {\n                label: 'Email',\n              }),\n              createUrlField('website', {\n                label: 'Website',\n              }),\n            ]}\n            action={{ create: true, detail: true, edit: true, delete: true }}\n          /\u003e\n        }\n      /\u003e\n    \u003c/Tushan\u003e\n  );\n}\n\nexport default App;\n```\n\nWe can determine the presentation of the data table by specifying the types of fields, and built-in functionalities for common operations such as add, delete, edit, and query are implemented to help developers quickly produce an MVP for a backend application.\n\n## Preview\n\nThe preview effects are as follows:\n\n![](https://tushan.msgbyte.com/img/preview/1.png)\n\n![](https://tushan.msgbyte.com/img/preview/2.png)\n\n![](https://tushan.msgbyte.com/img/preview/3.png)\n\n![](https://tushan.msgbyte.com/img/preview/4.png)\n\n\n\u003e The API design of Tushan is greatly inspired by [react-admin](https://marmelab.com/react-admin), and their interface protocols are fully compatible. This means that the backend interface ecosystem of react-admin can be seamlessly used by Tushan. If you're interested in a backend solution designed with material-ui, you can choose react-admin as an alternative.\n\nAdditionally, Tushan includes some common frontend dependencies such as styled-components and arco-design, which can help you build your frontend interface more quickly.\n\n## Quick Example in CodeSandbox\n\nVisit [CodeSandbox](https://codesandbox.io/p/github/msgbyte/tushan/master) for a quick example of a version without backend.\n\n## UI Framework\n\nThe UI component library of Tushan is based on ByteDance's arco-design. You can access the official documentation of arco-design [here](https://arco.design/react/docs/start).\n\nAll components have been exported and can be directly imported through tushan.\n\n## Scan to Visit Tushan Official Website\n\n\u003cimg width=\"360\" src=\"./website/static/img/qrcode.jpg\" /\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsgbyte%2Ftushan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsgbyte%2Ftushan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsgbyte%2Ftushan/lists"}