{"id":21525871,"url":"https://github.com/bkwld/json-ld-formatters","last_synced_at":"2026-05-19T17:10:44.954Z","repository":{"id":40422423,"uuid":"460684471","full_name":"BKWLD/json-ld-formatters","owner":"BKWLD","description":"A library of helper functions for creating common JSON LD schemas.","archived":false,"fork":false,"pushed_at":"2024-02-20T23:30:14.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T10:02:05.662Z","etag":null,"topics":["json-ld","nuxt"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/BKWLD.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":"2022-02-18T02:39:58.000Z","updated_at":"2022-02-18T05:31:44.000Z","dependencies_parsed_at":"2024-01-12T01:41:24.176Z","dependency_job_id":"626069d0-e69f-4454-956d-7a9f5df12630","html_url":"https://github.com/BKWLD/json-ld-formatters","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fjson-ld-formatters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fjson-ld-formatters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fjson-ld-formatters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fjson-ld-formatters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BKWLD","download_url":"https://codeload.github.com/BKWLD/json-ld-formatters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085009,"owners_count":20395523,"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":["json-ld","nuxt"],"created_at":"2024-11-24T01:38:45.949Z","updated_at":"2026-05-19T17:10:34.939Z","avatar_url":"https://github.com/BKWLD.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-ld-formatters\n\nA library of helper functions for creating common JSON LD schemas.  These are intended to be used in Nuxt.js projects.\n\n## Install\n\n```\nyarn add @bkwld/json-ld-formatters\n```\n\n## Example\n\nHere's how you would use this in a typical Cloak page component.\n\n```vue\n\u003c!-- pages/_article.vue --\u003e\n\u003cscript lang='coffee'\u003e\nimport pageMixin from '@bkwld/cloak/mixins/page'\nimport { makeJsonLdArticleTag } from '@bkwld/json-ld-formatters'\nexport default\n\n\t# Add Cloak's pageMixin to the example.  This isn't necessary, but I think\n\t# it useful to show how you would use @buildHead to mash up other meta / SEO\n\t# data with this\n\tmixins: [ pageMixin ]\n\n\t# Here's where the use the formatter\n\thead: -\u003e {\n\t\t...@buildHead\n\t\t\ttitle: @page.marqueeTitle\n\t\tscript: [ makeJsonLdArticleTag\n\t\t\ttitle: @page.marqueeTitle\n\t\t\timage: @page.image\n\t\t\tpublishedAt: new Date @page.dateCreated\n\t\t\tupdatedAt: new Date @page.dateUpdated\n\t\t\tauthor: 'Bukwild'\n\t\t]\n\t}\n\n\t# Showing an example of fetching page data\n\tasyncData: ({ app, route }) -\u003e\n\t\tpage = await app.$service.getPageData route.params.article\n\t\treturn { page }\n\n\u003c/script\u003e\n```\n\n## Formatters\n\nRead the source code for the available formatters and their expected properties.\n\n- [article](./formatters/article.coffee) - `makeJsonLdArticleTag`\n- [breadcrumbs](./formatters/breadcrumbs.coffee) - `makeJsonLdBreadcrumbsTag`\n- [faqPage](./formatters/faqPage.coffee) - `makeJsonLdFAQPageTag`\n- [organization](./formatters/organization.coffee) - `makeJsonLdOrganizationTag`\n- [product](./formatters/product.coffee) `makeJsonLdProductTag`\n- [search](./formatters/search.coffee) - `makeJsonLdSearchTag`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fjson-ld-formatters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkwld%2Fjson-ld-formatters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fjson-ld-formatters/lists"}