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

@felan-ai/daemon

v0.8.11

Published

Felan session daemon with configured service providers

Readme

Felan session daemon

@felan-ai/daemon owns the session server, admission, registry, canonical persistence and execution lifetime. It has no dependency on the Felan client or extension implementations. @felan-ai/felan supplies local providers, default configuration and clients, and installs the exact daemon version.

Importing this package does not start a daemon. A managing package launches the installed entrypoint with trusted configuration. Provider modules resolve from that installation, never from the working directory or project content.

Supported platforms

The native ownership backend supports macOS, glibc Linux and Windows on x64 and arm64. Other platforms or unavailable native backends fail closed with platform_blocked; there is no TCP or lease-lock fallback. Keep Koffi's optional platform packages when installing or bundling the daemon.

Windows uses the process token SID, exclusive-share file handles and secret-authenticated Node named pipes. The production endpoint file is <OS account profile>\AppData\Local\felan-daemon-v1\production\ipc-endpoint.json. The coordinator path does not follow HOME, USERPROFILE or LOCALAPPDATA overrides. Private path DACLs allow the account, SYSTEM and Administrators. The pipe retains Node's default DACL, so authentication depends on the private secret, not a same-SID pipe check. See ADR 0048 for residual access and impersonation risks.

Windows skips directory fsync, but retains file fsync. File replacements retry EPERM, EACCES and EBUSY for up to two seconds. Daemon startup defaults child-process windowsHide to true unless the caller sets it. Windows CI exercises x64 and arm64 under an elevated Administrator account; it does not cover a standard non-admin account or interactive console-window behavior. See native ownership for paths, failure codes and verification scope.

Contracts and configuration

  • . exports DAEMON_VERSION and the configured SESSION_RUNTIME_SERVICE.
  • ./version exports DAEMON_VERSION without loading session runtime contracts.
  • ./host-config exposes host configuration schemas, loading and trusted provider resolution for managing packages.
  • ./session-runtime describes session composition and host operations for configuration, preferences, setup and root preparation. Providers supply these operations and credential storage; the daemon retains admission and shutdown ownership.
  • ./provider describes trusted provider definitions, restricted execution ports, process adapters and shared storage/locking helpers.
  • ./client exposes authenticated local transport, target resolution and managed daemon launch. ./daemon-bootstrap supports managing entrypoints.
  • Internal subpaths, including registry, stores, persistence and the runtime UI translator, are not exported.

Local settings parsing, keychain credentials, model defaults, HTTP bootstrap, system prompt loading, folder trust and authentication workers belong to @felan-ai/felan providers, not the daemon package.

The old ./daemon-profile export is removed. Daemon 0.1.0 and protocol 0.2.0 are coordinated with Agent Core 0.13.0. They are not published by local verification. New npm packages still require the manual 0.0.0 bootstrap and trusted-publisher setup in the release procedure.

host.json selects providers, extensions and policy. Precedence is an explicit absolute path, the agent-directory file, then a packaged default supplied by the manager. The generic daemon has no implicit local provider configuration. On Windows, configuration trust checks the file's DACL rather than POSIX mode bits. Write grants outside the account, SYSTEM, Administrators and TrustedInstaller cause unsafe_host_config. Native security-descriptor read failures and unsupported ACEs propagate unsafe_path instead. Provider changes require restart. Session configuration and storage identities are checked on restore; changed or missing identities require explicit reload. Control state uses version 1. Invalid or unsupported data fails closed and is preserved for recovery; there is no automatic migration, reset or replay.

Stdio transports and their persistent readers are session infrastructure, not active work. Their consumers report in-flight requests through the runtime lifetime service. Idle transports do not prevent reload or eviction; the daemon still terminates them and joins their readers before releasing the session. Shell jobs and interactive terminals continue to block eviction while running.

Presentation and verification

Clients render the shared UI vocabulary. Optional renderer hints do not grant authority. Capabilities and trusted transport facts determine eligibility; client-kind labels do not. Host setup applies policy before local-console approval, and strict ACP execution policy remains independent of presentation.

The pinned Pi SDK transitively includes pi-tui; this package is not claimed to be terminal-free. Run tests through scripts/test-isolated.sh, which gives each run a fresh HOME, agent directory and TMPDIR.