{"id":26090561,"url":"https://github.com/bur4kbey/express-superjson","last_synced_at":"2026-06-10T07:31:10.254Z","repository":{"id":281198939,"uuid":"944535573","full_name":"BUR4KBEY/express-superjson","owner":"BUR4KBEY","description":"Express middleware for Superjson integration, providing enhanced JSON serialization in HTTP responses.","archived":false,"fork":false,"pushed_at":"2025-03-07T14:55:45.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T14:58:00.418Z","etag":null,"topics":["express","middleware","superjson"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/express-superjson","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/BUR4KBEY.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":"2025-03-07T14:17:23.000Z","updated_at":"2025-03-07T14:54:09.000Z","dependencies_parsed_at":"2025-03-07T14:58:02.361Z","dependency_job_id":"cc03f488-0157-43c6-bdd0-77464228b561","html_url":"https://github.com/BUR4KBEY/express-superjson","commit_stats":null,"previous_names":["bur4kbey/express-superjson"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fexpress-superjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fexpress-superjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fexpress-superjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUR4KBEY%2Fexpress-superjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BUR4KBEY","download_url":"https://codeload.github.com/BUR4KBEY/express-superjson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242673793,"owners_count":20167294,"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":["express","middleware","superjson"],"created_at":"2025-03-09T09:34:37.417Z","updated_at":"2026-06-10T07:31:10.184Z","avatar_url":"https://github.com/BUR4KBEY.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM Version](https://img.shields.io/npm/v/express-superjson?style=for-the-badge\u0026logo=npm\u0026color=blue\u0026cacheSeconds=3600)](https://npmjs.com/package/express-superjson)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/bur4kbey/express-superjson/test.yml?style=for-the-badge\u0026label=tests\u0026cacheSeconds=3600)](https://github.com/BUR4KBEY/express-superjson/actions/workflows/test.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/bur4kbey/express-superjson?style=for-the-badge\u0026cacheSeconds=3600)](https://app.codecov.io/gh/BUR4KBEY/express-superjson)\n[![GitHub License](https://img.shields.io/github/license/bur4kbey/express-superjson?style=for-the-badge)](https://github.com/BUR4KBEY/express-superjson/blob/main/LICENSE)\n[![GitHub Repo stars](https://img.shields.io/github/stars/bur4kbey/express-superjson?style=for-the-badge\u0026label=%E2%AD%90%20STARS\u0026color=yellow\u0026cacheSeconds=3600)](https://github.com/BUR4KBEY/express-superjson)\n\n# 🔄 [express-superjson](https://npmjs.com/package/express-superjson)\n\nExpress middleware that seamlessly integrates [Superjson](https://github.com/blitz-js/superjson) into your Express.js applications, enabling automatic handling of JavaScript built-in types in HTTP responses.\n\n## 🚀 Installation\n\nInstall the package using your preferred package manager. Here's an example using `pnpm`:\n\n```bash\npnpm add superjson express-superjson\n```\n\n## 📝 Example Usage\n\n```ts\nimport express from 'express';\nimport superjsonMiddleware from 'express-superjson';\n\nconst app = express();\n\napp.use(express.json());\n\n// This middleware must be registered after `express.json()` middleware.\napp.use(superjsonMiddleware());\n\napp.get('/', (req, res) =\u003e {\n  res.json({ date: new Date() });\n});\n\napp.listen(3000, () =\u003e console.log('Application is running on port 3000.'));\n```\n\nSend a **GET** request to `http://localhost:3000` and you'll receive a **Superjson** response like below:\n\n```\n{\n  \"json\": {\n    \"date\": \"2023-01-01T00:00:00.000Z\"\n  },\n  \"meta\": {\n    \"values\": {\n      \"date\": [\"Date\"]\n    }\n  }\n}\n```\n\n## 🧪 Code Coverage and Tests\n\nTests are crucial for ensuring that the library functions as expected. You can review the code coverage reports by visiting [**Codecov**](https://app.codecov.io/gh/BUR4KBEY/express-superjson). The primary objective is to achieve complete coverage of the entire codebase through rigorous testing.\n\n## ☕ Support\n\nIf you find this project useful and would like to support [me](https://github.com/BUR4KBEY), you can do so by visiting [my website](https://burakbey.dev).\n\n\u003ca href=\"https://burakbey.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://burakbey.dev/github_support_snippet.png\" style=\"height: 56px !important;width: 200px !important;\" alt=\"Buy me a coffee\"\u003e\u003c/img\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbur4kbey%2Fexpress-superjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbur4kbey%2Fexpress-superjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbur4kbey%2Fexpress-superjson/lists"}