{"id":18735674,"url":"https://github.com/rdmurphy/spring-board-element","last_synced_at":"2025-04-12T19:21:06.887Z","repository":{"id":41376872,"uuid":"509335341","full_name":"rdmurphy/spring-board-element","owner":"rdmurphy","description":"A custom element that aims to make it easier to embed Spring '83 boards","archived":false,"fork":false,"pushed_at":"2022-07-15T03:41:28.000Z","size":34,"stargazers_count":14,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T13:38:21.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rdmurphy.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":"2022-07-01T05:47:22.000Z","updated_at":"2023-08-10T13:41:27.000Z","dependencies_parsed_at":"2022-08-31T03:20:42.272Z","dependency_job_id":null,"html_url":"https://github.com/rdmurphy/spring-board-element","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmurphy%2Fspring-board-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmurphy%2Fspring-board-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmurphy%2Fspring-board-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmurphy%2Fspring-board-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdmurphy","download_url":"https://codeload.github.com/rdmurphy/spring-board-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618686,"owners_count":21134282,"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-11-07T15:17:42.144Z","updated_at":"2025-04-12T19:21:06.856Z","avatar_url":"https://github.com/rdmurphy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cspring-board\u003e` element\n\nA custom element that makes it simple to embed [Spring '83 boards](https://github.com/robinsloan/spring-83)!\n\n## Usage\n\nIf you are using `\u003cspring-board\u003e` in a client-side framework you'll likely want to install it via [npm](https://www.npmjs.com/), [Yarn](https://yarnpkg.com/) or [pnpm](https://pnpm.js.org/).\n\n```sh\nnpm install spring-board-element\n# or\nyarn add spring-board-element\n# or\npnpm install spring-board-element\n```\n\nThen in your bundle, import the element:\n\n```js\nimport 'spring-board-element';\n```\n\nHowever, a simple `\u003cscript\u003e` tag will also work! A UMD build is available via [unpkg.com](https://unpkg.com/) or any other CDN.\n\n```html\n\u003chead\u003e\n\t\u003c!-- Import the element --\u003e\n\t\u003cscript type=\"module\" src=\"https://unpkg.com/spring-board-element\"\u003e\u003c/script\u003e\n\t\u003c!-- ... the rest of your \u003chead\u003e --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\u003cspring-board href=\"https://bogbody.biz/...\"\u003e\u003c/spring-board\u003e\n\u003c/body\u003e\n```\n\n## Attributes\n\n`\u003cspring-board\u003e` has one optional attribute:\n\n- `href`: The URL of the board to embed. When this is changed a new board will be loaded.\n\n## Properties\n\n`\u003cspring-board\u003e` has three properties:\n\n- `href`: The URL of the board to embed. Used to get or set the board URL.\n- `loaded`: A pending `Promise` that resolves when the board has loaded. Each time the `href` property is changed the `loaded` property will reference a new `Promise`.\n- `pubdate`: A `Date` object representing the date and time the board was published. This is retrieved from the board's `\u003ctime\u003e` element. Returns `null` if the board has not been loaded.\n\n```js\nconst board = document.querySelector('spring-board');\n\nboard.href = 'https://bogbody.biz/1...';\nboard.loaded.then(() =\u003e {\n\t// board has loaded\n});\n\nboard.href = 'https://bogbody.biz/2...';\nboard.loaded.then(() =\u003e {\n\t// new board has loaded\n});\n```\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdmurphy%2Fspring-board-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdmurphy%2Fspring-board-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdmurphy%2Fspring-board-element/lists"}