We review the state of the art and our perspectives on silicon and hybrid silicon photonic devices for optical interconnects in datacenters. After a brief discussion of the key requirements for intra-datacenter optical interconnects, we propose a wavelength-division-multiplexing (WDM)-based optical interconnect for intra-datacenter applications. Following our proposed interconnects configuration, the bulk of the review emphasizes recent developments concerning on-chip hybrid silicon microlasers and WDM transmitters, and silicon photonic switch fabrics for intra-datacenters. For hybrid silicon microlasers and WDM transmitters, we outline the remaining challenges and key issues toward realizing low power consumption, direct modulation, and integration of multiwavelength microlaser arrays. For silicon photonic switch fabrics, we review various topologies and configurations of high-port-count N-by-N switch fabrics using Mach-Zehnder interferometers and microring resonators as switch elements, and discuss their prospects toward practical implementations with active reconfiguration. For the microring-based switch fabrics, we review recent developments of active stabilization schemes at the subsystem level. Last, we outline several large challenges and problems for silicon and hybrid silicon photonics to meet for intra-datacenter applications and propose potential solutions.