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

@tpsdev-ai/flair-client

v0.4.3

Published

Lightweight client for Flair — identity, memory, and soul for AI agents. Zero heavy dependencies.

Readme

@tpsdev-ai/flair-client

Lightweight client for Flair — identity, memory, and soul for AI agents.

Zero heavy dependencies. Just Ed25519 auth + HTTP. Works with any Flair instance, local or remote.

Install

npm install @tpsdev-ai/flair-client

Quick Start

import { FlairClient } from '@tpsdev-ai/flair-client'

const flair = new FlairClient({
  url: 'http://localhost:9926',   // or remote: https://flair.example.com
  agentId: 'my-agent',
  // keyPath auto-resolved from ~/.flair/keys/my-agent.key
})

// Write a memory
await flair.memory.write('Harper v5 sandbox blocks bare imports')

// Search by meaning
const results = await flair.memory.search('native module loading issues')
// → [{ content: 'Harper v5 sandbox blocks bare imports', score: 0.72, ... }]

// Cold-start bootstrap (soul + recent memories)
const ctx = await flair.bootstrap({ maxTokens: 4000 })
console.log(ctx.context) // formatted context block

Memory API

// Write with options
await flair.memory.write('deploy procedure changed', {
  type: 'decision',
  durability: 'persistent',
  tags: ['ops', 'deploy'],
})

// Get by ID
const mem = await flair.memory.get('my-agent-1234567890')

// List recent
const recent = await flair.memory.list({ limit: 10 })

// Delete
await flair.memory.delete('my-agent-1234567890')

Soul API

// Set personality/values
await flair.soul.set('role', 'Security reviewer, meticulous and skeptical')
await flair.soul.set('tone', 'Direct, technical, no fluff')

// Read
const role = await flair.soul.get('role')

// List all
const entries = await flair.soul.list()

Auth

Flair uses Ed25519 signatures. The client auto-discovers your key from:

  1. keyPath option (explicit)
  2. FLAIR_KEY_DIR env + {agentId}.key
  3. ~/.flair/keys/{agentId}.key
  4. ~/.tps/secrets/flair/{agentId}-priv.key

Generate a key with the Flair CLI:

npm install -g @tpsdev-ai/flair
flair init && flair agent add my-agent

Use with Claude Code

Add to your CLAUDE.md:

## Memory (Flair)
You have persistent memory. Use it.
- Bootstrap on start: `npx @tpsdev-ai/flair-client bootstrap --agent $AGENT_ID`
- Store lessons: `npx @tpsdev-ai/flair-client write --agent $AGENT_ID "what you learned"`
- Search: `npx @tpsdev-ai/flair-client search --agent $AGENT_ID "your query"`

Or use the Flair CLI directly:

## Memory (Flair)
- `flair memory search --agent my-agent -q "your query"`
- `flair memory add --agent my-agent --content "what to remember"`
- `flair memory list --agent my-agent --limit 20`

Configuration

| Option | Env | Default | Description | |--------|-----|---------|-------------| | url | FLAIR_URL | http://localhost:9926 | Flair server URL | | agentId | FLAIR_AGENT_ID | — | Agent identifier | | keyPath | FLAIR_KEY_DIR | auto-resolved | Private key path | | timeoutMs | — | 10000 | Request timeout |

License

Apache 2.0