New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@purinton/knit

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@purinton/knit

GitHub webhook handler and deployment automation tool. Listens for GitHub webhook events, validates signatures, updates repositories, runs deployment commands, and sends notifications.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Purinton Dev

@purinton/knit npm versionlicensebuild status

A GitHub webhook handler and deployment automation tool. Knit listens for GitHub webhook events, validates signatures, updates local repositories, runs deployment commands, and sends notifications (e.g., to Discord). Use this as a foundation for automating deployments and notifications for your projects.

Table of Contents

Features

  • GitHub webhook listener (Express server)
  • Signature validation for security
  • Automated repository updates and deployment commands
  • Discord webhook notifications for deployments and errors
  • Interactive CLI wizard for repository configuration
  • Pre-configured for Node.js (ESM)
  • Environment variable support via dotenv
  • Logging and signal handling via @purinton/common
  • Jest for testing
  • MIT License

Getting Started

  • Clone this template:

    git clone https://github.com/purinton/knit.git
    cd knit
    npm install
    
  • Update project details:

    • Edit package.json (name, description, author, etc.)
    • Update this README.md as needed
    • Change the license if required
  • Configure your repositories:

    • Run the interactive wizard:

      ./wizard.mjs
      
    • This will guide you through setting up deployment paths, commands, and notification URLs for each repository.

  • Set up your GitHub webhook:

    • Point your repository’s webhook to your Knit server URL (e.g., https://yourdomain.com/)
    • Use content type application/json
    • Set the webhook secret to match your .env file’s GITHUB_WEBHOOK_SECRET

Development

  • Main entry: knit.mjs

  • Start your app:

    ./knit.mjs
    
  • Add your code in new files and import as needed.

Testing

  • Run tests with:

    npm test
    
  • Add your tests in the tests folder or alongside your code.

Customization

  • Extend the logging, notification, or deployment logic as needed.
  • Add dependencies and scripts to fit your project.
  • Remove or modify template files and sections.

Support

For help, questions, or to chat with the author and community, visit:

DiscordPurinton Dev

Purinton Dev on Discord

License

MIT © 2025 Russell Purinton

Keywords

knit

FAQs

Package last updated on 11 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts