Skip to content

Memact/Access

Repository files navigation

Memact Access

Access is the entry point for the Memact provider. It handles app registration, user consent, API key validation, and routes requests to the correct protocols.

What Access Does

Access is a server that acts as a gateway:

  • Verifies API keys and user consent.
  • Enforces permission scopes and category access.
  • Exposes endpoints for context requests (CAP) and suggestions (CCP).

Core Routes

  • GET /health - Check server health and status.
  • GET /v1/policy - List supported categories and safety rules.
  • POST /v1/cap/request - Request a user context packet (CAP).
  • POST /v1/contributions/propose - Propose a new context suggestion (CCP).
  • GET /v1/credits - Check current API credit balances.

How it works

When an app requests context using CAP, Access checks if the app is registered and has user consent. It then queries the Memory store for the user's approved context, ranks any conflicting values by evidence, and returns the result.

Development

To install and run tests:

npm install
npm test

License

Access is open source under the Apache 2.0 license.

About

Reference identity provider and gateway for context requests and contributions.

Topics

Resources

License

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors