{"id":15290784,"url":"https://github.com/victrme/pocket-editor","last_synced_at":"2025-04-13T09:32:49.154Z","repository":{"id":65270925,"uuid":"580470654","full_name":"victrme/pocket-editor","owner":"victrme","description":"Blazingly fast block style wysiwyg editor that returns markdown","archived":false,"fork":false,"pushed_at":"2025-03-23T06:40:42.000Z","size":476,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T07:28:43.976Z","etag":null,"topics":["editor","markdown","npm-package","texteditor","typescript","wysiwyg-editor"],"latest_commit_sha":null,"homepage":"https://pocketeditor.victr.me","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/victrme.png","metadata":{"files":{"readme":"README.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-20T16:34:57.000Z","updated_at":"2025-03-23T06:40:46.000Z","dependencies_parsed_at":"2023-11-29T08:28:37.490Z","dependency_job_id":"d3e39831-8c93-4b63-9473-a8b719248ea3","html_url":"https://github.com/victrme/pocket-editor","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victrme%2Fpocket-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victrme%2Fpocket-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victrme%2Fpocket-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victrme%2Fpocket-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victrme","download_url":"https://codeload.github.com/victrme/pocket-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690937,"owners_count":21146233,"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":["editor","markdown","npm-package","texteditor","typescript","wysiwyg-editor"],"created_at":"2024-09-30T16:09:28.169Z","updated_at":"2025-04-13T09:32:48.718Z","avatar_url":"https://github.com/victrme.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/victrme/pocket-editor/main/example/public/banner.png\" width=\"50%\" align=\"center\" /\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/victrme/pocket-editor\"\u003eGithub\u003c/a\u003e - \n    \u003ca href=\"https://www.npmjs.com/package/pocket-editor\"\u003eNpm\u003c/a\u003e - \n    \u003ca href=\"https://pocketeditor.victr.me/\"\u003eExample\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\nThis is yet another wysiwyg editor, it focuses mainly on two things:\n\n-   Very fast load time\n-   Reliable markdown output\n\n### Install\n\n```\nnpm install pocket-editor\n```\n\n### What you can do\n\n```ts\ninterface Options {\n  text?: string\n  id?: string\n  defer?: true | number \n}\n\nclass PocketEditor {\n  constructor(selector: string, options?: Options)\n  get value(): string\n  set value(string): void\n  oninput: ((content: string) =\u003e void) =\u003e void\n}\n```\n\n### How to use\n\n```html\n\u003cbody\u003e\n    \u003cdiv id=\"wrapper\"\u003e\u003c/div\u003e\n\u003c/body\u003e\n```\n\n```ts\nimport PocketEditor from \"pocket-editor\"\nimport \"pocket-editor/style.css\"\n\nconst editor = new PocketEditor(\"#wrapper\")\n\neditor.value = \"## Hello world !!\"\n\neditor.oninput((content) =\u003e {\n    console.log(content)\n})\n```\n\n### Keybindings\n\n| Keybind            | Action            |\n| ------------------ | ----------------- |\n| `Ctrl + Shift + 1` | To big heading    |\n| `Ctrl + Shift + 2` | To medium heading |\n| `Ctrl + Shift + 3` | To small heading  |\n| `Ctrl + Shift + 4` | To bullet list    |\n| `Ctrl + Shift + 5` | To todo list      |\n| `Ctrl + Shift + 6` | To normal line    |\n\n_Ctrl is Cmd key on MacOS_\n\n### Developement\n\n```bash\n# Install pnpm to use these scripts\nnpm i -g pnpm\n\n# First install all\npnpm i -r\n\npnpm dev\npnpm preview\npnpm build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictrme%2Fpocket-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictrme%2Fpocket-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictrme%2Fpocket-editor/lists"}