{"id":29436876,"url":"https://github.com/stone-foundation/stone-js-http-core","last_synced_at":"2026-03-13T02:33:41.429Z","repository":{"id":193952860,"uuid":"689795343","full_name":"stone-foundation/stone-js-http-core","owner":"stone-foundation","description":"HTTP abstraction layer for Stone.js, provides context-aware request and response objects for all runtimes.","archived":false,"fork":false,"pushed_at":"2025-09-14T05:06:35.000Z","size":864,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T11:30:53.040Z","etag":null,"topics":["context-aware","continuum-architecture","javascript","official-stonejs","stone-foundation","stonejs","stonejs-core","stonejs-http","typescript"],"latest_commit_sha":null,"homepage":"https://stonejs.dev","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/stone-foundation.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-10T23:09:30.000Z","updated_at":"2025-06-12T04:28:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3aad40ea-ea0f-48fe-95da-9e36c88d49c2","html_url":"https://github.com/stone-foundation/stone-js-http-core","commit_stats":null,"previous_names":["noowow-community/http","stonemjs/http","stonemjs/event-foundation","stonemjs/http-core","stone-foundation/stone-js-http-core"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/stone-foundation/stone-js-http-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-http-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-http-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-http-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-http-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stone-foundation","download_url":"https://codeload.github.com/stone-foundation/stone-js-http-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-http-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30455873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T02:22:12.178Z","status":"ssl_error","status_checked_at":"2026-03-13T02:06:49.475Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["context-aware","continuum-architecture","javascript","official-stonejs","stone-foundation","stonejs","stonejs-core","stonejs-http","typescript"],"created_at":"2025-07-13T05:06:55.721Z","updated_at":"2026-03-13T02:33:41.412Z","avatar_url":"https://github.com/stone-foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stone.js - HTTP Core\n\n[![npm](https://img.shields.io/npm/l/@stone-js/http-core)](https://opensource.org/licenses/MIT)\n[![npm](https://img.shields.io/npm/v/@stone-js/http-core)](https://www.npmjs.com/package/@stone-js/http-core)\n[![npm](https://img.shields.io/npm/dm/@stone-js/http-core)](https://www.npmjs.com/package/@stone-js/http-core)\n![Maintenance](https://img.shields.io/maintenance/yes/2025)\n[![Build Status](https://github.com/stone-foundation/stone-js-http-core/actions/workflows/main.yml/badge.svg)](https://github.com/stone-foundation/stone-js-http-core/actions/workflows/main.yml)\n[![Publish Package to npmjs](https://github.com/stone-foundation/stone-js-http-core/actions/workflows/release.yml/badge.svg)](https://github.com/stone-foundation/stone-js-http-core/actions/workflows/release.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-http-core\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-http-core)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-http-core\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-http-core)\n[![Security Policy](https://img.shields.io/badge/Security-Policy-blue.svg)](./SECURITY.md)\n[![CodeQL](https://github.com/stone-foundation/stone-js-http-core/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/stone-foundation/stone-js-http-core/security/code-scanning)\n[![Dependabot Status](https://img.shields.io/badge/Dependabot-enabled-brightgreen.svg)](https://github.com/stone-foundation/stone-js-http-core/network/updates)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nStone.js HTTP Core offers a simple, consistent API for handling HTTP requests and responses across any JavaScript runtime.\n\n---\n\n## Overview\n\nThe `@stone-js/http-core` package defines the foundational HTTP abstractions used throughout the Stone.js ecosystem. It introduces the `IncomingHttpEvent` and `OutgoingHttpResponse` classes, enabling context-aware handling of HTTP requests and responses in a runtime-agnostic way.\n\nThis module provides a normalized API for HTTP operations that works across adapters (Node.js, Lambda, etc.), serving as the bridge between the external runtime and the internal application logic.\n\n## Key Features\n\n- `IncomingHttpEvent`: A wrapper for incoming HTTP requests with support for headers, query, body, method, and cookies\n- `OutgoingHttpResponse`: A consistent abstraction for building and sending structured HTTP responses\n- First-class cookie handling with `Cookie` (secure, signed, or plain)\n- Support for headers, status codes, redirection, and JSON responses\n- Shared interfaces for request and response resolution across runtimes\n\nAll components are designed to be used within the **Continuum Architecture** of Stone.js, making them predictable, extensible, and runtime-neutral.\n\n## Installation\n\n```bash\nnpm install @stone-js/http-core\n```\n\n\u003e \\[!IMPORTANT]\n\u003e This package is **pure ESM**. Ensure your `package.json` includes `\"type\": \"module\"` or configure your bundler appropriately.\n\n## Usage Example\n\n```ts\nimport { IncomingHttpEvent, OutgoingHttpResponse } from '@stone-js/http-core'\n\n// Simulate incoming request\nconst event = new IncomingHttpEvent({\n  method: 'GET',\n  url: URL.parse('https://example.com/api/resource'),\n  headers: { 'x-custom-header': 'value' },\n  body: {},\n  queryString: 'param1=value1\u0026param2=value2',\n})\n\n// Build response\nconst response = OutgoingHttpResponse.create({ content: { message: 'Hello from Stone.js' } })\nresponse.setStatus(204)\nresponse.setHeader('Content-Type', 'application/json')\n```\n\n## Learn More\n\nThis package is part of the Stone.js ecosystem, a modern JavaScript framework built around the Continuum Architecture.\n\nExplore the full documentation: https://stonejs.dev\n\n## API documentation\n\n* [API](https://github.com/stone-foundation/stone-js-http-core/blob/main/docs)\n\n## Contributing\n\nSee [Contributing Guide](https://github.com/stone-foundation/stone-js-http-core/blob/main/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone-foundation%2Fstone-js-http-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstone-foundation%2Fstone-js-http-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone-foundation%2Fstone-js-http-core/lists"}