Installation
Get WakaPAC up and running in seconds. No build tools, no npm, no configuration - just add a script tag.
System Requirements
- Modern browser with ES6+ support (Chrome 51+, Firefox 54+, Safari 10+, Edge 15+)
- No build tools required
- No dependencies - WakaPAC is completely standalone
Installation Methods
Option 1: CDN (Recommended)
Add WakaPAC directly from CDN - perfect for getting started quickly:
<!-- WakaPAC core library -->
<script src="https://cdn.jsdelivr.net/gh/quellabs/wakapac@main/wakapac.min.js"></script>
<!-- Optional: WakaSync for HTTP functionality -->
<script src="https://cdn.jsdelivr.net/gh/quellabs/wakapac@main/wakasync.min.js"></script>
The CDN delivers WakaPAC globally cached and compressed. WakaSync is optional and only needed if you're making HTTP requests.
Option 2: Download Files
Download and host WakaPAC yourself:
# Download from GitHub
curl -O https://raw.githubusercontent.com/quellabs/wakapac/main/wakapac.min.js
curl -O https://raw.githubusercontent.com/quellabs/wakapac/main/wakasync.min.js
Then include in your HTML:
<script src="/js/wakapac.min.js"></script>
<script src="/js/wakasync.min.js"></script>
Adding WakaSync for HTTP Requests
If your application needs to make HTTP requests, include WakaSync:
<script src="https://cdn.jsdelivr.net/gh/quellabs/wakapac@main/wakapac.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/quellabs/wakapac@main/wakasync.min.js"></script>
<script>
wakaPAC('#app', {
users: [],
async init() {
// Using the global wakaSync instance
this.users = await wakaSync.get('/api/users');
}
});
</script>