{"_id":"@bearcove/codemirror-lang-styx","name":"@bearcove/codemirror-lang-styx","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bearcove/codemirror-lang-styx","version":"0.1.0","description":"Styx language support for CodeMirror 6","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"keywords":["codemirror","lezer","styx","syntax-highlighting","editor"],"author":{"name":"Amos Wenger","email":"amos@bearcove.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bearcove/styx.git","directory":"editors/codemirror-styx"},"bugs":{"url":"https://github.com/bearcove/styx/issues"},"homepage":"https://styx.bearcove.net","devDependencies":{"@lezer/generator":"^1.7.0","tsup":"^8.0.0","typescript":"^5.3.0","vitest":"^1.0.0"},"peerDependencies":{"@codemirror/autocomplete":"^6.0.0","@codemirror/language":"^6.0.0","@codemirror/state":"^6.0.0","@codemirror/view":"^6.0.0","@lezer/common":"^1.0.0","@lezer/highlight":"^1.0.0","@lezer/lr":"^1.0.0"},"publishConfig":{"access":"public"},"scripts":{"build":"npm run build:grammar && npm run build:bundle","build:grammar":"lezer-generator src/styx.grammar -o src/syntax.grammar.ts","build:bundle":"tsup src/index.ts --format esm,cjs --dts --clean","dev":"npm run build:grammar && tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run"},"_id":"@bearcove/codemirror-lang-styx@0.1.0","_integrity":"sha512-mokxikCWGQaQl9mnej+wn+AW0p2SDMxhIyhA3Z59Qi6zFvuOcVIQYeagX0gFzZ8HVfD02CCTOSsy1XjWOmHlew==","_resolved":"/private/var/folders/_9/7kq7hqnj3m36k_x5fypjyfy00000gn/T/b80474a98d99bb1f6fe3258d7b18844f/bearcove-codemirror-lang-styx-0.1.0.tgz","_from":"file:bearcove-codemirror-lang-styx-0.1.0.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-mokxikCWGQaQl9mnej+wn+AW0p2SDMxhIyhA3Z59Qi6zFvuOcVIQYeagX0gFzZ8HVfD02CCTOSsy1XjWOmHlew==","shasum":"a712acb3ed02cd6a4d2f5dbed82555dc3e8dcb42","tarball":"https://registry.npmjs.org/@bearcove/codemirror-lang-styx/-/codemirror-lang-styx-0.1.0.tgz","fileCount":12,"unpackedSize":50933,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH/+YzboXKjC7XT5s9VFmloKZtlnDJsYPllehdVfAXgGAiEAvA7KHGh4hPt9eKo9wcTJXe2RICEHFzKwn4JwK1EV2Hw="}]},"_npmUser":{"name":"fasterthanlime","email":"amos@bearcove.eu"},"directories":{},"maintainers":[{"name":"fasterthanlime","email":"amos@bearcove.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/codemirror-lang-styx_0.1.0_1769249569113_0.7814146916190339"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-24T10:12:49.053Z","0.1.0":"2026-01-24T10:12:49.253Z","modified":"2026-01-24T10:12:49.434Z"},"maintainers":[{"name":"fasterthanlime","email":"amos@bearcove.eu"}],"description":"Styx language support for CodeMirror 6","homepage":"https://styx.bearcove.net","keywords":["codemirror","lezer","styx","syntax-highlighting","editor"],"repository":{"type":"git","url":"git+https://github.com/bearcove/styx.git","directory":"editors/codemirror-styx"},"author":{"name":"Amos Wenger","email":"amos@bearcove.net"},"bugs":{"url":"https://github.com/bearcove/styx/issues"},"license":"MIT","readme":"# @bearcove/codemirror-lang-styx\n\n[Styx](https://styx.bearcove.net) language support for [CodeMirror 6](https://codemirror.net/).\n\n## Installation\n\n```bash\nnpm install @bearcove/codemirror-lang-styx\n```\n\n## Usage\n\n```typescript\nimport { EditorView, basicSetup } from \"codemirror\";\nimport { styx } from \"@bearcove/codemirror-lang-styx\";\n\nnew EditorView({\n  doc: `// Example Styx config\nserver {\n  host localhost\n  port 8080\n  tls {\n    enabled true\n    cert \"/etc/ssl/cert.pem\"\n  }\n}`,\n  extensions: [basicSetup, styx()],\n  parent: document.getElementById(\"editor\")!,\n});\n```\n\n## Features\n\n- Syntax highlighting for all Styx constructs\n- Code folding for objects, sequences, and heredocs\n- Auto-closing brackets and quotes\n- Basic autocompletion for common schema tags\n- Comment toggling support\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the grammar and bundle\nnpm run build\n\n# Watch mode for development\nnpm run dev\n\n# Run tests\nnpm test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-09c67a4761f885e54a371d01c13085de"}