npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@idriszade/process-enrich-apify

v0.1.0

Published

Pipeline-kit Process adapter for per-contact enrichment via Apify actors (B2B lead lookup, firmographic resolution).

Readme

@idriszade/process-enrich-apify

Pipeline-kit Process<RawContact, EnrichedContact> adapter for per-contact enrichment via Apify actors. Defaults target pipelinelabs/lead-scraper-apollo-zoominfo-lusha-ppe; the row mapper and input builder are pluggable for other lead-search actors.

Install

pnpm add @idriszade/process-enrich-apify @idriszade/core apify-client zod

Usage

import { createEnrichApifyProcess } from '@idriszade/process-enrich-apify';

const enrich = createEnrichApifyProcess({
  actorId: 'pipelinelabs/lead-scraper-apollo-zoominfo-lusha-ppe',
  defaultInput: { seniorityIncludes: ['c_suite', 'vp', 'director'] },
});

// Inside a kit pipeline, use via Pipeline.from(...).through(enrich)...
// Or call directly:
const result = await enrich.run(
  { email: '[email protected]', title: 'VP Sales' },
  ctx,
);
if (result.error === null) console.log(result.data.companyName);

Token resolution

Reads APIFY_TOKEN first, falls back to APIFY_API_TOKEN (pursuit's name) — pass apifyToken in config to override either env path.

Cost

PPE actor at $0.001/lead with totalResults: 1 per enrichment ≈ $0.001/contact. Within kit's $0.10/run cap by 100x.

Schema discipline

Both RawContactSchema and EnrichedContactSchema use mode='before'-equivalent .catch(undefined) defaults per feedback_pydantic_boundary_coercion.md — boundary validators must coerce, never reject batches.

Supported actor row shapes

The default row mapper targets two known schemas:

  1. Nested company.{...} (Apollo / pipelinelabs PPE actor) — top-level email, fullName, title, seniority, plus company: { name, domain, industry, employees, location: { country } }.
  2. Flat snake_case (legacy ZoomInfo / Lusha-derived actors)person_email, full_name / name, job_title, company_name, company_domain, etc.

If you point this adapter at an actor with a different output schema, supply a custom rowMapper:

const enrich = createEnrichApifyProcess({
  actorId: 'your-org/custom-actor',
  rowMapper: (row) => ({
    email: row.contactEmail,
    companyName: row.organizationName,
    // ...etc
  }),
});

When the default mapper resolves NO top-level identity fields (email, fullName, companyName, companyDomain), it logs a warning to console.warn with the unrecognized row keys. Downstream Zod validation then handles the row gracefully — actor schema drift never throws, only warns.

MCP server

Ships a stdio MCP server alongside the kit primitive:

npx -y @idriszade/process-enrich-apify

Exposes a single tool enrich_contact_apify. Wire into Claude Desktop / Cursor / Smithery via mcp.json.

License

MIT.