Varnam daemon which also acts as a HTTP server. This program powers http://varnamproject.com
You need to have govarnam installed on your local system for varnamd to run.
- Clone
- Run
go get
inside cloned folder - Use
go run .
for starting varnamd
varnamd supports the following command line arguments:
p
int. Run daemon in specified portmax-handle-count
int. Maximum number of handles can be opened for each languagehost
string. Host for the varnam daemon server.ui
string. UI directory path. Put your index.html here.enable-internal-apis
boolean. Enable internal APIsenable-ssl
booleancert-file-path
string. Certificate file pathkey-file-path
string.upstream
string. Provide an upstream serverenable-download
. string. Comma separated language identifier for which varnamd will download words from upstreamsync-interval
int.log-to-file
boolean. If true, logs will be written to a fileversion
https://api.varnamproject.com/tl/{langCode}/{Word}
Sample: https://api.varnamproject.com/tl/ml/Malayalam
. Response:
{
"success": true,
"error": "",
"at": "2020-07-02 11:10:30.309343848 +0000 UTC",
"result": [
"മലയാളം",
"മലയാലം",
"മലയാളം",
"മലായാളം",
"മലയളം",
"മ്മലയലം",
"മലയാളമാ",
"മലയാളമാദ്ധ്യമത്തിലൂ",
"മലയാളമാദ്ധ്യമത്തിലൂടെ",
"മലയാളമാദ്ധ്യമത്തിൽ",
"മലയാളമാദ്ധ്യമം"
],
"input": "Malayalam"
}