Alkali metal-incorporated spinel oxide nanofibers enable high performance detection of formaldehyde at ppb level.