# gell-web

> gell-based approach to working with browser applications

Latest version **0.6.0** (published 2025-12-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install gell-web
pnpm add gell-web
yarn add gell-web
bun add gell-web
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2025-12-07 |
| First published | 2023-05-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 89.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Gay |
| Maintainers | djghokie75 |
| Keywords | gell |

## Links

- npm: https://www.npmjs.com/package/gell-web
- npm.io page: https://npm.io/package/gell-web

## Dependencies (4)

- [gell](https://npm.io/package/gell.md) ^1.18.0
- [njwt](https://npm.io/package/njwt.md) ^2.0.0
- [gell-domain](https://npm.io/package/gell-domain.md) ^0.1.1
- [gell-session](https://npm.io/package/gell-session.md) ^1.9.0

## Recent versions

- 0.6.0 (latest) — 2025-12-07
- 0.5.0 — 2024-10-12
- 0.4.0 — 2024-01-18
- 0.3.0 — 2023-12-08
- 0.2.0 — 2023-11-03
- 0.1.3 — 2023-10-08
- 0.1.2 — 2023-10-08
- 0.1.1 — 2023-10-08
- 0.1.0 — 2023-10-08
- 0.0.9 — 2023-08-13
- 0.0.8 — 2023-07-30
- 0.0.7 — 2023-07-27
- 0.0.6 — 2023-07-16
- 0.0.5 — 2023-07-15
- 0.0.4 — 2023-07-15
- … 3 more at https://npm.io/package/gell-web/versions

## README

# gell-web

_model session activity for web based applications_

## Concepts

* `authority`
    * responsible for issuing `user` and `browser` sessions
    * NOTE: this concept is really a `gell-session` concept
* `login` session
* `websocket` session

## Session Model

* as with all `gell` systems, interaction with web applications is modeled as a Session hierarchy

### Hierarchy

* `user`
    * `browser`
        * `login`
	    * `websocket`

### Domain

* `user`
    * represents any person that interacts with a web application
	* can be "anonymous" or known to the application
	* often (but not required to be) tied to an `identity`
	* `identity` is not modeled by this package
* `browser`
    * maintains state for `user` and application over a period of time
	* persistence is typically cookie based
* `login`
    * represents authenticated interaction with a web application
	* allows for `browser` session to extend beyond period of time where `user` has "logged in"
* `websocket`
    * represents a websocket connection between browser and web application backend
	* NOTE: no Session implementation currently for a "secured" connection (after authorization)

## Roadmap

* implement the "authorize" concept
    * this should be a more general approach to associating a `user` with a `session`
	* this might be a `gell-session` concept
	* should be an `authorize` event
	    * or perhaps "authorizer" (future) instead of event
		* allow client to specify cardinality rules
* solidify `role` and `persona` concepts
    * this might be in `gell-actor`
* implement a generic "cardinality" concept
    * this might be a `gell-session` concept
	* prevents more than one session to exists at a time
	* provide strategies for preventing concurrent sessions
	    * this was implemented with websockets
	* `authority` would enforce cardinality strategy

---
_Source: https://npm.io/package/gell-web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
