{"id":19602710,"url":"https://github.com/qiwi/flp-njs","last_synced_at":"2026-06-12T12:31:25.915Z","repository":{"id":49729303,"uuid":"362822592","full_name":"qiwi/flp-njs","owner":"qiwi","description":"Nginx-based (njs) backend for front-log-proxy","archived":false,"fork":false,"pushed_at":"2021-06-10T07:57:26.000Z","size":224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-04-21T12:48:11.310Z","etag":null,"topics":["flp","monitoring"],"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/qiwi.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":"2021-04-29T13:13:47.000Z","updated_at":"2022-04-09T18:47:53.000Z","dependencies_parsed_at":"2022-08-28T02:24:21.475Z","dependency_job_id":null,"html_url":"https://github.com/qiwi/flp-njs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qiwi/flp-njs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwi%2Fflp-njs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwi%2Fflp-njs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwi%2Fflp-njs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwi%2Fflp-njs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qiwi","download_url":"https://codeload.github.com/qiwi/flp-njs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwi%2Fflp-njs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34245217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["flp","monitoring"],"created_at":"2024-11-11T09:25:59.406Z","updated_at":"2026-06-12T12:31:25.892Z","avatar_url":"https://github.com/qiwi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flp-njs\nDocker-contained nginx-based ([njs](http://nginx.org/en/docs/njs/index.html)) backend for [event-transmitter](https://github.com/qiwi/event-transmitter).\nPrints all logged events to stdout.  \n\n## Usage\n```bash\ndocker pull docker.pkg.github.com/qiwi/flp-njs/flp-njs:latest\ndocker run -p 8080:8080 -p 8081:8081 flp-njs\n```\n\n## REST API\n### POST /event\nLog event to stdout. Be careful with personal data!\n```shell\ncurl -X POST \\\n  http://localhost:8080/event \\\n  -H 'Content-Type: application/json' \\\n  -d '{ \\\n  \"message\": \"test-string\", \\\n  \"tags\": [ \\\n    \"test-string\" \\\n  ], \\\n  \"code\": \"test-string\", \\\n  \"level\": \"error\", \\\n  \"meta\": { \\\n    \"appName\": \"test-string\", \\\n    \"appHost\": \"test-string\", \\\n    \"appVersion\": \"test-string\", \\\n    \"appNamespace\": \"test-string\", \\\n    \"appConfig\": {}, \\\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36\", \\\n    \"envProfile\": \"ci\" \\\n  }, \\\n  \"timestamp\": \"2020-09-12T13:28:37.157Z\", \\\n  \"details\": {} \\\n}'\n```\nReturns plain text `roger that`.\n### POST /event-batch\nLog batch of events to stdout. Be careful with personal data!\n```shell\ncurl -X POST \\\n  http://localhost:8080/event-batch \\\n  -H 'Content-Type: application/json' \\\n  -H 'cache-control: no-cache' \\\n  -d '{ \\\n  \"events\": [ \\\n    {\n      \"message\": \"test-string\", \\\n      \"tags\": [ \\\n        \"test-string\" \\\n      ], \\\n      \"code\": \"test-string\", \\\n      \"level\": \"error\", \\\n      \"meta\": { \\\n        \"appName\": \"test-string\", \\\n        \"appHost\": \"test-string\", \\\n        \"appVersion\": \"test-string\", \\\n        \"appNamespace\": \"test-string\", \\\n        \"appConfig\": {}, \\\n        \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36\", \\\n        \"envProfile\": \"ci\" \\\n      }, \\\n      \"timestamp\": \"2020-09-12T13:28:37.157Z\", \\\n      \"details\": {} \\\n    } \\\n  ] \\\n}'\n```\nReturns plain text `roger that`.\n### GET /health, /healthcheck\nCheck application status\n```shell\ncurl http://localhost:8080/healthcheck\n```\nReturns json:\n```json\n{\n    \"result\": {\n        \"status\": \"UP\"\n    }\n}\n```\n### GET :8081/buildstamp\nGet application build info\n```shell\ncurl http://localhost:8081/buildstamp\n```\nReturns json:\n```json\n{\n    \"git\": {\n        \"commitId\": \"6d39d85a344501acba2b428e1441f277c87637f8\",\n        \"repoUrl\": \"https://github.com/qiwi/flp-njs.git\",\n        \"repoName\": \"qiwi/flp-njs\"\n    },\n    \"date\": \"2021-04-30T11:32:04.437Z\"\n}\n```\n## Development \u0026 local usage\n| Cmd | Description |\n|---|---|\n| `yarn` | Fetch deps |\n| `yarn build` | Build njs, nginx *.conf and dcr container\n| `yarn build:local` | As prev, but adds `local/flp-njs` image tag\n| `yarn test` | Run linter \u0026 unit tests\n| `yarn test:integration` | Test `local/flp-njs` image\n| `yarn start:b` | Build and run app container |\n| `yarn start` | Run container |\n| `yarn stop` | Shut down container |\n\n## License\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiwi%2Fflp-njs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiwi%2Fflp-njs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiwi%2Fflp-njs/lists"}