Interface | Implementation | Status |
---|---|---|
Server | Server (base) | ✔️ |
^ | API | ✔️ |
^ | Website | ✔️ |
^ | File | ✅ |
^ | Proxy | ✅ |
Response | (base) | ✔️ |
^ | JSON | ✔️ |
^ | Page | ✔️ |
- Install with
NPM
npm i --save @alox.sh/client
or YARN
yarn add @alox.sh/client
- Import
import type { WebsiteState } from '@alox.sh/client' // Declare export declare global { interface Window { __websiteState?: WebsiteState } }
- SPA (served from file system) - see
examples/spaDir
- SPA (embeded into the binary) - see
examples/spaEmbeded
- Any other type - this library is fully customizable to support virtually any application type