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

youreply-survey

v2.1.0

Published

YouReply Survey - Framework-agnostic JSON Schema for survey definitions with A/B testing, flow orchestration, and content blocks

Readme

YouReply Survey Schema

Core JSON Schema for YouReply Survey system - framework-agnostic and UI-independent.

🎯 What's New: Survey Builder!

Visual survey creation is now available! We've added a powerful drag-and-drop Survey Builder that makes creating surveys easy and intuitive.

👉 See Builder Documentation | Try Demo

Quick Start with Builder

import { SurveyBuilder } from 'youreply-survey';
import 'youreply-survey/dist/builder.css';

<SurveyBuilder 
  defaultLanguage="en"
  onSurveyChange={(survey) => console.log(survey)}
/>

Features:

  • ✨ Drag and drop questions
  • 🎨 Visual property editor
  • 👀 Live JSON preview
  • 📤 Export/copy JSON output
  • 🎯 19 question types supported
  • 📄 Multi-page surveys

Features

  • Multi-language Support: All text fields support multiple languages using ISO 639-1 language codes
  • Multiple Question Types: 19 different question types supported
  • Conditional Logic: Page, question, and survey-level logic rules
  • Versioning: Built-in metadata for tracking versions and changes
  • Validation: Comprehensive validation rules for data quality
  • Framework Agnostic: Pure JSON Schema without UI/CSS dependencies
  • Survey Builder: NEW! Visual drag-and-drop survey creation tool

Schema Version

Current version: 1.0.0

Schema Draft: JSON Schema Draft 2020-12

Question Types

The schema supports the following question types:

  1. single_choice - Single selection from options
  2. multiple_choice - Multiple selections from options
  3. text_short - Short text input
  4. text_long - Long text/textarea input
  5. number - Numeric input
  6. email - Email address input
  7. phone - Phone number input
  8. date - Date picker
  9. time - Time picker
  10. datetime - Date and time picker
  11. rating - Star rating or similar
  12. scale - Linear scale (e.g., 1-10)
  13. matrix - Grid of questions with same options
  14. ranking - Rank items in order
  15. slider - Slider for numeric input
  16. dropdown - Dropdown/select list
  17. file_upload - File upload
  18. signature - Digital signature
  19. location - Geographic location

Conditional Logic

The schema supports complex conditional logic through:

  • Conditions: Compare question answers using various operators
  • Actions: Perform actions when conditions are met
  • Operators: AND/OR logic for combining conditions
  • Scope: Logic rules can be defined at survey, page, or question level

Supported Condition Operators

  • equals, not_equals
  • contains, not_contains
  • greater_than, less_than, greater_or_equal, less_or_equal
  • is_empty, is_not_empty
  • is_answered, is_not_answered
  • in, not_in

Supported Actions

  • show, hide - Show/hide questions or pages
  • require, unrequire - Make questions required/optional
  • skip_to_page, skip_to_question - Navigate to specific elements
  • end_survey - Complete the survey
  • set_value - Set a variable value
  • calculate - Perform calculations

Multi-Language Support

All text fields use the MultiLanguageText type:

{
  "en": "Welcome to our survey",
  "tr": "Anketimize hoş geldiniz",
  "es": "Bienvenido a nuestra encuesta"
}

Example Survey

See examples/ directory for complete survey examples.

Validation

The schema includes comprehensive validation:

  • Required field validation
  • Pattern matching (regex)
  • Min/max values and lengths
  • Custom validation expressions
  • Multi-language error messages

Versioning

Each survey includes metadata for tracking:

  • Creation and update timestamps
  • Creator and updater information
  • Status (draft, active, archived, deleted)
  • Tags for organization

Usage

This schema can be used with any programming language or framework that supports JSON Schema validation. It's designed to be a universal format for survey definitions.

License

Copyright © YouReply