It is an implimentation of sentiment analyzer using ssvm. It is inspired from Sentimental which is in javascript. Main advantage here is that the actual logic is based on rust which is faster and the api is exposed with express which makes it simple to impliment.
/GET http://127.0.0.1:3000/?phrase="I am happy"
//Score: 3, Comparative: 1
- Senitiment Analyzer logic.
- File analysis:
- API
- Rust logic(Facing issue with Rexiv2 with SSVM)
- Make logic of Analyzer more refined.
- Frontend to wrap it.
Fork this project to create your own Rust functions in Node.js. Learn more
- The Rust functions are in the
src
directory. You can put high performance workload into Rust functions. - The JavaScript functions are in the
node
directory and they can access the Rust functions. - Use the
node node/app.js
command to run the application in Node.js.
$ docker pull secondstate/ssvm-nodejs-starter:v1
$ docker run -p 3000:3000 --rm -it -v $(pwd):/app secondstate/ssvm-nodejs-starter:v1
(docker) # cd /app
(docker) # ssvmup build
(docker) # node node/app.js
From a second terminal window, you can test the local server.
$ curl http://localhost:3000/?name=SSVM
hello SSVM
- The Case for WebAssembly on the Server-side
- Guide on how to Rust and WebAssembly for server-side apps
- The Second State VM (SSVM) is a high performance WebAssembly virtual machine designed for server-side applications.
- The SSVM NPM addon provides access to the SSVM, and programs in it, through a Node.js host application.
- The SSVM ready tool, ssvmup is a toolchain for compiling Rust programs into WebAssembly, and then make them accessible from JavaScripts via the SSVM.
Brought to you by the Open source dev team at Second State. Follow us on Twitter, Facebook, LinkedIn, YouTube, or Medium