System and apparatus for portable gas detection. Specifically, this disclosure describes apparatuses and systems for optical gas detection in a compact package. There is a need for a very compact, low-power, gas detection system for gases such as CO2, NOx, water vapor, methane etc. This disclosure provides an ultra-compact and highly efficient optical measurement system based on principals of optical absorption spectroscopy. It reduces the size of the instrument as well its power consumption by more than an order of magnitude making it possible to deploy it widely. There is an identified need for large number of distributed gas sensors to improve human health, environment, and save energy usage.