{"id":17116081,"url":"https://github.com/andersevenrud/tiny-questionnaire","last_synced_at":"2025-09-05T20:38:49.252Z","repository":{"id":141938072,"uuid":"366755493","full_name":"andersevenrud/tiny-questionnaire","owner":"andersevenrud","description":"Embeddable web application that presents the user with a series of questions that can have multiple outcomes and formats.","archived":false,"fork":false,"pushed_at":"2021-05-12T18:13:52.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T00:51:28.442Z","etag":null,"topics":["embeddable","hyperapp","javascript","questionnaire"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andersevenrud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-12T15:04:04.000Z","updated_at":"2023-11-24T22:05:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd12fa17-4d69-4a54-a9d5-0990b1a137d2","html_url":"https://github.com/andersevenrud/tiny-questionnaire","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andersevenrud/tiny-questionnaire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersevenrud%2Ftiny-questionnaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersevenrud%2Ftiny-questionnaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersevenrud%2Ftiny-questionnaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersevenrud%2Ftiny-questionnaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andersevenrud","download_url":"https://codeload.github.com/andersevenrud/tiny-questionnaire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersevenrud%2Ftiny-questionnaire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273817032,"owners_count":25173527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embeddable","hyperapp","javascript","questionnaire"],"created_at":"2024-10-14T17:47:47.615Z","updated_at":"2025-09-05T20:38:49.240Z","avatar_url":"https://github.com/andersevenrud.png","language":"JavaScript","readme":"# tiny-questionnaire\n\nEmbeddable web application that presents the user with a series of questions that can have multiple outcomes and formats.\n\n## Features\n\n* Easly enbeddable client-side application\n* Extremely light-weight in production (\u003c 20K*)\n* Multiple question types (listed below)\n* Diffrent answer modes\n* Statistics support\n* Localization support\n* Supports all browsers\n* Accessibility support\n* Debug mode\n\n\u003e (*) In modern browsers, i.e. no Internet Explorer. Addutional 5-10K for legacy support.\n\n## Installation\n\nTo fire up a development environment simply run the following commands.\n\nThis repository is set up to build the example `example.js` solution.\n\n\u003e Requires Node 10+\n\n```\nnpm install\nnpm run start:dev\n```\n\n### Deployment\n\nRun `npm run prod` to create a distribution bundle in `dist/`.\n\n## Configuration\n\n| Option              | Type          | Default | Description                                       |\n| ------------------- | ------------- | ------- | ------------------------------------------------- |\n| `questions`         | `question[]`  | `[]`    | Questions                                         |\n| `questionTimeout`   | `number`      | `15`    | Question timeout                                  |\n| `questionDelimiter` | `string`      | `_`     | Question input field delimiter                    |\n| `skippable`         | `boolean`     | `false` | Yes/No (oral) mode (see keybindings below)        |\n| `autocomplete`      | `boolean`     | `true`  | Simulates 'Enter' key if correct value was filled |\n| `language`          | `string`      | `en`    | UI Language                                       |\n| `debug`             | `boolean`     | auto    | Debug mode (v/overview)                           |\n\n### Question types\n\nThere are several types of questions based on the `question[]` array entry data.\n\nAn answer value could be anything that's serializable to a string.\n\n### Fill in sentences\n\n```json\n{\n  text: 'Hello _ !',\n  answers: ['world']\n}\n```\n\n```json\n{\n  text: 'Hello _! Goodbye _ !',\n  answers: ['world', 'sandman']\n}\n```\n\n### Fill in sentences, but from a list of options\n\n```json\n{\n  text: 'Hello _ !',\n  answers: ['world'],\n  choices: ['world', 'universe']\n}\n```\n\n### Standard question, answer from a list of options\n\n```json\n{\n  text: 'Who are you ?',\n  answers: ['god'],\n  choices: ['god', 'dog']\n}\n```\n\n## Events\n\nHook into events with `.on()` and `.off()` on the application instance.\n\n| Name        | Description                                        |\n| ----------- | -------------------------------------------------- |\n| `start`     | When exercise starts                               |\n| `stop`      | When exercise stops (argument contains last state) |\n\n## Actions\n\nSee `src/app.js` for a list of actions that's wired to the application instance.\n\n## Keyboard Shortcuts\n\n| Shortcut       | Description                                                                     |\n| -------------- | ------------------------------------------------------------------------------- |\n| `Enter`        | In `skippable` mode fill/mark the current answer as correct                     |\n| `Shift+Enter`  | Same as above, except that it makes the current answer invalid                  |\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersevenrud%2Ftiny-questionnaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersevenrud%2Ftiny-questionnaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersevenrud%2Ftiny-questionnaire/lists"}