{"id":24118355,"url":"https://github.com/fantasyui-com/conversational-ui","last_synced_at":"2025-09-18T07:30:51.860Z","repository":{"id":57206762,"uuid":"97611318","full_name":"fantasyui-com/conversational-ui","owner":"fantasyui-com","description":"XRegExp based natural language interface to functions. [Language]","archived":false,"fork":false,"pushed_at":"2024-12-06T08:26:01.000Z","size":224,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T11:39:48.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fantasyui-com.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":"2017-07-18T14:55:53.000Z","updated_at":"2024-07-13T19:16:15.000Z","dependencies_parsed_at":"2024-01-18T20:32:20.981Z","dependency_job_id":"c54fe32c-1268-4237-bdae-428c21e7e563","html_url":"https://github.com/fantasyui-com/conversational-ui","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.37254901960784315","last_synced_commit":"c39a30e2d470de6f68af37580c16fd76e9002cc3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Fconversational-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Fconversational-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Fconversational-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Fconversational-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fantasyui-com","download_url":"https://codeload.github.com/fantasyui-com/conversational-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233456611,"owners_count":18679047,"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","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":[],"created_at":"2025-01-11T08:19:18.566Z","updated_at":"2025-09-18T07:30:46.559Z","avatar_url":"https://github.com/fantasyui-com.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# conversational-ui\nRegular expression based natural language interface to functions.\n\n# Installation\n\nnpm i conversational-ui\n\n# Initialize\n\n```JavaScript\n\nconst cui = require('conversational-ui');\n\n```\n\n# Register Handlers\n\n```JavaScript\n\ncui.register(`what is the answer to the ultimate question of life`, '', function(options){\n  return \"Um, but what is the question?\";\n});\n\ncui.register(`My name is (?\u003cname\u003e[a-z ]+)`, 'i', function(options){\n  return `Hello ${options.name.trim()} how are you`;\n});\n\n\n```\n\n# Example 1\n\n```JavaScript\n\nconst question = 'what is the answer to the ultimate question of life';\nconsole.log('Q:',question)\nconst response = await cui.request(question);\nconsole.log(\"A:\", response);\n\n```\n\n    Q: what is the answer to the ultimate question of life\n    A: Um, but what is the question?\n\n\n# Example 2\n\n```JavaScript\n\nconst question = 'My name is Slim Shady !!!!';\nconsole.log('Q:',question)\nconst response = await cui.request(question);\nconsole.log(\"A:\", response);\n\n```\n\n    Q: My name is Slim Shady !!!!\n    A: Hello Slim Shady how are you\n\n# Example 3\n\n```JavaScript\n\ncui.register(`My name is (?\u003cname\u003e[a-z ]+)`, 'i', function({name}){\n  return `Hello ${name} how are you!`;\n});\n\n```\n\n\n```JavaScript\n\nconst question = 'My name is Slim Shady !!!!';\nconsole.log('Q:',question)\nconst response = await cui.request(question);\nconsole.log(\"A:\", response);\n\n```\n\n    Q: My name is Slim Shady !!!!\n    A: Hello Slim Shady how are you\n\n# Example 4, server.js\n\n```Bash\n\n$\u003e curl \"http://localhost:3000/my+name+is+shady\"\nHello shady how are you!\n\n$\u003e curl \"http://localhost:3000/i+am+very+well\"\nOh, shady I am glad you are very well\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasyui-com%2Fconversational-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasyui-com%2Fconversational-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasyui-com%2Fconversational-ui/lists"}