{"id":17772938,"url":"https://github.com/radames/youtube-demonetized-words-study","last_synced_at":"2026-01-27T20:39:57.075Z","repository":{"id":44206395,"uuid":"226039226","full_name":"radames/Youtube-Demonetized-Words-Study","owner":"radames","description":"Observable notebook import example on Nuxt.js / Vue.js application, generated as static page on github pages","archived":false,"fork":false,"pushed_at":"2022-02-11T02:21:32.000Z","size":1230,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T04:40:08.894Z","etag":null,"topics":["data-visualization","gh-pages","nuxtjs","observable-notebook","observablehq","static-site","static-site-generator","vuejs"],"latest_commit_sha":null,"homepage":"http://radames.github.io/Youtube-Demonetized-Words-Study/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radames.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-05T07:11:24.000Z","updated_at":"2023-03-08T23:02:13.000Z","dependencies_parsed_at":"2022-08-20T07:20:57.238Z","dependency_job_id":null,"html_url":"https://github.com/radames/Youtube-Demonetized-Words-Study","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radames%2FYoutube-Demonetized-Words-Study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radames%2FYoutube-Demonetized-Words-Study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radames%2FYoutube-Demonetized-Words-Study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radames%2FYoutube-Demonetized-Words-Study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radames","download_url":"https://codeload.github.com/radames/Youtube-Demonetized-Words-Study/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648975,"owners_count":20972945,"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":["data-visualization","gh-pages","nuxtjs","observable-notebook","observablehq","static-site","static-site-generator","vuejs"],"created_at":"2024-10-26T21:41:40.773Z","updated_at":"2026-01-27T20:39:52.048Z","avatar_url":"https://github.com/radames.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Youtube-Demonetized-Words-Study\n\nThis is an example of embeding an [Observable notebook](https://observablehq.com/@radames/youtube-demonetized-words-similarity-study) into a static [vuejs](https://vuejs.org/)/[nuxtjs](https://nuxtjs.org/) page.\n\nThe main trick here is to transpile the notebook ES module during build time. You have to edit you  `nuxt.config.js` and add the following\n\n```js\n  build: {\n    transpile: ['@radames/youtube-demonetized-words-similarity-study'],\n    extend(config, ctx) {\n      config.module.rules.push({\n        test: /\\.js$/,\n        loader: require.resolve('@open-wc/webpack-import-meta-loader')\n      })\n    }\n  }\n```\n\nDon't forget you have to install your notebook and a custom webpack meta loader and observable runtime\n```\nnpm install @observablehq/runtime\nnpm install @open-wc/webpack-import-meta-loader\nnpm install \"https://api.observablehq.com/@radames/youtube-demonetized-words-similarity-study.tgz?v=3\"\n```\n## Build Setup\n\n``` bash\n# install dependencies\n$ npm run install\n\n# serve with hot reload at localhost:3000\n$ npm run dev\n\n# build for production and launch server\n$ npm run build\n$ npm run start\n\n# generate static project\n$ npm run generate\n```\n\n## Initial setup up for gh-pages worktree branch\n\n```\n\nCheckout\n\n$ git checkout --orphan gh-pages\n$ git reset --hard\n$ git commit --allow-empty -m \"Init\"\n$ git checkout master\n\nMake your worktree to your deploy folder\n\n$ rm -rf _site\n$ git worktree add _site gh-pages\n\n```\n\n## Deploy\n\n``` \n$ npm run gh-pages\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradames%2Fyoutube-demonetized-words-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradames%2Fyoutube-demonetized-words-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradames%2Fyoutube-demonetized-words-study/lists"}