SurveyJS is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
SurveyJS Core Library Documentation
SurveyJS Library Live Examples
You can easy build SurveyJS JSON definitions with the SurveyJS Editor (Survey Builder)
Visual Editor site
Visual Editor sources are here
SurveyJS has extandable ecosystem with integrated 3rd party widgets. Custom Widgets source code is here
To find out more about the library go
- to the SurveyJS Library Site
- explore the live Examples
- and build a survey JSON using Visual Editor
You can try plnkr examples at:
or use quickstart repos:
Install the library using npm.
Angular2 version:
npm install survey-angular
jQuery version:
npm install survey-jquery
Knockout version:
npm install survey-knockout
React version:
npm install survey-react
Vue version:
npm install survey-vue
Or use Azure CDN:
- https://surveyjs.azureedge.net/{version-number}/survey.angular.min.js
- https://surveyjs.azureedge.net/{version-number}/survey.ko.min.js
- https://surveyjs.azureedge.net/{version-number}/survey.react.min.js
- https://surveyjs.azureedge.net/{version-number}/survey.jquery.min.js
- https://surveyjs.azureedge.net/{version-number}/survey.vue.min.js
You find all versions/builds in the surveyjs/build repo.
Or dowload a version as zip file from Releases
To build library yourself:
-
Clone the repo from GitHub
git clone https://github.com/surveyjs/surveyjs.git cd surveyjs
-
Acquire build dependencies. Make sure you have Node.js installed on your workstation. You need a version of Node.js greater than 6.0.0 and npm greater than 2.7.0. This is only needed to build surveyjs from sources.
npm install -g karma-cli npm install
-
Build the library
npm run build_prod
After that you should have the libraries (angular, jquery, knockout, react and vue) at 'packages' directory.
-
Run unit tests
karma start
This command will run unit tests using Karma