npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

survey-creator-angular

v3.0.2

Published

Embeddable SurveyJS drag-and-drop form builder for JSON-based forms in Angular. Create dynamic surveys, polls, quizzes, and other forms, configure conditional logic and validation, and customize the editor UI.

Readme

SurveyJS Survey Creator for Angular — Drag-and-Drop Form Builder

Build Status NPM Version Tested with Playwright Open Issues Closed Issues

Survey Creator for Angular is an embeddable drag-and-drop form builder for creating and editing dynamic, JSON-based forms and surveys in Angular applications.

The survey-creator-angular package provides the Angular rendering layer for SurveyJS Creator. It works with the framework-independent survey-creator-core package, which manages the form builder model, editor state, form-editing logic, Toolbox, Property Grid, tabs, actions, and other core behavior. survey-creator-core is a peer dependency: npm 7 and later install it automatically; with pnpm or Yarn 1, add it explicitly. You configure a builder instance with survey-creator-core and bind it to this package's <survey-creator> component through its model input: <survey-creator [model]="surveyCreatorModel"></survey-creator>.

Use Survey Creator to build multi-page forms, surveys, quizzes, assessments, and other data-entry tools, configure conditional logic and validation, and customize the form builder UI. Survey Creator generates SurveyJS JSON form definitions that you can save in your own backend and render with SurveyJS Angular Form Library.

Try Survey Creator for Angular

Install

Requires Angular v12.0.0 or newer and the @angular/cdk package (install the CDK version that matches your Angular version):

npm install survey-creator-angular --save
npm install @angular/cdk --save

Angular v8–v11 are supported by the legacy survey-creator-knockout package, which depends on Knockout and is obsolete. See Add Survey Creator to an Angular v8–v11 Application.

License key

Survey Creator displays an alert banner until you activate a purchased commercial license. Activate your key with setLicenseKey from survey-core:

import { setLicenseKey } from "survey-core";

setLicenseKey("your-license-key-goes-here");

Call it once at module bootstrap — in app.module.ts alongside the SurveyCreatorModule import, or in main.ts before bootstrapModule. Your key and step-by-step setup instructions are on the How to Remove the Alert Banner page in your SurveyJS account.

Usage

Import SurveyCreatorModule in your NgModule:

// app.module.ts
import { SurveyCreatorModule } from "survey-creator-angular";

@NgModule({
  imports: [ /* ... */ SurveyCreatorModule ],
  // ...
})
export class AppModule { }

Build a model and bind it to the <survey-creator> element:

// survey-creator.component.ts
import { Component } from "@angular/core";
import { SurveyCreatorModel } from "survey-creator-core";

const creatorOptions = {
  autoSaveEnabled: true,
  collapseOnDrag: true
};

@Component({ selector: "app-survey-creator", templateUrl: "./survey-creator.component.html" })
export class SurveyCreatorComponent {
  surveyCreatorModel = new SurveyCreatorModel(creatorOptions);

  constructor() {
    this.surveyCreatorModel.saveSurveyFunc = (saveNo: number, callback: (num: number, status: boolean) => void) => {
      // Save `this.surveyCreatorModel.JSON` or `.text` to your database, then:
      callback(saveNo, true);
    };
  }
}
<!-- survey-creator.component.html -->
<div id="surveyCreator">
  <survey-creator [model]="surveyCreatorModel"></survey-creator>
</div>

Give the container an explicit size, because Survey Creator fills the space it is given:

#surveyCreator {
  height: 100vh;
  width: 100vw;
}

Add the style sheets to the styles array in angular.json:

"styles": [
  "src/styles.css",
  "node_modules/survey-core/survey-core.min.css",
  "node_modules/survey-creator-core/survey-creator-core.min.css"
]

When using standalone components, add SurveyCreatorModule to the component's imports array and import the style sheets in the component file instead.

Themes

survey-creator-core/survey-creator-core.min.css applies the Light UI theme. The Dark, Contrast, and Survey Creator 2020 themes are imported from survey-creator-core/themes and applied with applyCreatorTheme(theme):

import { DefaultDark } from "survey-creator-core/themes";

this.surveyCreatorModel.applyCreatorTheme(DefaultDark);

The UI theme styles the builder itself. The look of the forms it produces is edited in the built-in Theme tab and stored in the survey theme JSON. See Themes & Styles and Theme Editor.

Theme adapters

A theme adapter maps an existing design system's CSS variables onto SurveyJS design tokens, so a survey inherits the look of the host application. Survey Creator supports adapters: the form on the design surface and in the Preview tab is a real survey, so it picks up whichever adapter the page loads. Adapters ship with survey-core as plain CSS — load one after the base style sheets:

"styles": [
  "node_modules/survey-core/survey-core.min.css",
  "node_modules/survey-creator-core/survey-creator-core.min.css",
  "node_modules/survey-core/themes/adapters/bootstrap-default.css"
]

Adapters are available for Bootstrap (plus Bootswatch variants), Material UI, and shadcn/ui, with matching icon sets (survey-core/themes/adapters/icons/lucide, .../icons/mui). See Theme Adapters.

Key features

Angular Integration

  • Angular rendering package for SurveyJS Creator
  • Framework-independent editor model through survey-creator-core
  • TypeScript support
  • Client-side form editing without a required SurveyJS backend

Visual Form Editing

  • Drag-and-drop form builder UI
  • Multi-page forms and form wizards
  • Conditional visibility, branching, validation, and calculated values
  • Dedicated Logic and JSON Editor interfaces
  • Form preview before publication

Customizable Editor UI

Appearance Customization

Related packages

| Package | Purpose | | --- | --- | | survey-creator-core | Platform-independent Survey Creator model (peer dependency) | | survey-creator-react | React renderer | | survey-creator-vue | Vue 3 renderer | | survey-creator-js | HTML/CSS/JavaScript renderer | | survey-angular-ui | Renders the forms that Survey Creator produces |

Documentation

For AI coding agents: https://surveyjs.io/llms.txt indexes the documentation. Any documentation page is also available as raw Markdown — append .md to its URL, for example https://surveyjs.io/survey-creator/documentation/get-started-angular.md.

SurveyJS ecosystem

| Product | Purpose | License | | --- | --- | --- | | Form Library | Render dynamic forms from JSON | MIT | | Survey Creator | Drag-and-drop form builder UI (this package) | Commercial | | Dashboard | Visualize and analyze collected results | Commercial | | PDF Generator | Render forms and responses as PDF | Commercial | | AI Form Response Extractor | Extract responses from paper forms, PDFs, and images into a SurveyJS schema (ai-form-response-extractor) | MIT |

Build from sources

This monorepo does not use npm workspaces: each package installs independently, but a root install is still required for the shared tooling (linting, Playwright).

  1. Build survey-library and survey-creator-core first

    This package resolves survey-core, survey-angular-ui, and survey-creator-core from sibling build folders, so those must be built before this library can be built or tested. Refer to the following instructions:

    NOTE: Make sure that the folders with the cloned survey-library and survey-creator repositories are in the same directory.

  2. Install dependencies and build this library

    cd packages/survey-creator-angular
    npm install
    npm run build

    Build output goes to the build directory.

  3. Run a test application

    npm run serve:example:dev

    This runs a local HTTP server at http://localhost:4200/.

  4. Run unit tests

    Unit tests run through the Angular CLI, which uses Karma and Jasmine.

    npm run test          # watch mode
    npm run test:single   # single run, headless Chrome
  5. Run end-to-end tests

    E2E, visual-regression, and accessibility tests are Playwright suites. Angular serves a production build of the example app, so build it first. Do not start an HTTP server yourself — the Playwright config runs serve:example:prod itself.

    npm run build:example:prod            # produces dist/angular-ui
    npm run e2e:ci                        # e2e
    npm run e2e:ci -- --grep "TestName"   # a single test
    npm run test:scr:ci                   # visual regression
    npm run test:a11y:ci                  # accessibility

Licensing

You can install Survey Creator and evaluate its full functionality right away — no license is needed to prototype, test, or build a proof of concept. Production use requires a commercial license for each developer who works with the SurveyJS APIs or implements the integration, and activating a license key removes the alert banner. The forms Survey Creator produces are rendered by SurveyJS Form Library, which is MIT-licensed and runs free of charge.