npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentic-eng/provider

v0.2.3

Published

Provider interfaces (LLM, Memory, Observability) for the EASA framework.

Readme

@agentic-eng/provider

Interface-only contracts for LLM, Memory, and Observability providers in EASA — Easy Agent System Architecture.

npm License: MIT TypeScript


Part of the EASA Framework

EASA is a minimal, type-safe TypeScript framework for building LLM-powered agent systems. It provides building blocks for agents that can reason, use tools, persist knowledge, and emit observable events — with zero LLM lock-in.

| Package | Description | | --- | --- | | @agentic-eng/agent | Agent class and reasoning loop — start here | | @agentic-eng/core | Shared types, enums, and error classes | | @agentic-eng/provider (this package) | Interface-only contracts (LlmProvider, MemoryProvider, ObservabilityProvider) | | @agentic-eng/tool | Tool interface and ToolRegistry | | @agentic-eng/memory | Memory implementations (FlatFileMemory) | | @agentic-eng/observability | Observability implementations (ConsoleObserver, NoopObserver) |

Most users don't need to install this package directly. It is automatically included as a dependency of @agentic-eng/agent, which re-exports all provider interfaces. Install @agentic-eng/provider directly only if you are building a standalone implementation package.


What This Package Does

@agentic-eng/provider defines the interface contracts that connect the EASA agent to external systems. It contains no concrete implementations — only TypeScript interfaces.

There are three provider interfaces:

| Interface | Purpose | Concrete implementations | | --- | --- | --- | | LlmProvider | Connect any LLM backend | You implement this (OpenAI, Anthropic, etc.) | | MemoryProvider | Persist agent knowledge | FlatFileMemory or your own | | ObservabilityProvider | Receive lifecycle events | ConsoleObserver or your own |

This separation lets you swap implementations without touching agent code.


Installation

npm install @agentic-eng/provider

Or, if you're using @agentic-eng/agent, all interfaces are already re-exported:

npm install @agentic-eng/agent    # includes provider interfaces automatically

LlmProvider

The core interface — connect any LLM backend to EASA. You must implement this to use the agent.

import type { LlmProvider, Message, ChatOptions, ChatResponse, ChatChunk } from '@agentic-eng/provider';

const myProvider: LlmProvider = {
  async chat(messages: Message[], options?: ChatOptions): Promise<ChatResponse> {
    // Call OpenAI, Anthropic, local model, etc.
    const response = await callYourLLM(messages);
    return { message: { role: 'assistant', content: response.text } };
  },

  async *chatStream(messages: Message[], options?: ChatOptions): AsyncIterable<ChatChunk> {
    for await (const chunk of streamYourLLM(messages)) {
      yield { delta: chunk.text, done: chunk.finished };
    }
  },
};

Then pass it to the agent:

import { Agent } from '@agentic-eng/agent';

const agent = new Agent({ name: 'assistant', provider: myProvider });

MemoryProvider

Optional — lets the agent persist knowledge across invocations. The LLM decides when to store information.

import type { MemoryProvider, MemoryEntry } from '@agentic-eng/provider';

class PostgresMemory implements MemoryProvider {
  async store(agentName: string, entry: MemoryEntry): Promise<void> {
    // INSERT INTO memories ...
  }
  async retrieve(agentName: string): Promise<MemoryEntry[]> {
    // SELECT FROM memories WHERE agent_name = ...
  }
}

EASA ships a built-in implementation in @agentic-eng/memoryFlatFileMemory persists knowledge as KNL DATA blocks in flat files.


ObservabilityProvider

Optional — receives structured lifecycle events from the agent for logging, monitoring, or tracing.

import type { ObservabilityProvider, AgentEvent } from '@agentic-eng/provider';

class OtelObserver implements ObservabilityProvider {
  emit(event: AgentEvent): void {
    tracer.startSpan(event.type, { attributes: event.data });
  }
}

EASA ships built-in implementations in @agentic-eng/observability:

  • ConsoleObserver — formatted console logging for development
  • NoopObserver — silently discards events (used internally as default)

How It Fits Together

@agentic-eng/core (types + errors)
    ↑
@agentic-eng/provider (interfaces: LlmProvider, MemoryProvider, ObservabilityProvider)  ← you are here
    ↑
@agentic-eng/tool (Tool interface + ToolRegistry)
@agentic-eng/memory (FlatFileMemory — implements MemoryProvider)
@agentic-eng/observability (ConsoleObserver — implements ObservabilityProvider)
    ↑
@agentic-eng/agent (Agent class — composes everything)

Feedback & Contact

Have questions, feedback, or ideas? We'd love to hear from you:

License

MIT