Can I use javascript tracker as my own analytic app?

hi dear,
I want to build totally different Analytic app in server side
for example I want to change Mysql to ElasticSearch and …

can I use javascript tracker as my client side ?

as I see in source code every request send to the piwik.php,
can I change this destination to my own and analysis the request that come form client ?
can I build every feature that describe in piwik website ?