{"id":19504741,"url":"https://github.com/nice-digital/bnf-gatsby","last_synced_at":"2026-03-13T18:37:10.539Z","repository":{"id":37420256,"uuid":"435941136","full_name":"nice-digital/bnf-gatsby","owner":"nice-digital","description":"Website for NICE British National Formulary (BNF) and British National Formulary for Children (BNFC). Built with Gatsby and using the NICE Design System","archived":false,"fork":false,"pushed_at":"2025-09-26T08:30:27.000Z","size":4540,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-26T09:31:53.166Z","etag":null,"topics":["bnf","bnfc","gatsby","gatsby-site","gatsbyjs"],"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/nice-digital.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-07T15:54:12.000Z","updated_at":"2025-09-26T07:53:34.000Z","dependencies_parsed_at":"2023-11-06T12:30:00.952Z","dependency_job_id":"ffbfa697-016f-4118-8a53-a96c74ff3c70","html_url":"https://github.com/nice-digital/bnf-gatsby","commit_stats":null,"previous_names":[],"tags_count":239,"template":false,"template_full_name":null,"purl":"pkg:github/nice-digital/bnf-gatsby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fbnf-gatsby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fbnf-gatsby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fbnf-gatsby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fbnf-gatsby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nice-digital","download_url":"https://codeload.github.com/nice-digital/bnf-gatsby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-digital%2Fbnf-gatsby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956386,"owners_count":26075238,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bnf","bnfc","gatsby","gatsby-site","gatsbyjs"],"created_at":"2024-11-10T22:26:59.357Z","updated_at":"2025-10-08T14:17:45.121Z","avatar_url":"https://github.com/nice-digital.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BNF and BNFC\n\n\u003e Website for NICE British National Formulary (BNF) and British National Formulary for Children (BNFC) built with Gatsby and using the NICE Design System\n\n[**:rocket: Jump straight to getting started**](#rocket-set-up)\n\n## What is it?\n\nThe BNF, or British National Formulary, provides guidance to health practitioners on prescribing, dispensing and administering medicines.\n\nIt's a microsite, updated once a month from a feed. It's built with Gatsby, a React-based static site generator, and is styled using components from the NICE Design System.\n\nThis project produces website for both the BNF (standard formulary) and BNFc (the version for children).\n\n## Project structure\n\n| Folder                                      | Purpose                                       |\n| ------------------------------------------- | --------------------------------------------- |\n| [gatsby](gatsby#readme)                     | Static site built with React and Gatsby       |\n| [functional-tests](functional-tests#readme) | Browser-based functional tests in WebdriverIO |\n\n\u003e Note: Each of these folders has its own readme with detailed setup steps etc\n\n## Stack\n\nThis is the high level stack. Each of the sub-projects (gatsby/functional-tests) has its own readme with more detailed stack.\n\n### Software\n\n- [VS Code IDE](https://code.visualstudio.com/)\n  - With recommended extensions (VS Code will prompt you to install these automatically)\n- [Gatsby v4](https://www.gatsbyjs.org/) and [React](https://reactjs.org/) for static site generation\n- [WebdriverIO v7](https://webdriver.io/) for browser-based functional tests\n- [NICE Design System](https://design-system.nice.org.uk/)\n\n## :rocket: Set up\n\nThe easiest way to get the project running is:\n\n1. Use [Volta](https://volta.sh/) to automatically use the correct version of Node pinned in package.json; or install the correct version of Node manually if you're not using Volta\n2. Clone this repository\n3. Open the root of the repository in VS Code\n   1. Install recommended extensions when prompted\n4. Install dependencies:\n   1. Run `npm ci` in each folder with a package.json manually.\n5. Go to the 'Run and Debug' panel (_Ctrl+Shift+D_) in VS Code\n6. Run `LAUNCH BNF/BNFC`\n\nLaunching the app via `LAUNCH BNF/BNFC` runs the Gatsby site in dev mode on \u003chttp://localhost:8000/\u003e, and launches it in Chrome for debugging once it's built and running.\n\n\u003e Note: there are more granular ways to run each part of the project, either via an IDE or via the command line. See each sub-folders's readme for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-digital%2Fbnf-gatsby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnice-digital%2Fbnf-gatsby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-digital%2Fbnf-gatsby/lists"}