Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

byteguard

Encodes JS bundles into a binary format for casual source code protection.

Not encryption, not DRM — it raises the cost of reading a shipped bundle from open the file to reverse-engineer the loader. Anything the runtime executes is still recoverable by a determined attacker.

Packages

Package Role
byteguard Bundler-agnostic core — encoder, loader generation, algorithms
vite-plugin-byteguard Vite adapter

The core has no vite or rollup imports, so other bundler adapters can be added without touching it.

Usage

// vite.config.ts
import byteguard from 'vite-plugin-byteguard'

export default {
  plugins: [
    byteguard({
      algorithm: 'xor',   // or 'aes-gcm'
      exclude: ['**/worker-*.js']
    })
  ]
}

See packages/vite-plugin-byteguard for the full option list.

License

MIT

About

Vite plugin that encodes JS bundles into binary format for casual source code protection

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages