{"id":16216018,"url":"https://github.com/tangledbytes/saged","last_synced_at":"2025-10-12T04:19:34.816Z","repository":{"id":44985030,"uuid":"267770753","full_name":"tangledbytes/saged","owner":"tangledbytes","description":"Rich text editor based on draftjs and monaco.","archived":false,"fork":false,"pushed_at":"2024-02-05T04:08:16.000Z","size":9413,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T01:41:23.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tangledbytes.github.io/saged/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tangledbytes.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":"2020-05-29T05:13:06.000Z","updated_at":"2024-06-05T14:32:43.000Z","dependencies_parsed_at":"2024-10-27T20:30:25.217Z","dependency_job_id":"d15abdaa-944f-4531-babe-127f954207d7","html_url":"https://github.com/tangledbytes/saged","commit_stats":null,"previous_names":["tangledbytes/saged","utkarsh-pro/saged"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tangledbytes/saged","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangledbytes%2Fsaged","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangledbytes%2Fsaged/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangledbytes%2Fsaged/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangledbytes%2Fsaged/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tangledbytes","download_url":"https://codeload.github.com/tangledbytes/saged/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangledbytes%2Fsaged/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010258,"owners_count":26084718,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-10-10T11:17:44.501Z","updated_at":"2025-10-12T04:19:34.787Z","avatar_url":"https://github.com/tangledbytes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saged\n\n\u003e saged is the editor used on blog.sagacious.dev site. It embeds draftjs and monaco right out of the box.\n\n[![NPM](https://img.shields.io/npm/v/saged.svg)](https://www.npmjs.com/package/saged) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save saged\n```\n\n## Features\n\n1. WYSIWYG editor\n2. Configurable\n3. Comes with monaco editor (VS Code editor) baked in\n4. Markdown support\n5. Supports Server Side Rendering (Tested with Next.js) 🎉\n\n## Usage\n\nUsing the defaults\n\n```tsx\nimport React from 'react'\n\nimport Editor from 'saged'\n\nfunction Editor() {\n    return \u003cEditor /\u003e\n}\n```\n\nConfiguring the editor\n\n```tsx\nimport React from 'react'\n\nimport Editor from 'saged'\nimport Classes from './package.module.css'\n\nfunction Editor() {\n    return (\n        \u003cEditor\n            content={localStorage.getItem('saged-example-item-eerTy443')}\n            storageKey=\"some-random-key\"\n            className={Classes.editorOverride}\n            readonly\n        /\u003e\n    )\n}\n```\n\n## Props\n\n1. readOnly (`boolean`): Specify if the editor should open in a read only mode. If opened in readonly mode then it will act as a previewer.\n2. content (`string`): Content to be displayed by the text editor. This is supposed to follow the draftjs content schema and hence is not meant to be handled manually.\n3. storageKey (`string`): Saged stores the content in the local storage. This key is used to store the data in local storage. Defaults to \"article\".\n4. className (`string`): Override the default style of the editor container using this class name. Note that not all the styles can be overidden.\n5. onChange (`(content: string) =\u003e void`): Optional function which will be invoked when editor state changes\n\n## Caveats\n\n1. Media uploads is not supported at the moment. Markdown should be used to embed such content.\n2. Table is not supported yet, markdown should be used to embed such content.\n\n## License\n\nApache 2.0 © [utkarsh-pro](https://github.com/utkarsh-pro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangledbytes%2Fsaged","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangledbytes%2Fsaged","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangledbytes%2Fsaged/lists"}