{"id":20319186,"url":"https://github.com/bitkris-dev/strapi-to-static","last_synced_at":"2026-04-19T02:31:59.372Z","repository":{"id":53418889,"uuid":"198315621","full_name":"bitkris-dev/strapi-to-static","owner":"bitkris-dev","description":"Fetch your strapi endpoints and save them as static JSON files","archived":false,"fork":false,"pushed_at":"2021-03-30T21:09:11.000Z","size":238,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T09:28:28.144Z","etag":null,"topics":["endpoints","json","rest","rest-api","restful-api","static","static-site-generator","strapi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitkris-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-22T23:21:42.000Z","updated_at":"2021-05-24T07:03:22.000Z","dependencies_parsed_at":"2022-08-27T19:00:41.027Z","dependency_job_id":null,"html_url":"https://github.com/bitkris-dev/strapi-to-static","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitkris-dev/strapi-to-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkris-dev%2Fstrapi-to-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkris-dev%2Fstrapi-to-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkris-dev%2Fstrapi-to-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkris-dev%2Fstrapi-to-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkris-dev","download_url":"https://codeload.github.com/bitkris-dev/strapi-to-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkris-dev%2Fstrapi-to-static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["endpoints","json","rest","rest-api","restful-api","static","static-site-generator","strapi"],"created_at":"2024-11-14T18:45:30.492Z","updated_at":"2026-04-19T02:31:59.344Z","avatar_url":"https://github.com/bitkris-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Strapi to static\n\nYou can use this little global node utility to fetch your strapi endpoints and save them as static JSON files in a dir of your choice.\n\nThe idea behind it has born while needing to embed server contents in a static-generated website. You can then make them dynamic-like triggering strapi-to-static and a re-build.\n\nIt's extremely simple and easy to use.\n\nInstall globally:\n\n```\nnpm install -g strapi-to-static\n```\n\nAccepted CLI arguments:\n\n| name         | type   | description                                          |\n| ------------ | ------ | ---------------------------------------------------- |\n| contentTypes | array  | content types slugs to fetch from your strapi server |\n| dir          | string | define your JSON files output directory              |\n| apiURL       | string | the URL in which your strapi server runs             |\n\n\u003cbr\u003e\n\nExample of usage:\n\n```\nstrapi-to-static --contentTypes=['news'] --dir=src/data --apiURL=http://localhost:1337\n```\n\nThen you will have your endpoints exported as single JSON files in the chosen directory.\n\nThe best thing is to associate it with a custom \"scripts\" command in a project's **package.json**, so the output dir is relative to it.\n\nExample:\n\n```\n{\n  \"scripts\": {\n    \"fetch\": \"strapi-to-static --contentTypes=['news'] --dir=src/data --apiURL=http://localhost:1337\",\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkris-dev%2Fstrapi-to-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkris-dev%2Fstrapi-to-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkris-dev%2Fstrapi-to-static/lists"}