{"id":15837196,"url":"https://github.com/afeiship/next-slate-plugin","last_synced_at":"2026-05-01T09:31:59.667Z","repository":{"id":57122875,"uuid":"336179358","full_name":"afeiship/next-slate-plugin","owner":"afeiship","description":"Slate plugin manager.","archived":false,"fork":false,"pushed_at":"2021-12-13T01:40:37.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T15:29:06.854Z","etag":null,"topics":["define","next","plugin","schema","slate"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T06:00:44.000Z","updated_at":"2021-12-13T01:40:39.000Z","dependencies_parsed_at":"2022-08-24T14:59:32.650Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-slate-plugin","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-slate-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-slate-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-slate-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-slate-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-slate-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-slate-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-slate-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["define","next","plugin","schema","slate"],"created_at":"2024-10-05T15:21:22.265Z","updated_at":"2026-05-01T09:31:59.651Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-slate-plugin\n\u003e Slate plugin manager.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-slate-plugin\n```\n\n## apis\n| api     | params       | description                         |\n| ------- | ------------ | ----------------------------------- |\n| define  | schema       | Define a plugin.                    |\n| actived | node,plugins | Get actived plugin(s) from plugins. |\n\n## usage\n```js\nimport NxSlatePlugin from '@jswork/next-slate-plugin';\n\nconst Bold = NxSlatePlugin.define({\n  id: 'bold',\n  type: 'format',\n  serialize: {\n    output: (node, children) =\u003e {\n      return `\u003cstrong\u003e${children}\u003c/strong\u003e`;\n    }\n  }\n});\n\nconst node = {\n  text: 'i am a bold text',\n  bold: true,\n  italic: true\n};\nconst plugins = [{ id: 'paragraph' }, { id: 'bold' }, { id: 'italic' }, { id: 'blockquote'}];\nconst actived = NxSlatePlugin.actived(node, plugins);\n\n/*\n[\n  { id: 'bold' },\n  { id: 'italic' },\n];\n*/\n```\n\n## full schema\n```js\n{\n  id: null,\n  meta: {\n    title: null,\n    description: null\n  },\n  hotkey: null,\n  decorator: nx.stubValue,\n  serialize: {\n    input: nx.noop,\n    output: NxSlateDefaults.exporter\n  },\n  statics: {},\n  commands: {\n    is: nx.noop,\n    isHotkey: nx.noop,\n    activate: nx.noop,\n    deactivate: nx.noop,\n    toggle: nx.noop\n  },\n  events: {\n    keydown: nx.noop,\n    paste: nx.noop\n  },\n  render: nx.noop\n}\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-slate-plugin/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-slate-plugin\n[version-url]: https://npmjs.org/package/@jswork/next-slate-plugin\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-slate-plugin\n[license-url]: https://github.com/afeiship/next-slate-plugin/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-slate-plugin\n[size-url]: https://github.com/afeiship/next-slate-plugin/blob/master/dist/next-slate-plugin.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-slate-plugin\n[download-url]: https://www.npmjs.com/package/@jswork/next-slate-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-slate-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-slate-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-slate-plugin/lists"}