Skip to content

bykclk/crx-packager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRX Packager

A lightweight Go-based CLI tool to package Chrome extensions into CRX3 format.


🚀 Installation

go install github.com/bykclk/crx-packager@latest

⚡ Quick Start

Package an extension:

crx-packager pack ./my-extension

Outputs:

  • my-extension.crx
  • my-extension.pem (auto-generated)

🛠️ Common Commands

# Package with an existing key
crx-packager pack ./ext -k key.pem -o build/ext.crx

# Generate a new RSA key
crx-packager keygen mykey.pem

# Validate an extension
crx-packager validate ./ext

📦 Features

  • CRX3 packaging
  • RSA-2048 signing
  • manifest.json validation
  • Simple CLI
  • Usable as a Go library

🔧 Go Library Example

package main
import (
	"log"
	"github.com/bykclk/crx-packager/pkg/crx"
)

func main() {
	key, _ := crx.GenerateKeyPair()
	packager := crx.NewPackager("./ext", "ext.crx", key)
	log.Fatal(packager.Pack())
}

📝 License

MIT

About

A lightweight Go-based CLI and library for packaging Chrome extensions into CRX3 format with RSA signing and manifest validation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages