{"id":13741302,"url":"https://github.com/larzconwell/flash","last_synced_at":"2025-06-26T02:04:53.970Z","repository":{"id":226022003,"uuid":"767535806","full_name":"larzconwell/flash","owner":"larzconwell","description":"Flash is a Gleam package enabling structured logging in both Erlang and JavaScript environments","archived":false,"fork":false,"pushed_at":"2025-02-14T13:14:35.000Z","size":23,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T02:22:54.857Z","etag":null,"topics":["gleam","logging"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/flash","language":"Gleam","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/larzconwell.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-05T13:23:30.000Z","updated_at":"2025-03-29T13:07:27.000Z","dependencies_parsed_at":"2024-03-05T15:09:24.679Z","dependency_job_id":"0d1ebeec-05e7-475b-a382-41e5549018b5","html_url":"https://github.com/larzconwell/flash","commit_stats":null,"previous_names":["larzconwell/flash","larzconwell/shine"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/larzconwell/flash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larzconwell%2Fflash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larzconwell%2Fflash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larzconwell%2Fflash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larzconwell%2Fflash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larzconwell","download_url":"https://codeload.github.com/larzconwell/flash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larzconwell%2Fflash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261984646,"owners_count":23240303,"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":["gleam","logging"],"created_at":"2024-08-03T04:00:57.653Z","updated_at":"2025-06-26T02:04:53.947Z","avatar_url":"https://github.com/larzconwell.png","language":"Gleam","funding_links":[],"categories":["Packages"],"sub_categories":["Logging and Monitoring"],"readme":"# flash\n\n[![Package Version](https://img.shields.io/hexpm/v/flash)](https://hex.pm/packages/flash)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/flash/)\n[![License](https://img.shields.io/badge/License-BSD_2--Clause_+_Patent-blue.svg)](https://github.com/larzconwell/flash/blob/main/LICENSE)\n[![Test](https://github.com/larzconwell/flash/actions/workflows/test.yml/badge.svg)](https://github.com/larzconwell/flash/actions)\n\n`flash` is a Gleam package enabling structured logging in both Erlang and JavaScript environments.\n\n## Usage\n\n```\ngleam add flash\n```\n\nWith the default text writer output:\n```gleam\nimport flash.{InfoLevel, GroupAttr, StringAttr}\n\npub fn main() {\n  flash.new(InfoLevel, flash.text_writer)\n  |\u003e flash.with_group(\"request\")\n  |\u003e flash.with_attrs([\n    StringAttr(\"method\", \"POST\"),\n    StringAttr(\"path\", \"/user/create\"),\n    StringAttr(\"id\", \"foobar\"),\n  ])\n  |\u003e flash.info(\"request\")\n}\n```\n\n```\n21:24:12 INFO  request                                       request.id=foobar request.method=POST request.path=/user/create\n```\n\nWith the default json writer output:\n```gleam\nimport flash.{InfoLevel, GroupAttr, StringAttr}\n\npub fn main() {\n  flash.new(InfoLevel, flash.json_writer)\n  |\u003e flash.with_group(\"request\")\n  |\u003e flash.with_attrs([\n    StringAttr(\"method\", \"POST\"),\n    StringAttr(\"path\", \"/user/create\"),\n    StringAttr(\"id\", \"foobar\"),\n  ])\n  |\u003e flash.info(\"request\")\n}\n```\n\n```\n{\"level\":\"info\",\"time\":\"2024-03-12T21:25:03.022-04:00\",\"message\":\"request\",\"request\":{\"id\":\"foobar\",\"method\":\"POST\",\"path\":\"/user/create\"}}\n```\n\n## Developing\n\n```shell\nln -s $(pwd)/.hooks/pre-commit .git/hooks/pre-commit\ngleam format\ngleam build\ngleam test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarzconwell%2Fflash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarzconwell%2Fflash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarzconwell%2Fflash/lists"}