{"id":22222018,"url":"https://github.com/fabiospampinato/amuchina","last_synced_at":"2025-07-27T16:32:20.252Z","repository":{"id":49321379,"uuid":"517194286","full_name":"fabiospampinato/amuchina","owner":"fabiospampinato","description":"A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.","archived":false,"fork":false,"pushed_at":"2024-04-04T21:48:48.000Z","size":59,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T02:08:45.038Z","etag":null,"topics":["dom","hands","html","sanitizer"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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}},"created_at":"2022-07-24T00:40:02.000Z","updated_at":"2024-09-14T07:54:41.000Z","dependencies_parsed_at":"2022-09-02T22:00:32.471Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/amuchina","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Famuchina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Famuchina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Famuchina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Famuchina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/amuchina/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"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":["dom","hands","html","sanitizer"],"created_at":"2024-12-02T23:16:32.849Z","updated_at":"2024-12-02T23:16:33.383Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amuchina\n\nA work-in-progress HTML sanitizer that strives for: performance like `window.Sanitizer`, readiness like `DOMPurify`, and ability to run in a `WebWorker` like neither of those.\n\nThis is basically an implementation of a _subset_ of the upcoming [Sanitizer API](https://wicg.github.io/sanitizer-api/), but it also supports SVG and MathML out of the box.\n\n## Install\n\n```sh\nnpm install --save amuchina\n```\n\n## Usage\n\n```ts\nimport Amuchina from 'amuchina';\n\nconst amuchina = new Amuchina ();\nconst parser = new DOMParser ();\n\nconst parse = ( html: string ) =\u003e parser.parseFromString ( html, 'text/html' );\n\namuchina.sanitize ( parse ( `\u003cimg src=\"/err\" onerror=\"javascript:alert('naughty!')\" /\u003e` ) );\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Famuchina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Famuchina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Famuchina/lists"}