{"id":27414352,"url":"https://github.com/willkessler/this-is-not-a-drill-basic-example","last_synced_at":"2025-04-14T08:24:48.302Z","repository":{"id":242775655,"uuid":"810501518","full_name":"willkessler/this-is-not-a-drill-basic-example","owner":"willkessler","description":"Extremely basic app for This Is Not A Drill! User Alerting service using plain typescript","archived":false,"fork":false,"pushed_at":"2024-06-07T04:17:05.000Z","size":1792,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-07T23:56:01.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/willkessler.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":"2024-06-04T20:23:48.000Z","updated_at":"2024-06-07T04:17:08.000Z","dependencies_parsed_at":"2024-06-04T23:47:43.419Z","dependency_job_id":"5f3c38c8-b124-49b1-b187-bd596dac2f9e","html_url":"https://github.com/willkessler/this-is-not-a-drill-basic-example","commit_stats":null,"previous_names":["willkessler/this-is-not-a-drill-basic-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkessler%2Fthis-is-not-a-drill-basic-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkessler%2Fthis-is-not-a-drill-basic-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkessler%2Fthis-is-not-a-drill-basic-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkessler%2Fthis-is-not-a-drill-basic-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willkessler","download_url":"https://codeload.github.com/willkessler/this-is-not-a-drill-basic-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844391,"owners_count":21170567,"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-04-14T08:24:46.949Z","updated_at":"2025-04-14T08:24:48.269Z","avatar_url":"https://github.com/willkessler.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Example : This Is Not A Drill! User Alerting Service\n\n\u003ca href=\"https://this-is-not-a-drill.com\"\u003e\u003cimg src=\"https://app.this-is-not-a-drill.com/ThisIsNotADrill1.png\" width=\"250\" height=\"250\"\u003e\u003c/a\u003e\n\n**This is Not A Drill!** is a service with which you can popup\nimportant service messages to grab your users' attention __in-app__.\n\nCommon use cases are :\n\n* website outages / problems\n* scheduled maintenance\n* important updates to your user flow\n* changes to your service offerings\n* legal changes/updates, e.g. regarding privacy policy, SLA, or TOS\n\n## What this demo is for\n\nThis demo shows how you can implement This Is Not A Drill! (`TINAD`) SDK in a `node` application.\n\n1. Install the SDK via:\n\n``` javascript\nnpm i @this-is-not-a-drill/vanillajs-sdk\nor\nyarn add @this-is-not-a-drill/vanillajs-sdk\n```\n\n2. Then, in your application, import and configure `TINAD`:\n\n``` javascript\nimport {\n  configureTinad,\n  generateDefaultConfiguration,\n  getCurrentConfiguration,\n  SDKConfiguration\n} from '@this-is-not-a-drill/vanillajs-sdk';\n\n// Generate some sensible default TINAD configuration values.\nconst newConfig = generateDefaultConfiguration();\n// See 'environment.ts' in this directory.\nnewConfig.api.endpoint = environment.API_ENDPOINT;\n// see 'environment.ts' in this directory.\nnewConfig.api.key = environment.API_KEY;\n// Set this to whatever notification display mode you prefer:\n// toast, modal, banner, inline.\nnewConfig.api.displayMode = 'toast';\n\n// Lastly, tell TINAD to start (or restart) with your configuration.\nconfigureTinad(newConfig);\n```\n\nAfter this, you can always call `configureTinad({\u003cnew\nconfiguration\u003e})` to make `TINAD` operate in a new way (e.g. inline\nnotifications on certain pages).\n\nYou can read more in our \u003ca\nhref=\"https://docs.this-is-not-a-drill.com\"\u003edocumentation.\u003c/a\u003e\n\nLooking for a tighter integration with React? Take a look at our \u003ca href=\"https://github.com/willkessler/this-is-not-a-drill-react-example\"\u003eReact SDK.\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillkessler%2Fthis-is-not-a-drill-basic-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillkessler%2Fthis-is-not-a-drill-basic-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillkessler%2Fthis-is-not-a-drill-basic-example/lists"}