An optoelectronic device including a header having an upper surface and including a plurality of conducting pins extending up through the upper surface; an optical device; a tunable optical filter, wherein the optical device and the tunable optical filter are arranged in a vertical stack mounted on and extending above the upper surface of the header and wherein the tunable optical filter is electrically connected to the plurality of conducting pins; and a cap affixed to the header and along with the header defining a sealed interior containing the optical device and the tunable optical filter, wherein the cap has a top surface with a window formed therein, and wherein the window is aligned with the tunable optical filter and the optical device.