{"id":14956233,"url":"https://github.com/alexbakers/ghost-ipfs","last_synced_at":"2025-10-01T17:31:13.674Z","repository":{"id":65088363,"uuid":"581684487","full_name":"alexbakers/ghost-ipfs","owner":"alexbakers","description":"IPFS storage adapter for 👻 Ghost.","archived":false,"fork":false,"pushed_at":"2023-01-22T01:37:32.000Z","size":722,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T12:00:02.485Z","etag":null,"topics":["filebase","fleek","fleek-storage","ghost","ghost-cms","ipfs","ipfs-api","lighthouse","pinata","storage","web3","web3storage"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/alexbakers.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-12-24T00:07:16.000Z","updated_at":"2024-05-30T11:35:12.000Z","dependencies_parsed_at":"2023-02-12T13:48:13.418Z","dependency_job_id":null,"html_url":"https://github.com/alexbakers/ghost-ipfs","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/alexbakers%2Fghost-ipfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbakers%2Fghost-ipfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbakers%2Fghost-ipfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbakers%2Fghost-ipfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexbakers","download_url":"https://codeload.github.com/alexbakers/ghost-ipfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234883233,"owners_count":18901366,"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":["filebase","fleek","fleek-storage","ghost","ghost-cms","ipfs","ipfs-api","lighthouse","pinata","storage","web3","web3storage"],"created_at":"2024-09-24T13:12:34.558Z","updated_at":"2025-10-01T17:31:08.322Z","avatar_url":"https://github.com/alexbakers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ghost IPFS Storage Adapter\n\n\u003cimg alt=\"ghost-ipfs\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/banner.png\" /\u003e\n\n[IPFS](https://ipfs.tech) (Filebase, Pinata, Fleek, Web3, Lighthouse) storage adapter for [Ghost](https://github.com/TryGhost/Ghost).\n\n## Installation\n\n### Install using yarn/npm/git\n\n- Go into Ghost root directory\n- Download the adapter:\n\n```bash\n# using yarn\nyarn add ghost-ipfs\n\n# or using npm\nnpm install ghost-ipfs --save\n\n# create dir\nmkdir -p content/adapters/storage\n\n# move\nmv node_modules/ghost-ipfs content/adapters/storage/ghost-ipfs\n\n# or using git\ngit clone \\\n    https://github.com/alexbakers/ghost-ipfs \\\n    content/adapters/storage/ghost-ipfs\n```\n\n- Done, go configure\n\n### Install on Docker\n\nHere's an example of using this adapter with a containerized Ghost:\n\n```Dockerfile\nFROM ghost:5-alpine as ipfs\nRUN apk add g++ make python3\nRUN su-exec node yarn add ghost-ipfs\n\nFROM ghost:5-alpine\nCOPY --chown=node:node --from=ipfs $GHOST_INSTALL/node_modules $GHOST_INSTALL/node_modules\nCOPY --chown=node:node --from=ipfs $GHOST_INSTALL/node_modules/ghost-ipfs $GHOST_INSTALL/content/adapters/storage/ghost-ipfs\n\n# Here, we use the Ghost CLI to set some pre-defined values.\nRUN set -ex; \\\n    su-exec node ghost config storage.active ghost-ipfs; \\\n    su-exec node ghost config storage.ghost-ipfs.defaultStorage \"filebase\"; \\\n\n    # https://console.filebase.com/keys\n    su-exec node ghost config storage.ghost-ipfs.filebase.key \"FILEBASE_KEY\"; \\\n    su-exec node ghost config storage.ghost-ipfs.filebase.secret \"FILEBASE_SECRET\"; \\\n    su-exec node ghost config storage.ghost-ipfs.filebase.bucket \"FILEBASE_BUCKET\"; \\\n\n    # https://app.pinata.cloud/keys\n    su-exec node ghost config storage.ghost-ipfs.pinata.jwt \"PINATA_JWT\"; \\\n\n    # https://app.fleek.co/#/settings/general/profile\n    su-exec node ghost config storage.ghost-ipfs.fleek.key \"FLEEK_KEY\"; \\\n    su-exec node ghost config storage.ghost-ipfs.fleek.secret \"FLEEK_SECRET\"; \\\n    su-exec node ghost config storage.ghost-ipfs.fleek.bucket \"FLEEK_BUCKET\"; \\\n\n    # https://web3.storage/tokens/\n    su-exec node ghost config storage.ghost-ipfs.web3.token \"WEB3_TOKEN\";\n\n    # https://files.lighthouse.storage/dashboard/apikey\n    su-exec node ghost config storage.ghost-ipfs.lighthouse.token \"LIGHTHOUSE_TOKEN\";\n```\n\nMake sure to set the content path right in the Ghost config as well:\n\n```json\n\"paths\": {\n    \"contentPath\": \"/var/lib/ghost/content/\"\n}\n```\n\n## Configuration\n\n- tokens/keys on `./config.production.json`\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"filebase\",\n      \"filebase\": {\n        \"key\": \"FILEBASE_KEY\",\n        \"secret\": \"FILEBASE_SECRET\",\n        \"bucket\": \"FILEBASE_BUCKET\"\n      },\n      \"pinata\": {\n        \"jwt\": \"PINATA_JWT\"\n      },\n      \"fleek\": {\n        \"key\": \"FLEEK_KEY\",\n        \"secret\": \"FLEEK_SECRET\",\n        \"bucket\": \"FLEEK_BUCKET\"\n      },\n      \"web3\": {\n        \"token\": \"WEB3_TOKEN\"\n      },\n      \"lighthouse\": {\n        \"token\": \"LIGHTHOUSE_TOKEN\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n- or tokens/keys on `.env`\n\n```bash\nFILEBASE_KEY=\"\"\nFILEBASE_SECRET=\"\"\nFILEBASE_BUCKET=\"\"\n\nPINATA_JWT=\"\"\n\nFLEEK_KEY=\"\"\nFLEEK_SECRET=\"\"\nFLEEK_BUCKET=\"\"\n\nWEB3_TOKEN=\"\"\n\nLIGHTHOUSE_TOKEN=\"\"\n```\n\n`./config.production.json`\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"filebase\"\n    }\n  }\n  // ...\n}\n```\n\n## Configuration Ghost + Filebase\n\n\u003cimg alt=\"Configuration Ghost + Filebase\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/filebase.png\" /\u003e\n\n| Variable | Type   | Description            | Required |\n| -------- | ------ | ---------------------- | -------- |\n| key      | string | Filebase access key    | yes      |\n| secret   | string | Filebase access secret | yes      |\n| bucket   | string | Filebase bucket name   | yes      |\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"filebase\",\n      \"filebase\": {\n        \"key\": \"FILEBASE_KEY\",\n        \"secret\": \"FILEBASE_SECRET\",\n        \"bucket\": \"FILEBASE_BUCKET\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n## Configuration Ghost + Pinata\n\n\u003cimg alt=\"Configuration Ghost + Pinata\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/pinata.png\" /\u003e\n\n| Variable | Type   | Description                      | Required |\n| -------- | ------ | -------------------------------- | -------- |\n| jwt      | string | Pinata JWT (Secret access token) | yes      |\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"pinata\",\n      \"pinata\": {\n        \"jwt\": \"PINATA_JWT\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n## Configuration Ghost + Fleek\n\n\u003cimg alt=\"Configuration Ghost + Fleek\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/fleek.png\" /\u003e\n\n| Variable | Type   | Description                            | Required |\n| -------- | ------ | -------------------------------------- | -------- |\n| key      | string | Fleek Storage API key                  | yes      |\n| secret   | string | Fleek Storage API secret               | yes      |\n| bucket   | string | Fleek bucket name (e.g. 71a...-bucket) | yes      |\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"fleek\",\n      \"fleek\": {\n        \"key\": \"FLEEK_KEY\",\n        \"secret\": \"FLEEK_SECRET\",\n        \"bucket\": \"FLEEK_BUCKET\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n## Configuration Ghost + Web3\n\n\u003cimg alt=\"Configuration Ghost + Web3\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/web3.png\" /\u003e\n\n| Variable | Type   | Description            | Required |\n| -------- | ------ | ---------------------- | -------- |\n| token    | string | Web3 Storage API Token | yes      |\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"web3\",\n      \"web3\": {\n        \"token\": \"WEB3_TOKEN\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n## Configuration Ghost + Lighthouse\n\n\u003cimg alt=\"Configuration Ghost + Lighthouse\" src=\"https://raw.githubusercontent.com/alexbakers/ghost-ipfs/main/public/lighthouse.png\" /\u003e\n\n| Variable | Type   | Description                 | Required |\n| -------- | ------ | --------------------------- | -------- |\n| token    | string | Lghthouse Storage API Token | yes      |\n\n```json\n{\n  // ...\n  \"storage\": {\n    \"active\": \"ghost-ipfs\",\n    \"ghost-ipfs\": {\n      \"defaultStorage\": \"lighthouse\",\n      \"lighthouse\": {\n        \"token\": \"LIGHTHOUSE_TOKEN\"\n      }\n    }\n  }\n  // ...\n}\n```\n\n## Links\n\n- [Ghost website](https://ghost.org/)\n- [IPFS website](https://ipfs.tech/)\n- [Filebase website](https://filebase.com/)\n- [Pinata website](https://pinata.cloud/)\n- [Fleek website](https://fleek.co/)\n- [Web3 website](https://web3.storage/)\n- [Lighthouse website](https://lighthouse.storage/)\n\n---\n\n`(c)` Alex Baker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexbakers%2Fghost-ipfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexbakers%2Fghost-ipfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexbakers%2Fghost-ipfs/lists"}