DefangLabs / DefangLabs/defang
Defang SDK
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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