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

@loopstack/remote-client

v0.24.1

Published

Remote client and tools for Loopstack workflows — HTTP client for communicating with remote server processes, plus workflow tools for file operations, command execution, and environment management

Readme

@loopstack/remote-client

A module for the Loopstack AI automation framework.

HTTP client and workflow tools for talking to a Loopstack remote server — the sandboxed process that owns a workspace's filesystem and shell. This is the foundation most other feature modules (git, code-agent, file-explorer) build on.

Overview

A Loopstack workspace runs inside a remote server (e.g. a container, a VM, or a local process) that exposes an HTTP API for file operations, shell commands, and environment management. RemoteClient is the typed client for that API, and this module also bundles 10 workflow tools that let any workflow read files, edit them, run bash, and so on — all against the remote workspace, not the host process.

By using this module you'll get:

  • RemoteClient service — typed HTTP client for the remote server
  • SandboxEnvironmentService — resolves the remote agent URL for the current workflow context
  • EnvironmentController — REST endpoints for env/workspace management
  • 10 workflow tools: ReadTool, WriteTool, EditTool, BashTool, GlobTool, GrepTool, RebuildAppTool, ResetWorkspaceTool, LogsTool, SyncSecretsTool

Installation

npm install @loopstack/remote-client

Register the module:

import { RemoteClientModule } from '@loopstack/remote-client';

@Module({
  imports: [RemoteClientModule /* ... */],
})
export class AppModule {}

RemoteClientModule depends on SecretsModule (for SyncSecretsTool), LoopCoreModule, and uses WorkspaceEntity via TypeORM.

How It Works

Using the file-operation tools from a workflow

import { BaseWorkflow, InjectTool, Transition, Workflow } from '@loopstack/common';
import { BashTool, EditTool, ReadTool } from '@loopstack/remote-client';

@Workflow({ uiConfig: __dirname + '/my.ui.yaml' })
export class MyWorkflow extends BaseWorkflow {
  @InjectTool() read: ReadTool;
  @InjectTool() edit: EditTool;
  @InjectTool() bash: BashTool;

  @Transition({ from: 'ready', to: 'done' })
  async rewritePackageJson() {
    const { data } = await this.read.call({ path: 'package.json' });
    await this.edit.call({
      path: 'package.json',
      oldString: '"version": "0.1.0"',
      newString: '"version": "0.2.0"',
    });
    await this.bash.call({ command: 'npm install' });
  }
}

Every tool resolves the remote agent URL from the workflow context, so you don't pass it in yourself.

Using RemoteClient directly

Inject it into any service to call the remote server without going through a tool:

import { RemoteClient, SandboxEnvironmentService } from '@loopstack/remote-client';

@Injectable()
export class MyService {
  constructor(
    private readonly client: RemoteClient,
    private readonly sandbox: SandboxEnvironmentService,
  ) {}

  async listFiles(ctx: unknown, path: string) {
    const url = this.sandbox.getAgentUrl(ctx);
    return this.client.glob(url, { pattern: `${path}/**/*` });
  }
}

Public API

  • Module: RemoteClientModule
  • Services: RemoteClient, SandboxEnvironmentService
  • Controller: EnvironmentController
  • Tools: ReadTool, WriteTool, EditTool, BashTool, GlobTool, GrepTool, RebuildAppTool, ResetWorkspaceTool, LogsTool, SyncSecretsTool

Dependencies

  • @loopstack/common, @loopstack/core — framework
  • @loopstack/secrets-module — consumed by SyncSecretsTool
  • @nestjs/typeorm, typeorm — workspace persistence

About

Author: Jakob Klippel

License: MIT

Additional Resources