{"id":25731276,"url":"https://github.com/longlongago2/bricky","last_synced_at":"2026-05-06T15:37:27.215Z","repository":{"id":65146767,"uuid":"578414432","full_name":"longlongago2/bricky","owner":"longlongago2","description":"A rich editor based on slatejs","archived":false,"fork":false,"pushed_at":"2023-09-05T08:55:26.000Z","size":698,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T23:33:51.131Z","etag":null,"topics":["react","rich-editor","slate","slate-editor","slate-react"],"latest_commit_sha":null,"homepage":"https://github.com/longlongago2/bricky#readme","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/longlongago2.png","metadata":{"files":{"readme":"README.CN.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-15T02:00:24.000Z","updated_at":"2022-12-31T07:23:40.000Z","dependencies_parsed_at":"2024-09-30T02:40:37.074Z","dependency_job_id":null,"html_url":"https://github.com/longlongago2/bricky","commit_stats":{"total_commits":61,"total_committers":1,"mean_commits":61.0,"dds":0.0,"last_synced_commit":"cad5e0ccd47f1a90800acefe13153c66f05b91ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlongago2%2Fbricky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlongago2%2Fbricky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlongago2%2Fbricky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longlongago2%2Fbricky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/longlongago2","download_url":"https://codeload.github.com/longlongago2/bricky/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240713779,"owners_count":19845726,"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":["react","rich-editor","slate","slate-editor","slate-react"],"created_at":"2025-02-26T02:45:46.978Z","updated_at":"2025-11-19T15:02:40.133Z","avatar_url":"https://github.com/longlongago2.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bricky\n\n\u003e 一款基于 slate.js 的富文本编辑器\n\n`react`\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`slate.js`\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`typescript`\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`antd`\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`rich-editor`\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\n## 使用\n\n### 1、安装\n\n```bash\nnpm install bricky\n```\n\n### 2、Javascript / Typescript\n\n\n#### app.tsx\n\n```javascript\nimport { Editor } from 'bricky';\n```\n\n#### tsconfig.json\n\n```json\n{\n  \"compilerOptions\": { },\n  \"include\": [\n    \"src\",\n    \"./node_modules/bricky/esm/slate.d.ts\" // extend slate CustomTypes\n    ]\n}\n```\n\nor\n\n#### vite-env.d.ts\n\n```typescript\n/// \u003creference types=\"bricky/esm/slate.d.ts\" /\u003e\n```\n\n## 本地安装调试\n\n```bash\ncd ~/bricky       # 进入本项目根目录\nnpm link          # 将本项目包创建全局链接，类似安装到全局\ncd ~/my-project   # 进入其他项目目录\nnpm link bricky   # 链接 bricky 包, --save: 保存到 package.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonglongago2%2Fbricky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonglongago2%2Fbricky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonglongago2%2Fbricky/lists"}