{"id":17235892,"url":"https://github.com/publicarray/synoedit","last_synced_at":"2025-04-14T02:08:04.380Z","repository":{"id":51256361,"uuid":"137037758","full_name":"publicarray/synoedit","owner":"publicarray","description":"Synology package for editing files through a web interface","archived":false,"fork":false,"pushed_at":"2021-07-22T12:40:01.000Z","size":320,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T02:07:58.898Z","etag":null,"topics":["file-editor","synology"],"latest_commit_sha":null,"homepage":"https://github.com/publicarray/synoedit","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/publicarray.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":"2018-06-12T08:02:04.000Z","updated_at":"2025-02-24T20:01:11.000Z","dependencies_parsed_at":"2022-09-18T06:53:54.112Z","dependency_job_id":null,"html_url":"https://github.com/publicarray/synoedit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fsynoedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fsynoedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fsynoedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fsynoedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/publicarray","download_url":"https://codeload.github.com/publicarray/synoedit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809044,"owners_count":21164896,"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":["file-editor","synology"],"created_at":"2024-10-15T05:34:54.328Z","updated_at":"2025-04-14T02:08:04.352Z","avatar_url":"https://github.com/publicarray.png","language":"Go","readme":"# Syno Edit\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/publicarray/synoedit)](https://goreportcard.com/report/github.com/publicarray/synoedit)\n[![GoDoc](https://godoc.org/github.com/publicarray/synoedit/package/src/synoedit?status.svg)](https://godoc.org/github.com/publicarray/synoedit/package/src/synoedit)\n\nSynology package for editing files through a web interface\n\n![screen shot](https://user-images.githubusercontent.com/5497998/41282074-7e3f81f6-6e76-11e8-8436-0187282b1b87.png)\n![screen shot](https://user-images.githubusercontent.com/5497998/41282242-f7290420-6e76-11e8-81da-43769de7a269.png)\n\n## Build using script\n\n```sh\ngit clone https://github.com/publicarray/synoedit \u0026\u0026 cd synoedit\n./build all # builds all available versions/architectures\n./build amd64 # alias to build amd64 architecture only for both DSM6 and DSM7 (good for development)\n./build help\nUsage:  ./build.sh command\n\nCommands:\n  compress                                        compresses compiled binary with upx\n  update                                          update dependencies with yarn or npm\n  dependencies                                    installs npm and go dependencies (yarn/npm and dep)\n  all                                             compile and package for all architectures and DSM6/7 versions\n  compile [arch]                                  compile go project: e.g. compile amd64\n  package [arch] [syno_arch] [min_dsm_version]    create spk e.g. package amd64 broadwell 6.1-14715\n  dev                                             runs '_cp', 'compile' and 'package' commands using the native platform\n  clean|clear                                     remove all *spk files\n  lint                                            lint code\n  test                                            run a simple test\n  amd64                                           alias to compile and package for amd64 only, good for quick development\n```\n\n## Build manually\n\n```sh\ngit clone https://github.com/publicarray/synoedit.git\ncd synoedit/package/src/synoedit\ngo build -ldflags=\"-s -w\" -o ../../ui/index.cgi\n# Run the binary\ngo run . -h\nenv SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET go run . -dev -config ../../ui/database.toml -layout ../../ui/layout.html\n# or\ncd ../../ui/\nenv SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET ./index.cgi --dev \u003e test.html\n```\n\n## Add package support\n\n1. Add your package to the synocommunity group\n\n    for synocommunity packages add `SPK_GROUP=synocommunity` to your `Makefile` Otherwise add it to your `privilege` file\n\n    ```json\n    {\n        \"defaults\": {\n            \"run-as\": \"package\"\n        },\n        \"groupname\": \"synocommunity\"\n    }\n    ```\n\n2. In the `postinstall` script add group read and write permissions for the files you want to add support for\n\n    ```sh\n    chmod g+rw -R \"$SYNOPKG_PKGVAR\"\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicarray%2Fsynoedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpublicarray%2Fsynoedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicarray%2Fsynoedit/lists"}