{"id":17699921,"url":"https://github.com/anistark/prompt","last_synced_at":"2026-03-19T01:49:20.263Z","repository":{"id":57143546,"uuid":"366708700","full_name":"anistark/prompt","owner":"anistark","description":"A Web App alerting/notifications plugin.","archived":false,"fork":false,"pushed_at":"2022-10-10T22:19:34.000Z","size":103,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T11:48:53.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://anistark.github.io/prompt/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anistark.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}},"created_at":"2021-05-12T12:31:28.000Z","updated_at":"2023-03-04T10:59:33.000Z","dependencies_parsed_at":"2022-09-05T12:01:18.490Z","dependency_job_id":null,"html_url":"https://github.com/anistark/prompt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anistark%2Fprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anistark%2Fprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anistark%2Fprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anistark%2Fprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anistark","download_url":"https://codeload.github.com/anistark/prompt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403897,"owners_count":20771526,"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":"2024-10-24T17:07:54.808Z","updated_at":"2026-01-08T08:07:34.533Z","avatar_url":"https://github.com/anistark.png","language":null,"readme":"# Prompt\n\n[![npm](https://img.shields.io/npm/v/promptjs)](https://www.npmjs.com/package/promptjs)\n[![npm](https://img.shields.io/npm/dm/promptjs)](https://www.npmjs.com/package/promptjs)\n[![GitHub](https://img.shields.io/github/license/anistark/prompt)](./LICENSE)\n\nA web app notification plugin to easily integrate and get going.\n\n\u003cimg src=\"https://anistark.github.io/prompt/img/prompt.png\" alt=\"Prompt\" height=\"100\"/\u003e\n\n[Demo](https://anistark.github.io/prompt/)\n\n## Documentation:\n\n### Install: `npm install promptjs --save`\n\n### Update: `npm update promptjs --save`\nUpdate to the latest version of the library to catch up with new features.\n\n### Usage:\n\n#### Import:\n\n1. If you're running this on reactjs/vuejs/angular sort of framework, you can directly use require.\nAlternatively, if you've browerify or requirejs in your project, you can import directly from `node_modules`:\n```javascript\nrequire('promptjs')\n```\nDon't forget to add the stylesheet:\n```html\n\u003clink rel=\"stylesheet\" href=\"/node_modules/promptjs/dist/prompt.css\"\u003e\n```\n\n2. If not, copy them to your client side vendor directory like:\n```\ncp -r node_modules/promptjs statics/vendor/\n```\nwhere `statics` is my client side static directory (Yours might have some equivalent name. Add accordingly).\nAnd then add these lines to your client side view or html file:\n```html\n\u003clink rel=\"stylesheet\" href=\"/static/vendor/promptjs/dist/prompt.css\"\u003e\n\u003cscript type=\"text/javascript\" src=\"/static/vendor/promptjs/dist/prompt.js\"\u003e\u003c/script\u003e\n```\n\n#### Trigger:\n```javascript\nPrompt.create({\n    title: \"Title\",\n    text: \"Text\",\n    type: \"success\",\n    position: \"top-right\",\n    timeout: \"5000\"  // 5s\n});\n```\n\n#### Screenshot:\n\u003cimg src=\"https://anistark.github.io/prompt/img/screenshot.png\" alt=\"Screenshot\" height=\"100\"/\u003e\n\n***\n\nContributions Welcome.\nFeel free to open an issue with a feature request or bug report and work on it. Assign it to yourself so that nobody else takes it up.\n\n***\n\nInspired by [VanillaToasts](https://github.com/AlexKvazos/VanillaToasts).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanistark%2Fprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanistark%2Fprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanistark%2Fprompt/lists"}