An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/pyspa/brbundle

brbundle package provides asset bundler's runtime that uses Brotli (https://github.com/google/brotli). Source repository is here: https://github.com/pyspa/brbundle To install runtime and commandline tool, type the following command: This package provides four kind of bundles to handle assets: 1. Embedding. Generate .go file that includes binary representation of asset files. This is best for libraries and so on that is needed to be go gettable. 2. Appended to executable. Generate .zip file internally and appended to executables. You can replace assets after building. 3. Single packed binary file. You can specify and import during runtime. I assume this used for DLC. 4. Folder. This is for debugging. You don't have to do anything to import asset brbundle searches assets the following orders: The following command generates .go file: The following command append assets to executable: The following command generates single packed file: The following command generates asset folder. You can use regular cp command even if you don't have to encrypto assets: It is easy to use the assets: Embedded assets and assets appended to executable are available by default. The following functions registers assets in single packed file and local folder: You can save the earth by using brbundle. brbundle middlewares brotli content directly when browser supports it. Currently, more than 90% browsers already support (https://caniuse.com/#feat=brotli). brbundle provides the following frameworks' middleware: net/http: These middlewares also support SPA(Single Page Application). More detail information is on Angular web site (https://angular.io/guide/deployment#routed-apps-must-fallback-to-indexhtml). All samples are in examples folder: https://github.com/pyspa/brbundle/tree/master/examples brbundle uses Brotli by default. If you pass --fast/-f option, brbundle uses Snappy (https://github.com/google/snappy) instead of Brotli. Snappy has low compression ratio, but very fast. brbundle supports encryption. You can generates encryption/decryption key by the following command: When creating bundles, you can pass the key via --crypto/-c option: Keys should be passed the following functions:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/pyspa/brbundle
License: Apache-2.0
Latest release: over 4 years ago
First release: almost 6 years ago
Namespace: github.com/pyspa
Stars: 8 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago