{"id":22928913,"url":"https://github.com/lkmill/spytext","last_synced_at":"2026-03-11T13:17:23.267Z","repository":{"id":17324472,"uuid":"20095460","full_name":"lkmill/spytext","owner":"lkmill","description":"An HTML5 editor using contentEditable.","archived":false,"fork":false,"pushed_at":"2024-03-26T11:29:47.000Z","size":490,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-23T10:42:31.611Z","etag":null,"topics":["contenteditable","html5-editor","javascript","rich-text","rich-text-editor","rte"],"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/lkmill.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":"2014-05-23T10:16:37.000Z","updated_at":"2025-01-16T15:27:56.000Z","dependencies_parsed_at":"2023-12-18T06:39:59.007Z","dependency_job_id":"4a7d2fbd-2d1b-43c8-ac6f-9408baf3b03a","html_url":"https://github.com/lkmill/spytext","commit_stats":{"total_commits":385,"total_committers":4,"mean_commits":96.25,"dds":0.07012987012987015,"last_synced_commit":"ec2426d0ab3cb525b1af8c8db45c512bec48ee48"},"previous_names":["thecodebureau/sayer","thecodebureau/spytext","thecodebureau/bower-tcb-cedit","lkmill/spytext","lohfu/spytext"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/lkmill/spytext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkmill%2Fspytext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkmill%2Fspytext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkmill%2Fspytext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkmill%2Fspytext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkmill","download_url":"https://codeload.github.com/lkmill/spytext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkmill%2Fspytext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["contenteditable","html5-editor","javascript","rich-text","rich-text-editor","rte"],"created_at":"2024-12-14T09:28:23.097Z","updated_at":"2026-03-11T13:17:23.244Z","avatar_url":"https://github.com/lkmill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spytext - The Tiny HTML5 Editor\n\nSpytext is an HTML5 editor, not a Rich Text Editor, weighing in at 8.6 kb.\n\nSpytext is built `contentEditable`, but most browsers handle handling line\nbreaks, new sections, backspaces, deletes, formatting etc very differently. As\na result, Spytext uses it's own DOM manipulating commands (through\n[dollr](https://github.com/lohfu/dollr)), selection management (through\n[selektr](https://github.com/lohfu/selektr)) and DOM undo/redo (through\n[snapback](https://github.com/lohfu/snapback)). The only parts contentEditable\nstill handles are actual type inputs and text traversal (arrow buttons, page\nup, etc).\n\nDespite all this, the entire library (including ALL dependencies)\nis [tiny](#spytext-is-tiny).\n\n## Demo\n\nThere is a Plunker demo at: \u003chttps://embed.plnkr.co/sJNI4kVqX7VEgA0mY2UJ/\u003e\n\n## Usage\n\n### NPM\n\n```\n$ npm install spytext\n```\n\n```js\nimport Spytext from 'spytext'\n\nconst spytext = new Spytext({ el: document.getElementById('#spytext-field') })\n\nspytext.deactivate()\n\nspytext.activate()\n```\n\n### CDN (UMD build)\n\n```html\n\u003cdiv id='spytext-field'\u003e\u003c/div\u003e\n\n\u003cscript src='https://unpkg.com/spytext@0.9.1/dist/spytext.min.js'\u003e\u003c/script\u003e\n\n\u003cscript\u003e\ndocument.addEventListener('DOMContentLoaded', () =\u003e {\n  const spytext = new Spytext({ el: document.getElementById('#spytext-field') })\n}, false)\n\u003c/script\u003e\n```\n\n## Functionality\n\n+ Styling text with italic, bold, underline or strike-trough\n+ Change between P, H1, H2, H3, H4, H5 and H6 blocks for text\n+ Align/justify text blocks\n+ Create ordered and unordered lists\n+ Indent/outdent these lists and\n+ Selection management\n+ Undo/redo (including remembering selections positions)\n\n## Spytext is Tiny\n\n|                               | Minified  | Compressed|\n|-------------------------------|-----------|-----------|\n| Spytext (UMD build, all deps) | 29 kb     | 8.6 kb    |\n\n\n## Compatibility\n\n|         | Quirky    | Without Undo | Full      |\n|---------|-----------|--------------|-----------|\n| Chrome  |         9 | 16           | 18        |\n| IE      |       N/A | 9            | N/A       |\n| Firefox |         1 | 3.6          | 14        |\n| Safari  | Unknown   | Unknown      | 6         |\n| Opera   | Unknown   | Unknown      | 15        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkmill%2Fspytext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkmill%2Fspytext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkmill%2Fspytext/lists"}