{"id":16498111,"url":"https://github.com/uchihamalolan/draftjs-mentions","last_synced_at":"2025-07-23T23:34:21.693Z","repository":{"id":41781033,"uuid":"369540382","full_name":"uchihamalolan/draftjs-mentions","owner":"uchihamalolan","description":"A POC for Implementing mentions with DraftJS \u0026 DraftJS Plugins. (Including storing and fetching from server with the same state)","archived":false,"fork":false,"pushed_at":"2023-01-27T05:11:45.000Z","size":357,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T16:27:01.356Z","etag":null,"topics":["draft","draft-js-plugins","mentions","react"],"latest_commit_sha":null,"homepage":"https://drafter-mentions.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uchihamalolan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-21T13:14:09.000Z","updated_at":"2023-03-10T12:09:20.000Z","dependencies_parsed_at":"2023-02-15T06:00:55.405Z","dependency_job_id":null,"html_url":"https://github.com/uchihamalolan/draftjs-mentions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uchihamalolan/draftjs-mentions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchihamalolan%2Fdraftjs-mentions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchihamalolan%2Fdraftjs-mentions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchihamalolan%2Fdraftjs-mentions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchihamalolan%2Fdraftjs-mentions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uchihamalolan","download_url":"https://codeload.github.com/uchihamalolan/draftjs-mentions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchihamalolan%2Fdraftjs-mentions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266768405,"owners_count":23981355,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["draft","draft-js-plugins","mentions","react"],"created_at":"2024-10-11T14:47:17.448Z","updated_at":"2025-07-23T23:34:21.660Z","avatar_url":"https://github.com/uchihamalolan.png","language":"TypeScript","readme":"# draftjs-mentions\nA POC for Implementing mentions with DraftJS \u0026amp; DraftJS Plugins. (Including storing and fetching from server with the same state)\n\n## Uses the Following\n- [DraftJs](https://draftjs.org/) for Rich Text Handling\n- [DraftJS Plugin Mentions](https://www.draft-js-plugins.com/plugin/mention) for mentions decorators\n- [Ant design](https://ant.design/components/popover) for implementing Pop-overs\n- [StyledComponents](https://styled-components.com/) for general styling\n\n## Approach\n\n**Write**\n- Convert `ContentState` to `RawData`\n- Strip unnecessary properties from `RawData` (function inside serializer folder)\n- Save the JSON as string in backend\n\n**Read**\n- Use `Editor` with `readOnly={true}` for displaying notes/comments/posts with \"mentions\"\n- Fetch JSON String from Server (DB)\n- Parse and build back the `RawData` (to feed to ContentState via `convertFromRaw`)\n- Create ContentState and initialize EditorState with it\n\n\n## This Project is built using [Vite](https://vitejs.dev/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchihamalolan%2Fdraftjs-mentions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuchihamalolan%2Fdraftjs-mentions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchihamalolan%2Fdraftjs-mentions/lists"}