Skip to main content

The emotional memory layer for AI.

Project description

Resonance

The emotional memory layer for AI.


What It Is

Resonance is an emotional memory layer for AI — it reads the feeling behind your words, learns who you are over time, and gives any AI the emotional awareness to respond to how you actually feel, not just what you said.

Text doesn't carry emotion. You know what you meant when you wrote it — but the AI only sees the words.

Resonance changes that. It reads what is underneath. The exhaustion behind a short reply. The anxiety inside a polite question. The things you feel but would never think to say out loud — and sometimes don't even have words for yet.

It remembers. It learns you over time. And it gives that understanding to any AI before it ever responds to you — so the conversation feels less like typing at a machine and more like talking to something that actually knows you're there.

Not a messenger. A connection.

Resonance is named after Jody. She walks into a room and just knows. That is the standard.


What It Does

Everything happens invisibly. You write. Resonance reads — not just the words, but the weight behind them. It detects emotion, measures intensity, tracks how you are doing right now versus how you have been doing over time. It updates your profile with every message. And before the AI responds to you, Resonance tells it everything it needs to know about where you actually are.

You do nothing differently. The conversation just feels different — because for the first time, the AI knows who it is talking to.


How It Learns

Resonance learns you in layers.

From the start — it reads the emotion in every message automatically. No setup required.

From your corrections — if it gets something wrong, you can tell it. One tap. It remembers and adjusts. The more you correct it, the more accurate it becomes for you specifically.

From your patterns — over time, Resonance builds a profile. Not a data file. A living picture. It notices that you tend to feel frustrated on certain topics, or that your energy is lower in the evenings, or that you process difficult things through humour. It holds all of that and uses it.

From context — you can optionally tag what you are doing when you send a message. Working, resting, talking to family. That context helps Resonance understand why you feel the way you do, not just what you feel.

The longer you use it, the better it knows you. Zero extra effort required.


The Panel

The Resonance panel sits beside your conversation. It is not in the way. It reflects you back to yourself.

At a glance you can see:

  • What Resonance senses right now — a short plain-English description of your current emotional state
  • Your mood and energy — two simple bars showing where you are right now
  • Emotion chips — the specific emotions detected in this conversation, starting with the strongest
  • Search — type how you feel if you want to explore it

The panel is a mirror. It does not tell you what to do with what you are feeling. It just shows you what it sees.


The Science Inside It

Resonance is not guessing. Every detection is grounded in established psychological research.

Eight frameworks are baked into every layer:

  • Self-Determination Theory — your autonomy is preserved at every step
  • DBT emotion detection — distinguishes between what you feel first and what follows
  • Reappraisal vs suppression — detects how you are relating to your emotion, not just what it is
  • Validate before problem-solve — the AI acknowledges you before it tries to help you
  • Window of Tolerance — knows whether you are calm, overwhelmed, or shut down
  • PERMA flourishing — tracks the full picture of your emotional wellbeing over time
  • Wise Mind detection — recognises when you are in emotional mind, reasonable mind, or the balance between them
  • Non-judgment — there is no good or bad emotion inside Resonance. Everything is detected with equal respect

The science is serious because the people using it are real.


Improving Over Time

Resonance gets more accurate the more it is used — both for you personally, and for everyone.

For you — every correction you make teaches Resonance your specific patterns. The more you use it, the more it knows you.

For everyone — when you first run Resonance, it will ask you one question: whether you want to share anonymous correction data to help improve the model for all users. Corrections only — no message text, no identity, nothing personal. You must make a conscious choice. There is no default. You can change your answer at any time:

r.set_feedback(True)   # turn on
r.set_feedback(False)  # turn off

Version updates — when a new version of Resonance is available, it will tell you once at startup:

┌─ Resonance Update Available ─────────────────────────┐
│  New version: 1.0.1  (you have 1.0.0)                │
│  pip install --upgrade resonance-layer               │
└───────────────────────────────────────────────────────┘

It never updates silently. You always choose when to update.


What It Is Not

Resonance is not a therapy tool and makes no clinical claims.

It reflects emotion — it does not diagnose, treat, or replace professional support.

It is a mirror, not a therapist. It detects emotion. It never tells you what that emotion means for your life.

If you are in crisis, Resonance will flag it — and any application built on Resonance is required to surface appropriate support immediately.


For Developers

Add emotional awareness to any LLM in three lines:

from resonance import Resonance

r = Resonance()
context = r.process(user_id="123", message="I've been so anxious about this")

# Pass context to your LLM before the conversation
llm.chat(system=context.to_prompt(), message=message)

Resonance handles everything else — detection, profiling, injection, flagging. You handle the conversation.

Requirements: Python 3.10+, runs fully embedded, no external server required.

Install:

Linux:

curl -fsSL https://install.resonance-layer.com/install-linux.sh | sh

Mac:

curl -fsSL https://install.resonance-layer.com/install-mac.sh | sh

Windows:

irm https://install.resonance-layer.com/install-win.ps1 | iex

The install script handles everything automatically — virtual environment, dependencies, first-run setup, and model download in one command.

Manual install (any OS):

pip install resonance-layer

For full integration documentation including edge cases, flags reference, and developer responsibilities — read the Developer Guide.

For ethical principles, prohibited use cases, and safeguards — read the Ethics Document.


License

Resonance is released under the Business Source License (BUSL).

Free for individual and non-commercial use. Commercial use requires a license.


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resonance_layer-1.0.20.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resonance_layer-1.0.20-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file resonance_layer-1.0.20.tar.gz.

File metadata

  • Download URL: resonance_layer-1.0.20.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for resonance_layer-1.0.20.tar.gz
Algorithm Hash digest
SHA256 a78328b7420b25a4df4d3f5c5fa56aabb049b7d64f50f1add5989a41166ebb7e
MD5 6e6b5baf90583849ac8790409ab67fc5
BLAKE2b-256 8e61e1e795164f9b66f293f1ac6671eca65908b3ae11f1fa51042416c3cb1352

See more details on using hashes here.

File details

Details for the file resonance_layer-1.0.20-py3-none-any.whl.

File metadata

File hashes

Hashes for resonance_layer-1.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 fd71d26d6f6fa70fdc74b99142255acff40ff63f0ee530eab65abed54f6e05e6
MD5 2f7fc09edeb06f5481cc2275be16dc01
BLAKE2b-256 7b862d7bca318f737d7b8779148b8435f2eeee8f69922907c2632ea1d479c7e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page