# @ostro/session

> Session module for OstroJS

Latest version **2.0.0-alpha.2** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ostro/session
pnpm add @ostro/session
yarn add @ostro/session
bun add @ostro/session
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0-alpha.2 |
| Published | 2026-10-22 |
| First published | 2021-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 13 |
| Unpacked size | 100.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Author | amar |
| Maintainers | ostrojs, developeramarkumar |
| Keywords | session, nodejs http session, cookie session |

## Links

- npm: https://www.npmjs.com/package/@ostro/session
- Repository: https://github.com/ostrojs/session
- Homepage: https://github.com/ostrojs/session#readme
- Issues: https://github.com/ostrojs/session/issues
- npm.io page: https://npm.io/package/@ostro/session

## Dependencies (13)

- [csrf](https://npm.io/package/csrf.md) ^3.1.0
- [cookie](https://npm.io/package/cookie.md) ^0.7.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.4.1
- [uid-safe](https://npm.io/package/uid-safe.md) ^2.1.5
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [on-headers](https://npm.io/package/on-headers.md) ^1.0.2
- [proxy-addr](https://npm.io/package/proxy-addr.md) ^2.0.8
- [@ostro/cookie](https://npm.io/package/@ostro/cookie.md) ^2.0.0-alpha.2
- [@ostro/console](https://npm.io/package/@ostro/console.md) ^2.0.0-alpha.2
- [@ostro/support](https://npm.io/package/@ostro/support.md) ^2.0.0-alpha.2
- [@ostro/contracts](https://npm.io/package/@ostro/contracts.md) ^2.0.0-alpha.2
- [cookie-signature](https://npm.io/package/cookie-signature.md) ^1.2.1

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 2.0.0-alpha.2 (latest) — 2026-10-22
- 2.0.0-alpha.1 — 2026-10-22
- 1.0.10 — 2025-09-08
- 1.0.9 — 2025-07-27
- 1.0.8 — 2025-07-27
- 1.0.7 — 2025-07-23
- 1.0.6 — 2025-07-23
- 1.0.5 — 2025-07-23
- 1.0.4 — 2025-07-21
- 1.0.3 — 2025-07-21
- 1.0.2 — 2022-07-30
- 0.0.0-alpha.2 — 2021-12-26
- 0.0.0-alpha.1 — 2021-12-17
- 0.0.0-alpha.0 — 2021-11-11

## README

<div align="center">
  <h1>OstroJS Framework</h1>
  
</div>
<br />

<div align="center">
  <h3>OstroJS Session</h3>
  <p>Session Module for OstroJS</p>
</div>

<br />

<div align="center">

![][javascript-image] [![license-image]][license-url] [![nodejs-image]][npm-url]

</div>

<div align="center">
  <h3>
    <a href="https://ostrojs.com">
      Website
    </a>
   
  </h3>
</div>

 
[javascript-image]: https://img.shields.io/badge/JS-javascript-green
[javascript-url]:  "javascript"

[nodejs-image]: https://img.shields.io/badge/node-%3E%3D%2012.0.0-green
[npm-url]: https://npmjs.org/package/@ostro/session "npm"

[license-image]: https://img.shields.io/github/license/ostrojs/session
[license-url]: LICENSE.md "license"

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