# gell-session

> gell based approach to working time based (lifecycle) entities

Latest version **1.10.0** (published 2024-12-19) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.10.0 |
| Published | 2024-12-19 |
| First published | 2022-06-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 121.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Daniel Gay |
| Maintainers | djghokie75 |
| Keywords | gell |

## Links

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

## Dependencies (4)

- [gell](https://npm.io/package/gell.md) ^1.18.0
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [date-fns](https://npm.io/package/date-fns.md) ^2.30.0
- [gell-domain](https://npm.io/package/gell-domain.md) ^0.2.1

## Recent versions

- 1.10.0 (latest) — 2024-12-19
- 1.9.0 — 2024-08-13
- 1.8.0 — 2024-07-15
- 1.7.1 — 2024-07-02
- 1.7.0 — 2024-06-28
- 1.6.0 — 2024-06-10
- 1.5.1 — 2023-11-24
- 1.5.0 — 2023-11-24
- 1.4.0 — 2023-11-22
- 1.3.0 — 2023-11-03
- 1.2.0 — 2023-07-12
- 1.1.0 — 2023-07-02
- 1.0.0 — 2023-05-14
- 0.5.1 — 2023-04-18
- 0.5.0 — 2022-07-08
- … 16 more at https://npm.io/package/gell-session/versions

## README

# gell-session

_time based entity (lifcycle) modeling in an event based system_

## Objectives

* provide basis for commonly defined sessions in an event based system
    * for example, browser session in a web application
* model common session state via `gell`
* implement common events
    * session initiation
	* session ending
	* session invalidation
	* _etc_
* support timeline related features
* support metrics collection
* support session observation

## Characterisics

* always tied to actor/user
* captures several timestamps
    * initiated/start
	* authenticated
	* end
	* expiration
* may also capture events
* closely resembles a sequence
* parent/child relationship

## Outstanding 

* must a session be associated with an actor in the system?
* should this package support scheduling features
    * or is this `gell-schedule`?

## Deprecations

* storage mechanisms
    * transient, file system, dynamodb, etc
	* separate packages should do this
	    * e.g. `gell-fs`
    * could eventually provide several persistence implementations
* search
* GraphQL bindings

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