Browser-compatible Dirac language interpreter (no Node.js dependencies)
npm install dirac-lang-browserBrowser-compatible version of the Dirac language interpreter with no Node.js dependencies.
dirac-lang-browser is a browser-safe implementation of the Dirac declarative execution language. It provides the same core functionality as dirac-lang but excludes Node.js-specific dependencies, making it suitable for client-side web applications.
- ✅ Full Dirac language support (XML-based declarative execution)
- ✅ Subroutine composition with variable substitution
- ✅ Parameter passing with {variable} syntax
- ✅ Browser-compatible (no Node.js dependencies)
- ✅ TypeScript support
``bash`
npm install dirac-lang-browser
`typescript
import { execute } from 'dirac-lang-browser';
const script =
'Hello, ' + name + '!'
;
const result = await execute(script);
console.log(result); // "Hello, World!"
`
Fixed critical bug where variable substitution in nested tags was not working correctly:
- ✅ Added support for {var} pattern in substituteVariables()executeCallInternal()
- ✅ Added attribute substitution in before parameter passing
- ✅ Enables proper subroutine composition
Example that now works:
`xml
`
`bashInstall dependencies
npm install
MIT
- dirac-lang - Node.js version with full features
- dirac-angular-example - Example Angular app with LLM integration