{"id":15018320,"url":"https://github.com/jaypalm/jsme-vue","last_synced_at":"2025-10-23T18:30:15.889Z","repository":{"id":57750905,"uuid":"525991855","full_name":"JayPalm/jsme-vue","owner":"JayPalm","description":"Vue component wrapper around JSME-Editor","archived":false,"fork":false,"pushed_at":"2022-09-01T22:50:11.000Z","size":29,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T08:48:25.024Z","etag":null,"topics":["chemistry","molecules"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/JayPalm.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":"2022-08-17T23:56:17.000Z","updated_at":"2024-09-11T06:34:53.000Z","dependencies_parsed_at":"2022-08-26T09:30:44.855Z","dependency_job_id":null,"html_url":"https://github.com/JayPalm/jsme-vue","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayPalm%2Fjsme-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayPalm%2Fjsme-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayPalm%2Fjsme-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayPalm%2Fjsme-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayPalm","download_url":"https://codeload.github.com/JayPalm/jsme-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869105,"owners_count":19379268,"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":["chemistry","molecules"],"created_at":"2024-09-24T19:51:49.589Z","updated_at":"2025-10-23T18:30:15.264Z","avatar_url":"https://github.com/JayPalm.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSME Vue\n\nVue wrapper for [JSME-Editor](https://github.com/jsme-editor/jsme-editor.github.io)\n\n## Background\n[SMILES](https://en.wikipedia.org/wiki/Simplified_molecular-input_line-entry_system) is a means of specifying the molecular structure of a chemical species as a string. \n\nThis component wraps [JSME-Editor](https://github.com/jsme-editor/jsme-editor.github.io) in an easy to use Vue component. All credit to the original authors (Peter Ertl and Bruno Bienfait), as this package simply makes their chemical drawer easier to use in a Vue app. The core JSME-Editor is initialized by adding a script to the document head, which adds several more scripts neccessary for the editor to load and function.\n\n## Installation\n`jsme-vue` is available via [npm](https://www.npmjs.com/package/jsme-vue): `npm i jsme-vue`\n\n## Example Usage\n\nUsed in a Vue component, using Composition API.\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv class=\"mx-auto bg-blue-100 flex flex-row items-end\"\u003e\n    \u003cJSME v-model=\"smiles\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript setup lang=\"ts\"\u003e\nimport { ref, watch } from \"vue\";\n\nconst smiles = ref(\"c1ccccc1\");\n\nwatch(smiles, () =\u003e {\n  // Perform action on smiles change.\n  console.log(smiles.value);\n}\n\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaypalm%2Fjsme-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaypalm%2Fjsme-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaypalm%2Fjsme-vue/lists"}