The concept of brain-computer interface (BCI) has emerged over the last three decades as a promising alternative to the existing interface methods. However the BCI framework generally spoken only emphasizes on the aspects of BCI signal processing, lacking of the function of visualization and virtual reality (VR) feedback. This paper designs a general and extendable framework which has the ability of offline, online analysis, visualization, and VR feedback. For the researchers, they can use it to analyze the online EEG signals, and observe the dynamic brain information of subjects. Meanwhile, the researchers can also do the offline analysis. For subjects, VR technology can provide a more secure and realistic environment for training and tuning neutrally controlled interfaces to real-world devices, such as wheelchairs. At last, the methods and algorithms used in the framework are also described.