We present novel nonlocal governing operators in 2D/3D for wave propagation and diffusion. The operators are inspired by peridynamics. They agree with the original peridynamics operator in the bulk of the domain and simultaneously enforce local boundary conditions (BC). The main ingredients are periodic, antiperiodic, and mixed extensions of separable kernel functions together with even and odd parts of bivariate functions on rectangular/box domains. The operators are bounded and self-adjoint. We present all possible 36 different types of BC in 2D which include pure and mixed combinations of Neumann, Dirichlet, periodic, and antiperiodic BC. Our construction is systematic and easy to follow. We provide numerical experiments that verify our theoretical findings. We also compare the solutions of the classical wave and heat equations to their nonlocal counterparts.