{"id":14989294,"url":"https://github.com/inuoshios/britannia","last_synced_at":"2026-01-23T02:36:45.952Z","repository":{"id":254450381,"uuid":"846360235","full_name":"inuoshios/britannia","owner":"inuoshios","description":"geass: a simple logger for your frameworks.","archived":false,"fork":false,"pushed_at":"2024-09-29T00:21:23.000Z","size":77,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T09:30:32.529Z","etag":null,"topics":["express-middleware","expressjs","koa","logger","logging-library","middleware","request"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/inuoshios.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-08-23T03:33:28.000Z","updated_at":"2024-09-29T00:21:21.000Z","dependencies_parsed_at":"2024-10-14T01:21:39.440Z","dependency_job_id":null,"html_url":"https://github.com/inuoshios/britannia","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"7babaf2932878f2a48e2e435b30988ee9dd3b592"},"previous_names":["inuoshios/britannia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inuoshios/britannia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inuoshios%2Fbritannia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inuoshios%2Fbritannia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inuoshios%2Fbritannia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inuoshios%2Fbritannia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inuoshios","download_url":"https://codeload.github.com/inuoshios/britannia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inuoshios%2Fbritannia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28679137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"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":["express-middleware","expressjs","koa","logger","logging-library","middleware","request"],"created_at":"2024-09-24T14:18:05.688Z","updated_at":"2026-01-23T02:36:45.938Z","avatar_url":"https://github.com/inuoshios.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Britannia (Shinsei Buritania Teikoku)\n\n`britannia` is a simple logging middleware for Express.js (and any Node.js framework) that logs details of incoming HTTP requests and responses. It records the HTTP method, status code, request URL, response duration, and the date of the request.\n\n## Features\n\n- Logs HTTP method, status code, URL, response duration in milliseconds, and the current date.\n- Easy to integrate with Express.js applications, and any other Node.js framework.\n- Configurable options for future file logging support.\n\n## Installation\n\nInstall `britannia` via npm:\n\n```bash\nnpm install britannia\n```\n\n## Usage\n\n### Basic Usage\n\nTo use `britannia` middleware in your Express.js application, import it and use it as middleware:\n\n```js\nimport express from 'express';\nimport britannia from 'britannia';\n\nconst app = express();\n\n// Use the britannia middleware\napp.use(britannia());\n\napp.get('/', (req, res) =\u003e {\n  res.send('Hello, world!');\n});\n\napp.listen(3000, () =\u003e {\n  console.log('Server is running on port 3000');\n});\n\n### Configuration Options\n\nYou can pass configuration options to `britannia`:\n\nimport express from 'express';\nimport britannia from 'britannia';\n\nconst app = express();\n\n// Configuration options\nconst options = {\n  writeToFile: false, // Currently not supported, future feature\n  fileName: 'logs.txt' // Currently not supported, future feature\n};\n\n// Use the britannia middleware with options\napp.use(britannia(options));\n\napp.get('/', (req, res) =\u003e {\n  res.send('Hello, world!');\n});\n\napp.listen(3000, () =\u003e {\n  console.log('Server is running on port 3000');\n});\n```\n## Contributing\n\nIf you would like to contribute to `britannia`, please fork the repository and submit a pull request. We welcome contributions of all kinds, including bug fixes, new features, and documentation improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\nFor any questions or issues, please open an issue on the GitHub repository or contact the maintainers at [email@example.com](mailto:inuoshios@gmail.com), or you can also contact via [X (Twitter)](https://x.com/inuoshios).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finuoshios%2Fbritannia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finuoshios%2Fbritannia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finuoshios%2Fbritannia/lists"}