We review the AKSZ construction as applied to the topological open membranes and Poisson sigma models. We describe a generalization to open topological p-branes and Nambu-Poisson sigma models.