{"id":48005387,"url":"https://github.com/ildella/pipelean","last_synced_at":"2026-05-07T07:06:05.277Z","repository":{"id":344824224,"uuid":"1183192192","full_name":"ildella/pipelean","owner":"ildella","description":"A pragmatic library for sequential async operations with first-class error handling.","archived":false,"fork":false,"pushed_at":"2026-05-04T14:54:16.000Z","size":326,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-04T15:07:46.793Z","etag":null,"topics":["function-composition","functional-programming","javascript","javascript-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ildella.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T11:12:47.000Z","updated_at":"2026-05-04T14:54:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ildella/pipelean","commit_stats":null,"previous_names":["ildella/pipelean"],"tags_count":6,"template":false,"template_full_name":"ildella/lib-template","purl":"pkg:github/ildella/pipelean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ildella%2Fpipelean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ildella%2Fpipelean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ildella%2Fpipelean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ildella%2Fpipelean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ildella","download_url":"https://codeload.github.com/ildella/pipelean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ildella%2Fpipelean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32726691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["function-composition","functional-programming","javascript","javascript-library"],"created_at":"2026-04-04T13:04:16.798Z","updated_at":"2026-05-07T07:06:05.271Z","avatar_url":"https://github.com/ildella.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipelean\n\n[![npm version](https://img.shields.io/npm/v/pipelean.svg)](https://www.npmjs.com/package/pipelean)\n[![Build Status](https://github.com/ildella/pipelean/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ildella/pipelean/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSequential async pipelines with **first-class retry, error boundaries, and smart failure strategies**. Pragmatic, direct, no heavy abstractions. \n\nJust plain JavaScript. Eager execution. Perfect stack traces.\n\n```js\nconst result = await series([\n  () =\u003e fetchUser(id),\n  user  =\u003e validateAndEnrich(user),\n  final =\u003e saveToDatabase(final),\n  saved =\u003e sendWebhook(saved),\n], { strategy: collect });   // or failFast, retry(3), custom...\n```\n\n## Why Pipelean?\n\nTo stop writing the same try/catch and manual accumulation boilerplate.\n\n```js\n\n## This is bad coding\nfor await (const item of iterable) {\n  try {\n    const result = await execute(item)\n  } catch (error) {\n    // OH BOY\n    console.error(error)\n  }\n}\n\n## This does not have async transformations and error control\narray.filter(predicate).map(transform)\n````\n\nPipelean gives you:\n\n- `series` \u0026 `scan` for horizontal flows (independent or stateful steps)\n- `pipe` for vertical composition\n- `tryCatch` and `retry` middleware you can reuse across your app\n- Built-in error strategies with sensible defaults for each operation\n- Structured results and progress hooks — no silent crashes\n\n## The alternatives\n\nNeed parallel? → p-map\nWant lazy iterators? → iter-tools\nLove reactive streams? → RxJS / most.js\n\nWe believe Pipelean is a pragmatic middle path: sequential by design, with built-in error control and resiliency — so you stop rewriting the same boilerplate every time.\n\n## ESLint Plugin\n\nPipelean ships a small ESLint plugin that flags `.forEach()`, `.reduce()`, `.map(async ...)`, `for await...of`, and `Promise.*` static combinators, suggesting pipelean equivalents. It is a separate entry point — importing it does not pull in the runtime library.\n\n```js\nimport pipeleanPlugin from 'pipelean/eslint'\n\nexport default [\n  {\n    plugins: { pipelean: pipeleanPlugin },\n    rules: {\n      'pipelean/no-array-foreach': 'warn',          // suggests series()\n      'pipelean/no-array-reduce': 'warn',            // suggests scan()\n      'pipelean/no-array-map-async': 'warn',         // suggests series()\n      'pipelean/no-for-await-of': 'warn',            // suggests series()\n      'pipelean/no-promise-combinators': 'warn',     // suggests series() / tryCatch()\n    },\n  },\n]\n```\n\n## AI \u0026 Agentic Development\n\nPipelean is \"Agent-Ready.\" It ships with built-in **Skills** and an **Agent Persona** to help AI assistants (like Claude, Gemini CLI, or Cursor) write better code using this library.\n\n### 1. Install Skills\n\nThe easiest way to install the skills is using the Vercel [agent-skills](https://github.com/vercel-labs/skills) CLI:\n\n```sh\nnpx skills add https://github.com/ildella/pipelean/tree/master/skills\n```\n\nThis will install:\n- `pipelean-core`\n- `pipelean-functional-programming`\n\n### 2. (Experimental) using [skills-npm](https://github.com/antfu/skills-npm/)\n\n```sh\nyarn add -D skills-npm\nyarn skills-npm\n```\n\n## Documentation\n\n  * [Architecture](docs/architecture.md) : The philosophy and design principles.\n  * [Guide](docs/guide.md) : Core concepts and usage patterns.\n  * [Examples](docs/examples.md) - Practical usage examples for all functions\n  * [Reference](docs/reference.md) - Reference docs\n\n## Example\n\n```js\nimport { pipe, series } from 'pipelean'\n\nconst downloadSomething = async () =\u003e {...}\nconst transformSomething = () =\u003e {...}\nconst writeToDatabase = async () =\u003e {...}\n\nconst pipeline = await pipe(\n  downloadSomething,\n  transformSomething,\n  writeToDatabase,\n)\n\nconst {results, errors} = await series(items, pipeline, {\n  strategy: failFast,\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fildella%2Fpipelean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fildella%2Fpipelean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fildella%2Fpipelean/lists"}