MCPcopy
hub / github.com/surveyjs/survey-library

github.com/surveyjs/survey-library @v012.0 sqlite

repository ↗ · DeepWiki ↗ · release v012.0 ↗
1,364 symbols 2,490 edges 163 files 0 documented · 0%
README

survey.js 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. Build Status

alt tag

Getting started

Join the chat at https://gitter.im/surveyjs/surveyjs

To find out more about the library go * to the surveyjs.org site * explore the live Examples * and build a survey JSON using Visual Editor

You can try plnkr examples at: * Angular2 http://plnkr.co/edit/OJkKlUn1oxzWYtnruXir?p=preview * jQuery http://plnkr.co/edit/DH4vJWSBtza7bSCDm2r9?p=preview * Knockout http://plnkr.co/edit/JKy5wwiAhaBTMze3fOO0?p=preview * React http://plnkr.co/edit/qXdeQa6x2FHRg0YrOlPL?p=preview * Vue http://plnkr.co/edit/aTYVAiDvMWOf3zDReayE?p=preview

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 dowload the latest version as zip file Download

Building survey.js from sources

To build library yourself:

  1. Clone the repo from GitHub
    git clone https://github.com/surveyjs/surveyjs.git cd surveyjs

  2. Acquire build dependencies. Make sure you have Node.js installed on your workstation. This is only needed to build surveyjs from sources.
    npm install -g karma-cli npm install

  3. Build the library npm run build_prod After that you should have the library at 'dist' directory.

  4. Run unit tests karma start This command will run unit tests usign Karma

Create your own question type.

Explore the example of adding a new question type into your survey library.

License

MIT license - http://www.opensource.org/licenses/mit-license.php

Visual Editor

Visual Editor site Visual Editor sources are here

Extension points exported contracts — how you extend this code

IConditionRunner (Interface)
(no doc) [5 implementers]
src/base.ts
ISurveyTriggerOwner (Interface)
(no doc) [4 implementers]
src/trigger.ts
IValidatorOwner (Interface)
(no doc) [4 implementers]
src/validator.ts
IMatrixDropdownData (Interface)
(no doc) [4 implementers]
src/question_matrixdropdownbase.ts
IMatrixData (Interface)
(no doc) [2 implementers]
src/question_matrix.ts
IMultipleTextData (Interface)
(no doc) [2 implementers]
src/question_multipletext.ts
ISurveyCreator (Interface)
(no doc) [2 implementers]
src/react/reactquestion.tsx
ISurveyData (Interface)
(no doc) [3 implementers]
src/base.ts

Core symbols most depended-on inside this repo

setValue
called by 56
src/base.ts
addClass
called by 48
src/jsonobject.ts
getQuestionByName
called by 46
src/survey.ts
add
called by 42
src/base.ts
toObject
called by 34
src/jsonobject.ts
render
called by 34
src/knockout/kosurvey.ts
hasErrors
called by 33
src/page.ts
addNewQuestion
called by 32
src/page.ts

Shape

Method 992
Class 320
Function 40
Interface 12

Languages

TypeScript100%

Modules by API surface

src/survey.ts115 symbols
src/jsonobject.ts71 symbols
src/question_matrixdropdownbase.ts67 symbols
src/base.ts53 symbols
src/question.ts46 symbols
src/validator.ts44 symbols
tests/jsonobjecttests.ts42 symbols
src/page.ts40 symbols
src/trigger.ts37 symbols
src/question_baseselect.ts34 symbols
src/question_multipletext.ts28 symbols
src/conditionsParser.ts27 symbols

Dependencies from manifests, versioned

@types/angular1.6.2 · 1×
@types/jquery2.0.39 · 1×
@types/knockout3.4.39 · 1×
@types/node7.0.4 · 1×
@types/qunit2.0.31 · 1×
@types/react15.0.4 · 1×
@types/react-dom0.14.21 · 1×
ajv4.11.2 · 1×
babel-core6.22.1 · 1×
babel-loader6.2.10 · 1×
babel-preset-latest6.22.0 · 1×
concurrently3.1.0 · 1×

For agents

$ claude mcp add survey-library \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact