Convert Figma logo to code with AI

didi logoxiaoju-survey

XIAOJUSURVEY is an enterprises form builder and analytics platform that allows users to create questionnaires, exams, polls, quizzes, and analyze data online.

3,587
480
3,587
38

Top Related Projects

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.

🔥 LimeSurvey – A powerful, open-source survey platform. A free alternative to SurveyMonkey, Typeform, Qualtrics, and Google Forms, making it simple to create online surveys and forms with unmatched flexibility.

The successor to this repository is actively maintained at https://formspree.io. Its source code is not available

Quick Overview

Xiaoju Survey is an open-source survey system developed by DiDi, a Chinese ride-hailing company. It provides a comprehensive platform for creating, distributing, and analyzing surveys, with features tailored for large-scale enterprise use. The system is designed to be flexible, scalable, and easy to integrate with existing business processes.

Pros

  • Highly customizable survey creation with a wide range of question types
  • Robust data analysis and reporting capabilities
  • Scalable architecture suitable for enterprise-level deployment
  • Integration with DiDi's ecosystem and potential for other business integrations

Cons

  • Documentation primarily in Chinese, which may limit accessibility for non-Chinese speakers
  • Steep learning curve for advanced features and customizations
  • Limited community support compared to more widely-used survey platforms
  • May require significant setup and configuration for optimal performance

Code Examples

As Xiaoju Survey is primarily a survey platform and not a code library, there are no specific code examples to showcase. The system is typically interacted with through its user interface or API endpoints.

Getting Started

Since Xiaoju Survey is a full-fledged survey system rather than a code library, there isn't a simple code snippet for getting started. Instead, users would typically follow these steps:

  1. Clone the repository from GitHub:

    git clone https://github.com/didi/xiaoju-survey.git
    
  2. Follow the installation instructions in the project's documentation (which are primarily in Chinese).

  3. Configure the system according to your organization's needs, including setting up databases and integrating with existing systems.

  4. Access the survey creation interface to start building and distributing surveys.

  5. Utilize the reporting and analysis tools to gather insights from survey responses.

For detailed setup and usage instructions, refer to the project's documentation on GitHub.

Competitor Comparisons

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.

Pros of survey-library

  • More comprehensive documentation and examples
  • Wider range of customization options and question types
  • Active community support and regular updates

Cons of survey-library

  • Steeper learning curve due to more complex features
  • Larger file size, which may impact load times for simpler surveys

Code Comparison

survey-library:

Survey.StylesManager.applyTheme("default");

var json = {
    questions: [{
        type: "rating",
        name: "satisfaction",
        title: "How satisfied are you with our product?",
        mininumRateDescription: "Not Satisfied",
        maximumRateDescription: "Completely satisfied"
    }]
};

window.survey = new Survey.Model(json);

xiaoju-survey:

const survey = new Survey({
    questions: [{
        type: 'rating',
        title: 'How satisfied are you with our product?',
        options: [1, 2, 3, 4, 5]
    }]
});

survey.render('#survey-container');

The code comparison shows that survey-library offers more detailed configuration options, while xiaoju-survey provides a simpler API for basic survey creation. survey-library's approach allows for more customization, but xiaoju-survey's syntax may be easier for beginners to understand and implement quickly.

🔥 LimeSurvey – A powerful, open-source survey platform. A free alternative to SurveyMonkey, Typeform, Qualtrics, and Google Forms, making it simple to create online surveys and forms with unmatched flexibility.

Pros of LimeSurvey

  • More extensive feature set, including advanced question types and survey logic
  • Larger community and better documentation
  • Self-hosted option for greater control and customization

Cons of LimeSurvey

  • Steeper learning curve due to more complex interface
  • Heavier resource requirements, potentially slower performance
  • Less modern UI design compared to Xiaoju Survey

Code Comparison

LimeSurvey (PHP):

public function actionSaveQuestionGroupOrder()
{
    $request = Yii::app()->request;
    $groupOrder = $request->getPost('groupOrder');
    $surveyid = $request->getPost('surveyid');
    $success = QuestionGroup::updateGroupOrder($groupOrder, $surveyid);
    echo json_encode($success);
}

Xiaoju Survey (JavaScript):

export const saveQuestionOrder = (surveyId, questionOrder) => {
  return api.post(`/surveys/${surveyId}/questions/order`, { questionOrder })
    .then(response => response.data)
    .catch(error => console.error('Error saving question order:', error));
};

Both repositories provide survey creation and management functionality, but LimeSurvey offers a more comprehensive solution with advanced features and greater flexibility. Xiaoju Survey, on the other hand, appears to have a more modern and streamlined approach, potentially offering better ease of use for simpler survey needs.

The successor to this repository is actively maintained at https://formspree.io. Its source code is not available

Pros of Formspree

  • More actively maintained with recent updates and contributions
  • Offers a hosted solution, simplifying deployment and infrastructure management
  • Provides built-in spam protection and CAPTCHA support

Cons of Formspree

  • Less customizable than Xiaoju Survey for complex survey scenarios
  • Requires a paid plan for advanced features and higher submission limits
  • May have limitations for handling large-scale surveys or data analysis

Code Comparison

Xiaoju Survey (JavaScript):

const survey = new Survey({
  questions: [
    { type: 'text', label: 'Name' },
    { type: 'radio', label: 'Gender', options: ['Male', 'Female'] }
  ]
});

Formspree (HTML):

<form action="https://formspree.io/f/your-form-id" method="POST">
  <input type="text" name="name">
  <input type="email" name="email">
  <button type="submit">Send</button>
</form>

Summary

Formspree is a more user-friendly option for simple form handling, offering a hosted solution with built-in features. However, Xiaoju Survey provides greater flexibility for complex surveys and data analysis. The choice between the two depends on the specific requirements of the project, such as customization needs, deployment preferences, and scalability considerations.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README


  XIAOJUSURVEY是一套轻量、安全的调研系统,提供面向个人和企业的一站式产品级解决方案,用于构建各类问卷、考试、测评和复杂表单,快速满足各类线上调研场景。

  内部系统已沉淀 40+种题型,累积精选模板 100+,适用于市场调研、客户满意度调研、在线考试、投票、报道、测评等众多场景。数据能力上,经过上亿量级打磨,沉淀了分题统计、交叉分析、多渠道分析等在线报表能力,快速满足专业化分析。

功能特性

🌈 易用

  • 多类型数据采集,轻松创建调研表单:文本输入、数据选择、评分、投票、文件上传等。

  • 智能逻辑编排,设计多规则动态表单:显示逻辑、跳转逻辑、选项引用、题目引用等。

  • 精细权限管理,支持高效团队协同:空间管理、多角色权限管理等。

  • 数据在线分析和导出,洞察调研结果:数据导出、回收数据管理、分题统计、交叉分析等。

  • AI 生成问卷,支持一键接入LLM:对话式生成问卷,实时预览更快速。

🎨 好看

  • 主题自由定制,适配您的品牌:自定义颜色、背景、图片、Logo、结果页规则等。

  • 无缝嵌入各终端,满足不同场景需求:多端嵌入式小问卷 SDK。

🚀 安全、可扩展

  • 安全能力可扩展,提供安全相关建设的经验指导:传输加密、敏感词库、发布审查等。

  • 自定义 Hook 配置,轻松集成多方系统与各类工具:数据推送集成、消息推送集成等。

1、 全部功能请查看 功能介绍。

2、企业和个人均可快速构建特定领域的调研类解决方案。

技术

1、Web 端:Vue3 + ElementPlus

  C 端多端渲染:ReactNative SDK 建设中

2、Server 端:NestJS + MongoDB

  Java 版:建设中,欢迎加入共建

3、能力增强

  智能化问卷:规划中

项目优势

一、具备全面的综合性和专业性

  • 制定了问卷标准化协议规范

    领域标准保障概念互通,是全系统的基础和核心。基于实际业务经验,沉淀了两大类:

    • 业务描述:问卷协议、题型协议
    • 物料描述:题型物料协议,包含题型和设置器
  • 制定了问卷 UI/UX 规范

    设计语言是系统灵活性、一致性的基石,保障系统支撑的实际业务运转拥有极高的用户体验。包含两部分:

    • 设计规范:灵活、降噪、统一
    • 交互规范:遵循用户行为特征,遵循产品定位,遵循成熟的用户习惯
  • 所见即所得,搭建渲染一致性高

    实际业务使用上包含问卷生成和投放使用,即对于系统的搭建端和渲染端。我们将题型场景化设计,以满足一份问卷从加工生产到投放应用的高度一致。

  • 题型物料化设计,自由定制扩展

    题型是问卷最核心的组成部分,而题型可配置化能力决定了上层业务可扩展的场景以及系统自身可复用的场景。 题型架构设计上,主打每一类题型拥有通用基础能力,每一种题型拥有原子化特性能力,并保障高度定制化。

  • 合规建设沉淀积累,安全能力拓展性高

    数据加密传输、敏感信息精细化检测、投票防刷等能力,保障问卷发布、数据回收链路安全性。

二、轻量化设计,快速接入、灵活扩展

本地开发

请查看 本地安装手册 来启动项目。

// 服务启动
cd server
npm install
npm run local

// 页面启动
cd web
npm install
npm run serve

// B端 http://localhost:8080/management

// C端 http://localhost:8080/render/:surveyPath

快速部署

服务部署

请查看 部署指导 。

Docker 镜像版本选择

我们提供两个 Docker 镜像版本供您选择:

  • slim 版本 (xiaojusurvey/xiaoju-survey:latest-slim):

    • 基于 node:18-slim,镜像体积更小
    • 适合生产环境部署
    • 包含运行所需的最小依赖
  • 完整版本 (xiaojusurvey/xiaoju-survey:latest-full):

    • 基于 node:18,包含完整的开发工具
    • 适合开发环境或需要调试的场景
    • 包含 curl、vim、git 等工具

在 docker-compose.yaml 中修改镜像标签即可切换版本。

一键部署

(手册编写中)


Star

开源不易,如果该项目对你有帮助,请 star 一下 ❤️❤️❤️,你的支持是我们最大的动力。

Star History Chart

交流群

官方群会发布项目最新消息、建设计划和社区活动,欢迎你的加入。

任何问题和合作可以联系小助手。

案例

如果你使用了该项目,请记录反馈:我在使用,你的支持是我们最大的动力。

Future Tasks

欢迎了解项目发展和共建,你的支持是我们最大的动力。

贡献

如果你想成为贡献者或者扩展技术栈,请查看:贡献者指南,你的加入使我们最大的荣幸。

CHANGELOG

关注项目重大变更:MAJOR CHANGELOG。