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

@coasy/piece-coasy

v0.1.18

Published

This is the Coasy integration piece for Activepieces, providing actions and triggers to interact with the Coasy platform for funnel and webinar management.

Readme

Coasy Piece for Activepieces

This is the Coasy integration piece for Activepieces, providing actions and triggers to interact with the Coasy platform for funnel and webinar management.

Overview

The Coasy piece includes:

  • Actions: Create funnel participants
  • Triggers: New funnel participants, new webinar participants, new auth events
  • Authentication: Custom auth with base URL and API key

Development Setup

Prerequisites

  1. Clone the activepieces repository
  2. Install dependencies: npm install
  3. Ensure you're in the root directory of the activepieces monorepo

Development Commands

Building the Piece

# Build the coasy piece specifically
nx build pieces-coasy

# Build with watch mode for development
nx build pieces-coasy --watch

Testing

# Run tests for the coasy piece
nx test pieces-coasy

# Run tests with watch mode
nx test pieces-coasy --watch

Linting

# Lint the coasy piece
nx lint pieces-coasy

# Auto-fix lint issues
nx lint pieces-coasy --fix

Development Workflow

1. Start Development Environment

# Start the full development environment (frontend + backend + engine + pieces)
npm run dev

# Or start just backend services if only testing the piece
npm run dev:backend

2. Testing Your Changes

  • Navigate to http://localhost:4200 (frontend)
  • Create a new flow and add Coasy actions/triggers
  • Test authentication with your Coasy credentials
  • Verify actions and triggers work as expected

3. Adding New Features

Adding a New Action:

  1. Create a new file in src/lib/actions/
  2. Export the action from src/index.ts
  3. Follow the existing patterns in create-funnel-participant.ts

Adding a New Trigger:

  1. Create a new file in src/lib/triggers/
  2. Export the trigger from src/index.ts
  3. Follow the existing patterns in new-funnel-participant.ts

4. File Structure

packages/pieces/community/coasy/
├── README.md                 # This file
├── package.json             # Package configuration
├── project.json             # Nx project configuration
├── tsconfig.json           # TypeScript config
└── src/
    ├── index.ts            # Main piece definition and exports
    └── lib/
        ├── actions/        # Action implementations
        ├── triggers/       # Trigger implementations
        └── common/         # Shared utilities

Code Standards

Authentication

The piece uses custom authentication with:

  • baseUrl: Coasy instance base URL
  • apiKey: API key for authentication

Error Handling

  • Use proper error messages for user-facing errors
  • Handle API errors gracefully
  • Validate inputs before making API calls

Properties

  • Use descriptive displayName and description for all properties
  • Mark required fields appropriately
  • Use proper property types from @activepieces/pieces-framework

Testing in Activepieces

  1. Authentication Testing:

    • Verify connection works with valid credentials
    • Test error handling with invalid credentials
  2. Action Testing:

    • Test with valid inputs
    • Test error scenarios
    • Verify data transformation
  3. Trigger Testing:

    • Set up webhooks/polling as needed
    • Test trigger conditions
    • Verify payload structure

Publishing

The piece is published as @coasy/piece-coasy to npm. Version is currently 0.0.13.

To publish a new version:

  1. Update the version in package.json in Coasy community folder (e.g., from 0.0.13 to 0.0.14)
  2. Build the package with:
    npm run build-piece coasy
  3. Navigate to the dist folder, where is the output:
    cd dist/packages/pieces/community/coasy  
  4. Here check the content, delete tgz and publish directly to npm
 npm publish

Note: The monorepo's npm run publish-piece script currently has dependency resolution issues. Use the direct npm publish method above instead.

Resources