{"id":20671316,"url":"https://github.com/allnulled/live-editor-boilerplate","last_synced_at":"2025-06-18T11:40:03.672Z","repository":{"id":98546842,"uuid":"261495331","full_name":"allnulled/live-editor-boilerplate","owner":"allnulled","description":"Live editor web application boilerplate. Create online editors fastly.","archived":false,"fork":false,"pushed_at":"2020-05-06T15:59:36.000Z","size":278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T06:39:06.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/allnulled.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-05T14:30:21.000Z","updated_at":"2020-05-06T15:59:39.000Z","dependencies_parsed_at":"2023-05-29T11:30:32.892Z","dependency_job_id":null,"html_url":"https://github.com/allnulled/live-editor-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allnulled/live-editor-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flive-editor-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flive-editor-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flive-editor-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flive-editor-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/live-editor-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Flive-editor-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260546249,"owners_count":23025903,"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":[],"created_at":"2024-11-16T20:26:21.259Z","updated_at":"2025-06-18T11:39:58.659Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# live-editor-boilerplate\n\nCustomizable live web editor for a specific language.\n\n## Why\n\nParser generator tools like [PEGjs](https://github.com/pegjs/pegjs) provide enough details of the `SyntaxError`s arised by the action of parsing, that one can provide suggestions at runtime with the adecuate editor. This project is for you to take advantage of this fact, automatically.\n\n## Install\n\n```sh\n$ git clone https://github.com/allnulled/live-editor-boilerplate.git .\n```\n\n## Customize\n\nIn order to customize your own application, you have to alter these files:\n\n- **File:** `lib/yourlanguage.parser.pegjs`. Contains the source of a [PEGjs syntax](https://github.com/pegjs/pegjs). (It is not used in the application, so you can ignore it).\n- **File:** `lib/yourlanguage.parser.js`. Contains the parser function.\n- **File:** `lib/codemirror.mode-yourlanguage.js`. Contains the styles tokenization of your grammar.\n- **File:** `lib/codemirror.mode-yourlanguage.css`. Contains the styles of your grammar tokens.\n- **File:** `lib/index.js`. Contains the events of the editor.\n- **File:** `index.html`. Contains the editor application entry point.\n  - **Lines:**\n    - `6`: `\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"lib/codemirror.mode-yourlanguage.css\"\u003e`\n    - `12`: `\u003cscript src=\"lib/codemirror.mode-yourlanguage.js\"\u003e\u003c/script\u003e`\n    - `13`: `\u003cscript src=\"lib/yourlanguage.parser.js\"\u003e\u003c/script\u003e`\n    - `17`: `\u003ctitle\u003eYour Language\u003c/title\u003e`\n    - `22`: `\u003ctextarea id=\"e1\" data-pegeditor-grammar=\"yourlanguage\"\u003e\u003c/textarea\u003e`\n    - `23`: `\u003cdiv class=\"editor-label\"\u003eyourlanguage\u003c/div\u003e`\n    - `26`: `\u003ctextarea id=\"e2\" data-pegeditor-settings='{\"mode\":\"yourlanguage-reporter\"}'\u003e\u003c/textarea\u003e`\n\n## Run\n\nAs this application is client-side only, you can use any type of server to host it.\n\n## Notes\n\nThe project is released with a working example for the [`contratos`](https://github.com/allnulled/contratos) language, for you to see how it works already.\n\n## License\n\nThis project is released under [**WTFPL** or *What The Fuck Public License*](https://es.wikipedia.org/wiki/WTFPL), which means *do what you want with it*.\n\n## Issues\n\nIf you find any issue, please, let me know through [this form](https://github.com/allnulled/live-editor-boilerplate/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Flive-editor-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Flive-editor-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Flive-editor-boilerplate/lists"}