⚠️ EXPERIMENTAL: This library is in early development and highly experimental. APIs may change without notice. Not recommended for production use.
A secure, production-ready Oak (Deno) web server optimized for serving Alpine.js applications with built-in development tools, security hardening, and automatic hot-reloading.
- Oak: v17.2.0
- Alpine.js: v3.15.8 (default configuration)
import { AlpineApp } from '@dx/alpine-server';
const app = new AlpineApp({
app: {
dev: true,
staticFilesPath: './public',
},
oak: {
listenOptions: { port: 3000 },
},
});
await app.run();Create a new Alpine Server project scaffold:
deno run -A jsr:@dx/alpine-server/cli new my-appOr with Deno 2.7+ create templates:
deno create jsr:@dx/alpine-server -- my-appWith options:
deno run -A jsr:@dx/alpine-server/cli new my-app --port 3000 --forcedeno create jsr:@dx/alpine-server -- my-app --port 3000 --forceFor more detailed information, please refer to the documentation in the docs folder:
MIT
Contributions welcome!