At present, the structured P2P algorithms have been proposed frequently. Consequently, the P2P application developers need to learn different API semantics. It causes additional efforts of switching to different P2P topologies for P2P applications. Moreover, it is difficult for the developers to evaluate the performance of an application based on a particular underneath P2P APIs. In this research, a novel P2P framework is proposed to assist in developing P2P applications by using various structured P2P protocols and P2P pub/sub algorithms. We construct the structured P2P functional blocks, including network communication components, P2P topology maintenance and routing, network bootstrapping, as well as pluggable pub/sub services in our system. By Comparing to other P2P libraries and platforms, our framework achieves a great success on providing a flexible and extensible development platform.