{"id":29436860,"url":"https://github.com/stone-foundation/stone-js-browser-core","last_synced_at":"2026-01-20T16:54:31.081Z","repository":{"id":273016959,"uuid":"918428318","full_name":"stone-foundation/stone-js-browser-core","owner":"stone-foundation","description":"Continuation of HTTP logic for SPA/SSR in Stone.js, handles browser-side requests, responses, and cookies.","archived":false,"fork":false,"pushed_at":"2025-06-12T04:40:46.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T04:55:49.124Z","etag":null,"topics":["context-aware","csr","javascript","official-stonejs","ssr","stone-foundation","stonejs","stonejs-browser","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":"2025-01-17T23:08:04.000Z","updated_at":"2025-06-12T04:43:49.000Z","dependencies_parsed_at":"2025-01-18T04:26:07.076Z","dependency_job_id":"1a453da8-0800-4e21-a7d0-d710161253f5","html_url":"https://github.com/stone-foundation/stone-js-browser-core","commit_stats":null,"previous_names":["stonemjs/browser-core","stone-foundation/stone-js-browser-core"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stone-foundation/stone-js-browser-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-browser-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-browser-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-browser-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-browser-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-browser-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone-foundation%2Fstone-js-browser-core/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265091734,"owners_count":23710033,"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":["context-aware","csr","javascript","official-stonejs","ssr","stone-foundation","stonejs","stonejs-browser","typescript"],"created_at":"2025-07-13T05:06:53.674Z","updated_at":"2026-01-20T16:54:31.075Z","avatar_url":"https://github.com/stone-foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stone.js - Browser Core\n\n[![npm](https://img.shields.io/npm/l/@stone-js/browser-core)](https://opensource.org/licenses/MIT)\n[![npm](https://img.shields.io/npm/v/@stone-js/browser-core)](https://www.npmjs.com/package/@stone-js/browser-core)\n[![npm](https://img.shields.io/npm/dm/@stone-js/browser-core)](https://www.npmjs.com/package/@stone-js/browser-core)\n![Maintenance](https://img.shields.io/maintenance/yes/2025)\n[![Build Status](https://github.com/stone-foundation/stone-js-browser-core/actions/workflows/main.yml/badge.svg)](https://github.com/stone-foundation/stone-js-browser-core/actions/workflows/main.yml)\n[![Publish Package to npmjs](https://github.com/stone-foundation/stone-js-browser-core/actions/workflows/release.yml/badge.svg)](https://github.com/stone-foundation/stone-js-browser-core/actions/workflows/release.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-browser-core\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-browser-core)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-browser-core\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-browser-core)\n[![Security Policy](https://img.shields.io/badge/Security-Policy-blue.svg)](./SECURITY.md)\n[![CodeQL](https://github.com/stone-foundation/stone-js-browser-core/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/stone-foundation/stone-js-browser-core/security/code-scanning)\n[![Dependabot Status](https://img.shields.io/badge/Dependabot-enabled-brightgreen.svg)](https://github.com/stone-foundation/stone-js-browser-core/network/updates)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nStone.js Browser core provides essential utilities for browser-based applications, including event handling, response management, and cookie operations.\n\n---\n\n## Overview\n\nThe `@stone-js/browser-core` package provides the browser-side runtime abstraction for navigation-based applications built with **Stone.js**. It acts as the **client-side continuation** of `@stone-js/http-core`, enabling the same application logic to run across HTTP and browser environments, such as SSR, SPA, and hybrid apps.\n\nThis module enables **context-aware event and response handling** in the browser using a unified model of routing, redirection, and cookie control, without managing DOM or UI behavior directly.\n\n## Key Features\n\n- `IncomingBrowserEvent`: Represents navigation-based client-side events (e.g., route changes, link clicks)\n- `OutgoingBrowserResponse`: Produces standardized browser responses (HTML updates, cookie headers, etc.)\n- `RedirectBrowserResponse`: Emits client-side redirects with full context\n- `CookieCollection`: Unified cookie abstraction across HTTP and browser environments\n- Designed for **SPA and SSR continuity**, not tied to any frontend library\n\n\u003e [!IMPORTANT]\n\u003e This package does **not** manage DOM events or UI interactions. It strictly handles navigation-level behavior in a runtime-agnostic way.\n\n## Installation\n\n```bash\nnpm install @stone-js/browser-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 { IncomingBrowserEvent, RedirectBrowserResponse } from '@stone-js/browser-core'\n\nconst event = new IncomingBrowserEvent({\n  url: URL.parse(location)\n})\n\nconst response = RedirectBrowserResponse.to('/dashboard')\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-browser-core/blob/main/docs)\n\n## Contributing\n\nSee [Contributing Guide](https://github.com/stone-foundation/stone-js-browser-core/blob/main/CONTRIBUTING.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone-foundation%2Fstone-js-browser-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstone-foundation%2Fstone-js-browser-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone-foundation%2Fstone-js-browser-core/lists"}