Here is a collection of links to RiveScript interpreters built in various programming languages. If the language you want to see an interpreter for isn't listed, why not create it? Head to Developers for more information.
Quick navigation:
The Rust, Go, Java, JavaScript, Perl and Python interpreters may have some slight quirks and differences in their support of RiveScript. All of them currently support everything in the Working Draft, but some go above and beyond in certain areas. See my comparison of implementations for a (hopefully) up-to-date listing of specific features.
If you would like to contribute any code changes (bug fixes or feature additions), please see the contributing information.
These are RiveScript interpreters written by Noah Petherbridge. For the most part, all of these libraries will be kept in sync with new features. These are the "official" RiveScript libraries, written by the author of RiveScript!
Choose your programming language...A RiveScript interpreter for the Go programming language.
Notes:
You can install the source code into your Go path:
$ go get github.com/aichaos/rivescript-go
Afterward, you can install the stand-alone RiveScript interpreter executable (which includes JavaScript object macro support):
$ go install github.com/aichaos/rivescript-go/cmd/rivescript
Documentation for RiveScript-Go is available on Godoc:
You can download the latest bleeding-edge version of RiveScript-Go at GitHub:
A RiveScript interpreter for the Java programming language.
Notes:
You can download the latest bleeding-edge version of RiveScript-Java at GitHub:
A RiveScript interpreter for the JavaScript programming language.
Notes:
You can run a RiveScript.js demo in your browser!
You can install RiveScript as a Node Packaged Module (npm):
$ npm install rivescript
See also: npm package page
To embed RiveScript on your web page using a CDN link:
<script src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>
You can check out the progress of rivescript-js on GitHub:
The original RiveScript interpreter! This is RiveScript for the Perl 5 programming language.
Notes:
rivescript command
line utility that lets you interactively test your RiveScript
bot. It can also be used in "JSON Mode" so a third-party program
can interact with it.
You can use cpan or cpanm
(App::cpanminus) to
install this module:
$ cpanm RiveScript
You can download the latest bleeding-edge version of RiveScript-Perl at GitHub:
A RiveScript interpreter for the Python programming language.
Notes:
rivescript can also be executed directly,
and it will behave the same as the rivescript command
line utility from RiveScript-Perl: you can interactively test your
RiveScript bot with it. Also, it supports "JSON Mode", so that a third
party program can communicate with your bot using JSON.You can install RiveScript from the Python Package Index (PyPI):
$ pip install rivescript # --or-- $ easy_install rivescript
You can download the latest bleeding-edge version of RiveScript-Python at GitHub:
Documentation for RiveScript-Python is hosted through PyPI:
A new RiveScript interpreter written in 2026 for the Rust programming language.
Notes:
To install the command-line rivescript program with JavaScript object macro
support built in:
cargo install rivescript --features javascript
To add the RiveScript crate to your project to use it from your custom codebase:
cargo add rivescript
Documentation is available in `cargo doc` or docs.rs:
You can download the latest bleeding-edge version on GitHub:
These are RiveScript interpreters written by other authors. Some of them may still be in active development and not ready or usable yet for the general public.
A RiveScript interpreter for the C# programming language.
This implementation was written by Fábio Ávila and used the Java version as reference. It's a feature-complete implementation. Check its GitHub repository for the source code and current development status.
You can check out the progress of RiveScript-C# at GitHub:
A RiveScript interpreter for the PHP programming language.
This implementation is being developed by formerly Shea Lewis and now Johnny Mast and is still under active development. In early 2022 it is at least 80% feature complete. Check its GitHub repository for its current development status.
You can check out the progress of RiveScript-PHP at GitHub: