{"id":25821,"library":"jsy-node","title":"JSY Node","description":"Runtime require hook for the JSY (Offside indention) syntax transpiler, enabling Node.js to load .jsy files directly. Version 1.6.6 is current. Maintenance only; no active development. Key differentiator: automatic registration via require or CLI -r flag, supports Mocha, and provides jsy-node binary. Alternative to manual JSY compilation steps.","status":"maintenance","version":"1.6.6","language":"javascript","source_language":"en","source_url":"https://github.com/jsy-lang/jsy-node","tags":["javascript","syntax","offside","python","indention","indent","JSY"],"install":[{"cmd":"npm install jsy-node","lang":"bash","label":"npm"},{"cmd":"yarn add jsy-node","lang":"bash","label":"yarn"},{"cmd":"pnpm add jsy-node","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core transpiler for JSY syntax","package":"jsy-transpile","optional":false}],"imports":[{"note":"ESM import not supported; use CommonJS require() to register the hook.","wrong":"import 'jsy-node'","symbol":"jsy-node","correct":"require('jsy-node')"},{"note":"Use 'jsy-node/all' to load all JSY extensions (e.g., .jsy, .jsy.js).","wrong":"require('jsy-node')","symbol":"jsy-node/all","correct":"require('jsy-node/all')"},{"note":"Run jsy-node as a CLI tool instead of node -r jsy-node to execute .jsy files.","wrong":"node script.jsv","symbol":"jsy-node (binary)","correct":"jsy-node script.jsv"}],"quickstart":{"code":"// Install globally or locally\nnpm install -g jsy-node\n\n// Create hello.jsy\n// Transpile on execution\njsy-node hello.jsy\n\n// Alternatively, use require hook\nnode -r jsy-node hello.jsy","lang":"javascript","description":"Install jsy-node and run a .jsy file directly via CLI or node require hook."},"warnings":[{"fix":"Consider alternative for new projects.","message":"Package is in maintenance mode; no new features.","severity":"deprecated","affected_versions":">=1.6.6"},{"fix":"Use CommonJS or transpile manually.","message":"ESM modules cannot use require hook; module must be CommonJS.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Only use in controlled environments.","message":"The require hook modifies Node's module loader globally.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use jsy-node directly if only .jsy is needed.","message":"jsy-node/all loads all extensions; may conflict with other hooks.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install jsy-transpile","cause":"Missing peer dependency jsy-transpile","error":"Error: Cannot find module 'jsy-transpile'"},{"fix":"Ensure jsy-node is required before importing .jsy files","cause":"Using ESM syntax in a .jsy file that is not transpiled","error":"SyntaxError: Unexpected token import"},{"fix":"Check file path and extension (.jsy)","cause":"Relative path incorrect or file not found","error":"Error: Cannot find module './file.jsy'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}