New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@floomhq/client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@floomhq/client

JavaScript client for Floom

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

@floomhq/client

JavaScript/TypeScript client for the Floom API.

Install

npm install @floomhq/client

Usage

import { FloomClient } from '@floomhq/client';

const client = new FloomClient({
  url: 'http://localhost:3001',
  apiKey: 'your-api-key',  // optional for OSS mode
});

// Deploy Python code
const project = await client.deploy(
  'def run(city: str = "Berlin") -> dict:\n  return {"message": f"Hello {city}"}',
  'Greeter'
);

// Run an endpoint
const run = await client.run(
  project.id,
  project.version_id,
  project.endpoints[0].id,
  { json: { city: 'Hamburg' } }
);

// Wait for result
const result = await client.waitForRun(run.run_id);
console.log(result.result?.json);
// { message: "Hello Hamburg" }

API

Core

  • deploy(code, name, requirements?, config?) - Deploy Python code or base64 ZIP
  • run(projectId, versionId, endpointId, params?) - Execute an endpoint
  • waitForRun(runId, timeoutMs?) - Poll until completion (default 120s)
  • getRunStatus(runId) - Get run status and result
  • listProjects() - List all projects
  • getProject(projectId) - Get project details with endpoint schemas
  • deleteProject(projectId) - Delete a project

Versions

  • listVersions(projectId) - List versions with dev/prod flags
  • promote(projectId, versionId?) - Promote to production
  • rollback(projectId, versionId) - Rollback

Secrets

  • listSecrets(projectId) - List configured secrets
  • setSecret(projectId, key, value) - Set a secret
  • deleteSecret(projectId, key) - Delete a secret

Storage

  • putStorage(projectId, key, value) - Store a value
  • getStorage(projectId, key) - Retrieve a value
  • deleteStorage(projectId, key) - Delete a value
  • listStorage(projectId) - List all keys
  • createShareLink(projectId) - Create public share link
  • listShareLinks(projectId) - List share links
  • disableShareLink(projectId, shareId) - Disable a link

License

MIT

FAQs

Package last updated on 02 Apr 2026

Related posts