SPECTOR3D: a resistive magnetohydrodynamic stability code for stellarators. SPECTOR3D is a magnetohydrodynamic (MHD) code designed to study the resistive stability and mode spectrum of stellarators. It finds the spectrum of the linearized, compressible, resistive MHD equations. Some typical results are given for a tokamak model with toroidal field ripple and a 17-period Heliotron.