Tuan Anh

container nerd. k8s || GTFO

More on GitHub

camaro

I was working on this API gateway project where I had to deal with XML-based API and transform to JSON based API for other services to consume. camaro was bornt from that constant need.
The very first attempt was a pure js implementation (xpath-object-transform) but it’s not fast enough for the purpose. Later on, I rewrote from scratch in C++ and it turned out to be quite fast, thanks to pugixml.
In version 4, I use emscripten to compile camaro to WebAssembly which makes it more web-friendly and serverless-friendly.

sax-parser

An attempt to write a super fast, XML compliant SAX parser for Node.js. C++ for performance reason. Available on npm as @tuananh/sax-parser.

xpath-object-transform

The very first attempt to transform XML to JSON. Implemented in pure JS but it’s quite slow. This is more like a proof-of-concept.

node-prune

prune unneeded files from node_modules, ideal compressing data before uploading to AWS Lambda.

fasttext-native

fastText native bindings for Node.js

fast-osm-json

An example of using camaro to transform XML (OSM data) to JSON.

feed-furious

Another example of showcasing how easy it is to build module to transform XML to JSON with camaro

smaz.js

compress small string using antirez’s smaz.

BetterTube

better YouTube embed tag for jekyll.

Dockerfile

various docker images for personal use.

kubernetes-twemproxy

running twemproxy on Kubernetes.

jekyll-pure

a simple no bullshit jekyll theme.