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

@bokic/cfrds

v1.1.2

Published

Pure TypeScript implementation of the ColdFusion RDS (Remote Development Service) protocol

Downloads

163

Readme

@bokic/cfrds

Pure TypeScript client implementation of the ColdFusion RDS (Remote Development Service) protocol for Node.js and modern JavaScript runtimes. Zero runtime dependencies.

npm version License: MIT


Features

  • File System Operations: Browse remote server directories, read, upload, download, move, rename, delete files, and create/remove directories.
  • Database Services: Enumerate data sources (DSNs), inspect tables, columns, primary & foreign keys, execute SQL queries, and inspect SQL metadata.
  • Remote Debugger: Connect to ColdFusion remote debugger, control execution (step into, step over, resume), set breakpoints, and listen to events.
  • Admin API & Server Info: Fetch ColdFusion installation directory (cfroot), inspect server info, retrieve custom tag paths, and manage CF mappings.
  • Security Analyzer: Run remote CFML security analyzer scans.
  • Zero External Dependencies: Pure TypeScript, built on native Node.js HTTP/HTTPS primitives.

Installation

npm install @bokic/cfrds

Quick Start

import { Server } from "@bokic/cfrds";

async function main() {
  // Initialize server connection
  const server = new Server("127.0.0.1", 8500, "admin", "your_rds_password");

  try {
    // 1. Get ColdFusion installation directory
    const cfRoot = await server.getCFRoot();
    console.log(`ColdFusion Root: ${cfRoot}`);

    // 2. Browse directory contents
    const items = await server.browseDir("/");
    console.log("Directory listing:", items);

    // 3. Read a remote file
    const fileContent = await server.cat("/index.cfm");
    console.log("File size:", fileContent.size, "bytes");
    console.log("Content:\n", fileContent.content.toString("utf-8"));

    // 4. Query Data Sources
    const dsns = await server.getDsnInfo();
    console.log("Available DSNs:", dsns);
  } catch (err) {
    console.error("RDS Error:", err);
  }
}

main();

Usage Examples

File Operations

// Browse directory
const files = await server.browseDir("/var/www/html");

// Read remote file as Buffer
const file = await server.cat("/var/www/html/app.cfm");

// Upload local file to remote server
const localBuffer = Buffer.from("<cfoutput>Hello World</cfoutput>");
await server.uploadFile("/var/www/html/hello.cfm", localBuffer);

// Download remote file
const content = await server.downloadFile("/var/www/html/hello.cfm");

// Move / Rename
await server.renameFile("/var/www/html/hello.cfm", "/var/www/html/index.cfm");

// Create / Delete directory
await server.mkdir("/var/www/html/uploads");
await server.rmdir("/var/www/html/uploads");

// Delete file
await server.removeFile("/var/www/html/index.cfm");

Database Operations

// List data sources
const dsns = await server.getDsnInfo();

// Get tables in DSN
const tables = await server.getTableInfo("my_dsn");

// Get columns in table
const columns = await server.getColumnInfo("my_dsn", "users");

// Execute SQL query
const resultSet = await server.execSql("my_dsn", "SELECT * FROM users WHERE active = 1");
console.log("Columns:", resultSet.columns);
console.log("Rows:", resultSet.data);

Remote Debugger

// Start debugging session
const session = await server.debuggerStart();
console.log("Debug session ID:", session.sessionId);

// Set breakpoint
await server.debuggerSetBreakpoint(session.sessionId, "/var/www/html/index.cfm", 15);

// Stop debugging session
await server.debuggerStop(session.sessionId);

API Summary

| Category | Method | Description | |---|---|---| | System | getCFRoot() | Get ColdFusion root installation folder | | System | ideDefault(version) | Get CF server info | | Files | browseDir(path) | List directory items | | Files | cat(path) | Read file content | | Files | uploadFile(path, content) | Upload file content | | Files | downloadFile(path) | Download file content | | Files | renameFile(oldPath, newPath) | Move or rename file | | Files | removeFile(path) | Delete remote file | | Files | mkdir(path) | Create remote directory | | Files | rmdir(path) | Delete remote directory | | Database | getDsnInfo() | Enumerate data sources | | Database | getTableInfo(dsn) | Enumerate tables | | Database | getColumnInfo(dsn, table) | Enumerate table columns | | Database | execSql(dsn, sql) | Execute SQL query | | Admin API | getCustomTagPaths() | Fetch custom tag paths | | Admin API | getMappings() | Fetch server mappings |


License

MIT