{"id":22422223,"url":"https://github.com/rytsh/indigo","last_synced_at":"2025-08-01T06:31:07.847Z","repository":{"id":64302385,"uuid":"256053039","full_name":"rytsh/indigo","owner":"rytsh","description":"dynamic json and file server","archived":false,"fork":false,"pushed_at":"2021-02-17T17:08:36.000Z","size":387,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:20:54.639Z","etag":null,"topics":["golang","indigo","inner","json","json-api","serve-files","server","spa"],"latest_commit_sha":null,"homepage":"https://rytsh.github.io/indigo/","language":"Go","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/rytsh.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":"2020-04-15T22:41:05.000Z","updated_at":"2024-06-20T08:20:54.640Z","dependencies_parsed_at":"2023-01-15T09:45:41.492Z","dependency_job_id":null,"html_url":"https://github.com/rytsh/indigo","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rytsh%2Findigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rytsh%2Findigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rytsh%2Findigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rytsh%2Findigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rytsh","download_url":"https://codeload.github.com/rytsh/indigo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228339317,"owners_count":17904513,"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":["golang","indigo","inner","json","json-api","serve-files","server","spa"],"created_at":"2024-12-05T17:12:18.739Z","updated_at":"2024-12-05T17:12:20.019Z","avatar_url":"https://github.com/rytsh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![indigo logo](doc/assets/logo.png)\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/rytsh/indigo?style=flat-square)](https://goreportcard.com/report/github.com/rytsh/indigo)\n[![License](https://img.shields.io/github/license/rytsh/indigo?color=blue\u0026style=flat-square)](https://raw.githubusercontent.com/rytsh/indigo/master/LICENSE)\n[![Discord](https://img.shields.io/discord/706631996478324898?style=flat-square)](https://discordapp.com/channels/706631996478324898)\n[![Docker](https://img.shields.io/badge/dockerHub-indigo-blue?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/ryts/indigo)\n[![Web](https://img.shields.io/badge/web-gh--pages-blueviolet?style=flat-square)](https://rytsh.github.io/indigo/)\n[![Coveralls github branch](https://img.shields.io/coveralls/github/rytsh/indigo/master?style=flat-square)](https://coveralls.io/github/rytsh/indigo?branch=master)\n![Drone (cloud)](https://img.shields.io/drone/build/rytsh/indigo?style=flat-square)\n\nServe any json file with GET, POST, PUT, PATCH or DELETE request data, even most inner object and root path.  \nServe folder with SPA, browsable support options.\n\n---\n\n## Notes\n\nIndigo hold all data in memory and case sensetive like what you see in json file.\n\nAdd an `id` field when PUT, POST, PATCH if you working on an array. indigo not put an auto-id. `id` field help us to find data in array.  \nIf same URL uses, order is UI \u003e API \u003e FILE  \nI will add more useful stuff in it and write test cases.  \nIf you see any error or wants to support something write me.\n\n## Options\n\n```txt\nindigo [OPTIONS] \u003cfile_or_URL\u003e\nGenerate RestAPI with JSON file and serve folder\n\nOptions:\n  --port, -P \u003c3000\u003e\n    Set port, tool default is '3000'\n  --host, -H \u003clocalhost\u003e\n    Set host, tool default is 'localhost'\n\n  --location \u003c./data.json\u003e\n    Change save location\n  --api-path \u003capi_url_path\u003e\n    Set API path prefix\n  --ui-path \u003cui_url_path\u003e\n    Set UI path default '/indigo'\n\n  --folder \u003c./public\u003e\n    Serve folder\n  --folder-path \u003cfolder_path\u003e\n    Set Folder path, works with folder option\n  --browsable\n    Enable folder browsable\n  --spa\n    Enable SPA mode\n  --no-index\n    Stop redirect to index\n\n  --no-api\n    Close API server, use just serve folder\n  --no-ui\n    Close UI server\n\n  --auth-basic \u003cusername:password\u003e\n    Enable basic authentication with username and password\n\n  --no-color\n    Disable color output\n\n  -v, --version\n    Show version number\n  -h, --help\n    Show help\n\n  Examples:\n    indigo --api-path api/v1 --auth-basic user:pass test/users.json\n```\n\n## Build\n\nYou can download binary form in releases.\n\nOr you can build with show PLATFORMS, each platform seperated by `,` and each arch by `-`.\n\n```shell\nPLATFORMS=\"windows:amd64,linux:arm64-amd64,darwin:amd64\" ./build.sh --build --clean\n```\n\nCheck list of platforms and archs here  \n\u003chttps://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63\u003e\n\n---\n\n## License\n\nIndigo is [MIT licensed](./LICENSE).\n\n### Libraries Used\n\n[github.com/fatih/color](https://github.com/fatih/color)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frytsh%2Findigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frytsh%2Findigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frytsh%2Findigo/lists"}