MCPcopy Index your code
hub / github.com/adonisjs/session

github.com/adonisjs/session @v8.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v8.1.0 ↗ · + Follow
225 symbols 683 edges 46 files 155 documented · 69%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

@adonisjs/session

gh-workflow-image npm-image [license-image]license-url

Introduction

Use sessions in your AdonisJS applications with a unified API to persist session data across different data-stores. Has inbuilt support for cookie, files, and redis drivers.

Official Documentation

The documentation is available on the AdonisJS website

Contributing

One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework.

We encourage you to read the contribution guide before contributing to the framework.

Code of Conduct

In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the Code of Conduct.

License

AdonisJS session is open-sourced software licensed under the MIT license.

Extension points exported contracts — how you extend this code

SessionStoreContract (Interface)
(no doc) [9 implementers]
src/types.ts
EventsList (Interface)
(no doc)
providers/session_provider.ts
HttpContext (Interface)
(no doc)
src/session_middleware.ts
ApiRequest (Interface)
(no doc)
src/plugins/japa/api_client.ts
SessionStoreWithTaggingContract (Interface)
(no doc) [6 implementers]
src/types.ts
Redirect (Interface)
(no doc)
src/session_middleware.ts
ApiResponse (Interface)
(no doc)
src/plugins/japa/api_client.ts
SessionConfig (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

create
called by 381
factories/session_middleware_factory.ts
merge
called by 240
src/client.ts
get
called by 128
src/session.ts
write
called by 106
src/types.ts
initiate
called by 79
src/session.ts
commit
called by 73
src/session.ts
set
called by 72
src/values_store.ts
tag
called by 56
src/types.ts

Shape

Method 160
Class 30
Function 23
Interface 12

Languages

TypeScript100%

Modules by API surface

src/session.ts42 symbols
src/values_store.ts22 symbols
src/plugins/japa/api_client.ts17 symbols
src/stores/redis.ts15 symbols
src/types.ts13 symbols
src/stores/database.ts13 symbols
src/stores/file.ts11 symbols
src/plugins/japa/browser_client.ts11 symbols
src/stores/memory.ts9 symbols
src/session_middleware.ts9 symbols
src/session_collection.ts8 symbols
src/client.ts8 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add session \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact