{"id":26657,"library":"wort","title":"Wort","description":"Wort is a simple concatenative programming language that compiles to JavaScript. Version 0.1.8 is the latest stable release. The project appears to be in early development with infrequent updates. It provides a command-line tool to transpile .wort files into Node.js modules. Unlike other concatenative languages like Forth, Wort targets JavaScript runtime, making it accessible for web development. Its key differentiator is its minimalistic syntax and ease of integration with JavaScript via transpilation.","status":"maintenance","version":"0.1.8","language":"javascript","source_language":"en","source_url":"https://github.com/robertkleffner/wort","tags":["javascript","compiler","language","wort","concatenative"],"install":[{"cmd":"npm install wort","lang":"bash","label":"npm"},{"cmd":"yarn add wort","lang":"bash","label":"yarn"},{"cmd":"pnpm add wort","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime required to run the compiler and transpiled output","package":"node","optional":false}],"imports":[{"note":"Primary API is the CLI; API for programmatic use is undocumented.","wrong":"const wort = require('wort')","symbol":"wort","correct":"import wort from 'wort'"},{"note":"compile is a named export; verify existence as API is unstable.","wrong":"const { compile } = require('wort')","symbol":"compile","correct":"import { compile } from 'wort'"},{"note":"File is a named export; may not be part of the public API.","wrong":"require('wort').File","symbol":"File","correct":"import { File } from 'wort'"}],"quickstart":{"code":"// Install globally or locally\nnpm install wort\n\n// Create a file 'helloworld.wort'\necho 'main: \"Hello, World!\" printz ;' > helloworld.wort\n\n// Transpile\nwort helloworld.wort\n\n// Run the output\nnode helloworld.wort.js\n\n// Expected output: Hello, World!","lang":"javascript","description":"Shows basic usage: install wort, create a simple program, transpile, and run with node."},"warnings":[{"fix":"Use npx wort instead of global install.","message":"The CLI uses global install; npm recommends npx.","severity":"deprecated","affected_versions":"all"},{"fix":"Use explicit .js extension or rename.","message":"Output file extension is .wort.js; ensure your loader understands it.","severity":"gotcha","affected_versions":"all"},{"fix":"Test thoroughly when targeting browsers.","message":"Browserify is suggested but not officially tested.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install globally: npm install -g wort, or use npx wort.","cause":"Not installed globally or not in PATH.","error":"wort: command not found"},{"fix":"Check wort syntax: statements end with semicolon, definitions use colon.","cause":"Wort syntax error in source file.","error":"SyntaxError: Unexpected token"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}