surveyjs /survey-library

Open-source JavaScript form library for React, Angular, Vue, and plain JavaScript. Render dynamic JSON-driven forms, multi-step form wizards, surveys, quizzes, and other data-entry tools.

★ 4,931⑂ 927👁 66⑃ 5,199● 6,791▤ 409
TypeScriptMITCreated 2015-08-14surveyjs.io/form-library
下载:v3.2.5v3.2.5 ↓3.2.52026-11-11
+0
日增长
4,931
stars
927
forks
66
watchers
5,199
prs
6,791
issues
409
releases

README

SurveyJS Form Library





SurveyJS Form Library is a free and open-source JavaScript form library for rendering dynamic, JSON-based forms and surveys in React, Angular, Vue, and plain JavaScript applications. It collects responses in the browser and lets you send submitted data to any backend or database.

Use it to build complex multi-step forms, pop-up surveys, quizzes, scored surveys, calculator forms, and other data-entry tools. Form content and structure, validation, conditional logic, navigation, and appearance are defined through a SurveyJS JSON form definition.

You can create form definitions manually, generate them with AI, or build them visually with SurveyJS Creator, an embeddable drag-and-drop form builder.





    Documentation
    ·
    Setup Guides for My Stack
    ·
    Form Library Demos
    ·
    Theme Adapters
    ·
    Store Survey Results
    ·
    Report Bug
  
  


https://github.com/surveyjs/survey-library/assets/102306951/844563b2-c7c3-400c-962f-bcdbe7274d55

 How It Works

SurveyJS Form Library renders forms from JSON definitions directly in your web application. It runs in the browser and does not require a SurveyJS backend, so you retain control over form definitions, submitted responses, and data storage.

Your application can:

1. Create or load a SurveyJS JSON form definition.
2. Render it with SurveyJS Form Library.
3. Collect responses in the browser.
4. Send submitted data to your backend.
5. Store it in the database or service of your choice.
   
 Installation

Choose the package for your framework:

 React Form Library

bash
npm install survey-react-ui

Get Started with Form Library for React

 Angular Form Library

bash
npm install survey-angular-ui

Get Started with Form Library for Angular

 Vue.js Form Library

bash
npm install survey-vue3-ui

Get Started with Form Library for Vue.js

 Plain JavaScript Form Library

bash
npm install survey-js-ui

Get Started with Form Library for Plain JavaScript

 Package Architecture

SurveyJS Form Library separates form logic from rendering. The framework-independent survey-core package provides the form model, validation, conditional logic, calculations, navigation, localization, and other core behavior. Framework-specific packages such as survey-react-ui, survey-angular-ui, and survey-vue3-ui render that model in React, Angular, and Vue 3 applications. Installing a rendering package brings survey-core with it.

 Key Features

 Dynamic Forms and Surveys

- Multi-step forms, quizzes, scored surveys, calculator forms, and survey pop-ups
- Conditional visibility, branching, calculated values, and expression-based logic
- Input validation, partial submissions, auto-save, and lazy loading
- Dynamic panels, repeating question groups, carry-forward responses, and text piping
- Multiple navigation modes for long and complex forms

 Multi-Framework Support

- Dedicated Form Library rendering packages for React, Angular, Vue 3, and plain JavaScript
- TypeScript support
- Clien

Top issues

Discussions

Latest release

v3.2.5 v3.2.5 2026-11-11
What's Changed
 Dropdown popup is as narrow as the input when the question title is on the left [creator:8123] by @OlgaLarina in https://github.com/surveyjs/survey-library/pull/12190
 Update postcss test script and add postcss-surveyjs dependency; adjus… by @MarchTokenda in https://github.com/surveyjs/survey-library/pull/12213
 test(survey-core): scan each file once in the tester isolation test by @andrewtelnov in https://github.com/surveyjs/survey-library/pull/12210
 fix(core): report nested errors in getAllErrors of composite and sele… by @andrewtelnov in https://github.com/surveyjs/survey-l

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON