A device for treatment of the spine, the device comprising a first vertebral attachment designed to affix to a first vertebra and a second vertebral attachment designed to affix to a second vertebra, wherein each vertebral attachment is a separate component and comprises: (i) one or more magnets; and (ii) one or more connecting components that can affix the one or more magnets to a spinous process of the vertebra, wherein the one or more connecting components comprise: (a) an extension that is a ring-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (b) an extension that is an oval-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (c) an extension that is a U-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (d) an extension that is a rod-shape, wherein the extension is designed to accomodate the spinous process; wherein the one or more magnets of the first vertebral attachment attracts or repulses the one or more magnets of the second vertebral attachment; and wherein the device further comprises an alignment feature to maintain axial and rotary positioning of the device in one or more planes, wherein the alignment feature is selected from the group consisting of: pins, sleeves, sleeves with pins, and blocking features, and wherein the alignment feature is designed to connect to both the first vertebral attachment and the second vertebral attachment. (i) one or more magnets; and (ii) one or more connecting components that can affix the one or more magnets to a spinous process of the vertebra, wherein the one or more connecting components comprise: (a) an extension that is a ring-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (b) an extension that is an oval-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (c) an extension that is a U-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (d) an extension that is a rod-shape, wherein the extension is designed to accomodate the spinous process; (a) an extension that is a ring-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (b) an extension that is an oval-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (c) an extension that is a U-shape, wherein the extension is designed to accommodate a spinous process and wherein the extension comprises a first hole and a second hole; and a rod or pin, wherein the first hole and second hole of the extension are designed to accommodate the rod or pin, or (d) an extension that is a rod-shape, wherein the extension is designed to accomodate the spinous process; wherein the one or more magnets of the first vertebral attachment attracts or repulses the one or more magnets of the second vertebral attachment; and wherein the device further comprises an alignment feature to maintain axial and rotary positioning of the device in one or more planes, wherein the alignment feature is selected from the group consisting of: pins, sleeves, sleeves with pins, and blocking features, and wherein the alignment feature is designed to connect to both the first vertebral attachment and the second vertebral attachment.