DefangLabs / DefangLabs/defang

Defang SDK

Open
#452 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
166
Forks
24
Avg merge
10h 8m
Merged PRs (30d)
33

Description

It would be neat if you could import an SDK to control your Defang provisioned infrastructure from within your application.

For example something very loosely along these lines:

import defang from '@defang/sdk';

function myMonitoringService(){
  const workerService = defang.getService('worker');
  const instanceCount = workerService.getInstanceCount();
  const customMetric = myPrivateFunctionThatGivesMeARelevantMetric();
  if(customMetric > 0.8 && instanceCount < 10) {
    workerService.setInstanceCount(instanceCount + 1);
  }
  if(customMetric < 0.4 && instanceCount > 2){
    workerService.setInstanceCount(instanceCount - 1);
  }
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points; start by locating the Defang provisioning and service-management interfaces. Clarify the SDK scope and API, including the example service instance-count operations, before implementation. Done should be an agreed importable SDK with defined supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.