JavaScript Palantir Compute Module template/demo with sample handlers for arithmetic, greeting, and environment inspection.
- Boots a compute module runtime with
@palantir/compute-module. - Registers simple sample handlers (
sum,hello,getEnv). - Demonstrates grouping/filtering environment variables for runtime diagnostics.
- Serves as a lightweight template for new JS compute modules.
index.jsinitializes aComputeModuleinstance.- Handlers are registered directly on the module.
getEnvfilters noisy prefixes and groups keys by suffix patterns.
| Function | Input | Output | Notes |
|---|---|---|---|
sum |
{ a: number, b: number } |
string |
Returns sum as string. |
hello |
{ name: string } |
string |
Returns greeting message. |
getEnv |
optional filter/group config object | grouped env object | Intended for debug visibility of runtime env vars. |
./startup.sh
source startup.sh
npm install
node index.js| Layer | Present | Tooling | Runs in CI |
|---|---|---|---|
| unit | no | none | no |
| integration | no | none | no |
| e2e api | no | none | no |
| e2e web | no | none | no |
No automated tests or CI workflow are currently configured in this repository.
- Containerized runtime is provided via
Dockerfile. - No external service dependency is required by default handlers.
MIT (LICENSE).