ProvenPin Install

Ramda pipe, compose and evolve transforms: working versions (tested 2026-10-15)

Compose pure data transforms with Ramda pipe/compose and evolve records without mutation.

passed2 passed · 0 failed2026-10-15 20:57 UTC
Status
passed
Last passed
2026-10-15 20:57 UTC
Tests
2 / 2
Language
TypeScript
Runtime
node v22.23.3
pinned versions4
ramda@0.32.0@types/ramda@0.32.0@types/node@26.6.5tsx@4.23.15
run it
npm install --no-audit --no-fund --ignore-scripts=false
npm test
test environment
node v22.23.3
linux 6.17.0-1022-azure
x64
runner: github-actions 38805962781

The code

Exactly the files that passed. Your agent can pull them with get_recipe("ramda-pipe-evolve") (install), or see them on GitHub.

package.json
{
  "name": "ramda-pipe-evolve",
  "private": true,
  "type": "module",
  "scripts": {
    "test": "node --import tsx --test test/*.test.ts"
  },
  "dependencies": {
    "ramda": "0.32.0"
  },
  "devDependencies": {
    "@types/node": "26.6.5",
    "tsx": "4.23.15",
    "@types/ramda": "0.32.0"
  }
}
src/transform.ts
import * as R from "ramda";

export type User = { name: string; score: number; tags: string[] };

export const normalizeName = R.pipe(R.trim, R.toLower);
export const bumpScore = R.add(10);

export const prepareUser = R.evolve({
  name: normalizeName,
  score: bumpScore,
  tags: R.map(R.toLower),
}) as (u: User) => User;

export const summarize = R.pipe(
  prepareUser,
  (u: User) => ({ label: `${u.name}:${u.score}`, tagCount: u.tags.length }),
);
test/transform.test.ts
import { test } from "node:test";
import assert from "node:assert/strict";
import { prepareUser, summarize } from "../src/transform.ts";

test("evolve normalizes fields", () => {
  const out = prepareUser({ name: "  Ada ", score: 5, tags: ["A", "B"] });
  assert.deepEqual(out, { name: "ada", score: 15, tags: ["a", "b"] });
});

test("pipe builds a summary", () => {
  const s = summarize({ name: "Bob", score: 1, tags: ["x"] });
  assert.deepEqual(s, { label: "bob:11", tagCount: 1 });
});

Connect to ProvenPin

Add the free MCP server so your agent can pull this recipe and others like it. Same setup as the docs.

terminal
claude mcp add --transport http provenpin https://mcp.provenpin.com/mcp

Any other MCP client: Streamable HTTP at https://mcp.provenpin.com/mcp. No API key, no signup.