{"id":15611511,"url":"https://github.com/patrickvaler/stencil-chuck-norris-jokes","last_synced_at":"2025-10-08T11:44:50.211Z","repository":{"id":55800935,"uuid":"131570233","full_name":"patrickvaler/stencil-chuck-norris-jokes","owner":"patrickvaler","description":"Web Component to display random Chuck Norris Jokes","archived":false,"fork":false,"pushed_at":"2020-06-02T00:07:18.000Z","size":7505,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T13:12:59.173Z","etag":null,"topics":["stencil","stenciljs","web-component","web-components","webcomponent","webcomponents"],"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/patrickvaler.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":"2018-04-30T08:03:22.000Z","updated_at":"2022-08-10T06:55:15.000Z","dependencies_parsed_at":"2022-08-15T07:10:27.203Z","dependency_job_id":null,"html_url":"https://github.com/patrickvaler/stencil-chuck-norris-jokes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickvaler%2Fstencil-chuck-norris-jokes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickvaler%2Fstencil-chuck-norris-jokes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickvaler%2Fstencil-chuck-norris-jokes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickvaler%2Fstencil-chuck-norris-jokes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickvaler","download_url":"https://codeload.github.com/patrickvaler/stencil-chuck-norris-jokes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311332,"owners_count":21569009,"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":["stencil","stenciljs","web-component","web-components","webcomponent","webcomponents"],"created_at":"2024-10-03T06:05:06.518Z","updated_at":"2025-10-08T11:44:45.182Z","avatar_url":"https://github.com/patrickvaler.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chuck-norris-jokes Web Component\n\n[![npm version](https://badge.fury.io/js/stencil-chuck-norris-jokes.svg)](http://badge.fury.io/js/stencil-chuck-norris-jokes) [![Build Status](https://travis-ci.org/patrickvaler/stencil-chuck-norris-jokes.svg?branch=master)](https://travis-ci.org/patrickvaler/stencil-chuck-norris-jokes) [![Dependency Status](https://david-dm.org/patrickvaler/stencil-chuck-norris-jokes/status.svg?style=flat)](https://david-dm.org/patrickvaler/stencil-chuck-norris-jokes)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Greenkeeper badge](https://badges.greenkeeper.io/patrickvaler/stencil-chuck-norris-jokes.svg)](https://greenkeeper.io/)\n![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\nThis is a basic chuck-norris-jokes Web Component to display random Chuck Norris jokes created with [StencilJS]. This Web Component uses the [Chuck Norris API] to fetch randomly Chuck Norris jokes.\n\nCheckout the [Demo] / [Demo with Editor].\n\n![Component Demo](component_demo.gif)\n\n## Getting Started\n\n**Use Web Component as script tag**\n\nPut the following script tag in the head of your index.html file\n\n```\n\u003cscript src=\"https://unpkg.com/stencil-chuck-norris-jokes@latest/dist/chuck-norris-jokes.js\"\u003e\u003c/script\u003e\n```\n\n**Use Web Component with npm**\n\n```\nnpm install stencil-chuck-norris-jokes@latest --save\n```\n\n**Use Web Component in template**\n\n```\n\u003cchuck-norris-jokes firstname=\"\" lastname=\"\"\u003e\u003c/chuck-norris-jokes\u003e\n```\n\n## API\n\n**Properties**\n\n- firstname: Overwrites `Chuck` by the defined value\n- lastname: Overwrites `Norris` by the defined value\n\n## Stencil\n\nStencil is a compiler for building fast web apps using Web Components.\n\nStencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.\n\nStencil components are just Web Components, so they work in any major framework or with no framework at all.\n\n[demo]: https://stencil-chuck-norris-jokes.stackblitz.io/\n[demo with editor]: https://stackblitz.com/edit/stencil-chuck-norris-jokes?file=index.html\n[stenciljs]: https://stenciljs.com/\n[chuck norris api]: https://api.chucknorris.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickvaler%2Fstencil-chuck-norris-jokes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickvaler%2Fstencil-chuck-norris-jokes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickvaler%2Fstencil-chuck-norris-jokes/lists"}