{"id":25606,"library":"forthtranspiler","title":"forthtranspiler","description":"A Forth-to-JavaScript transpiler that converts Forth source code into JavaScript with source mapping and unit testing support. This version 1.0.7 is a proof-of-concept with limited Forth vocabulary support, no recent updates, and no TypeScript definitions. It is primarily for educational or experimental use, not production. Alternatives like NodeForth or gForth may be more stable.","status":"deprecated","version":"1.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/ksanaforge/forthtranspiler","tags":["javascript","forth","transpile"],"install":[{"cmd":"npm install forthtranspiler","lang":"bash","label":"npm"},{"cmd":"yarn add forthtranspiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add forthtranspiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM default export; CommonJS require not supported in CJS-only scenarios","wrong":"const forthtranspiler = require('forthtranspiler')","symbol":"default","correct":"import forthtranspiler from 'forthtranspiler'"}],"quickstart":{"code":"import forthtranspiler from 'forthtranspiler';\n\nconst forthCode = `\n: square dup * ;\n5 square .\n`;\n\nconst jsCode = forthtranspiler(forthCode);\n// or: forthtranspiler(forthCode, { sourceMap: true });\n\nconsole.log(jsCode);","lang":"javascript","description":"Transpiles a simple Forth word definition and usage into JavaScript."},"warnings":[{"fix":"Consider using a more modern Forth implementation or JavaScript library.","message":"Package is no longer maintained and has known bugs with certain Forth constructs.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use a .d.ts file or manually define types if using TypeScript.","message":"No TypeScript support; type definitions are not provided.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Check generated JS for accuracy; test thoroughly.","message":"Source mapping may be incomplete for complex Forth phrases.","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":"Run 'npm install forthtranspiler' in your project directory.","cause":"Package not installed globally or missing from local node_modules.","error":"Error: Cannot find module 'forthtranspiler'"},{"fix":"Use 'import forthtranspiler from 'forthtranspiler'' or dynamic import.","cause":"Incorrect import; using CJS require on ESM-only package.","error":"forthtranspiler is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}