@api.global/typedserver

Documentation for @api.global/typedserver

readme.md for @api.global/typedserver

A powerful TypeScript-first web server framework for building modern full-stack applications. Features static file serving, live reload, type-safe API integration, decorator-based routing, service worker support, and edge computing capabilities. Part of the @api.global ecosystem.

Issue Reporting and Security

For reporting bugs, issues, or security vulnerabilities, please visit community.foss.global/. This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a code.foss.global/ account to submit Pull Requests directly.

✨ Features

πŸ“¦ Installation

# Using pnpm (recommended)
pnpm add @api.global/typedserver

# Using npm
npm install @api.global/typedserver

πŸš€ Quick Start

Basic Server

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({
  serveDir: './public',
  cors: true,
  watch: true,           // Enable file watching
  injectReload: true,    // Inject live reload script
});

await server.start();
console.log('Server running on port 3000!');

Full Configuration

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({
  port: 8080,
  serveDir: './dist',
  cors: true,

  // Development
  watch: true,
  injectReload: true,
  noCache: true,            // Disable browser caching

  // Production
  forceSsl: true,
  spaFallback: true,        // Serve index.html for client-side routes

  // SEO
  sitemap: true,
  feed: true,
  robots: true,
  domain: 'example.com',
  blockWaybackMachine: false,

  // PWA
  appVersion: 'v1.0.0',
  manifest: {
    name: 'My App',
    short_name: 'myapp',
    start_url: '/',
    display: 'standalone',
    background_color: '#ffffff',
    theme_color: '#000000',
  },

  // Compression
  compression: {
    enabled: true,
    algorithms: ['br', 'gzip'],
    threshold: 1024,
  },
});

await server.start();

πŸ›£οΈ Routing

TypedServer uses a unified routing system powered by @push.rocks/smartserve. You can add routes using decorators or the programmatic API.

Decorator-Based Routing

Create clean, expressive controllers using decorators:

import * as smartserve from '@push.rocks/smartserve';

@smartserve.Route('/api/users')
class UserController {
  @smartserve.Get('/')
  async listUsers(ctx: smartserve.IRequestContext): Promise<Response> {
    const users = await getUsersFromDb();
    return new Response(JSON.stringify(users), {
      headers: { 'Content-Type': 'application/json' },
    });
  }

  @smartserve.Get('/:id')
  async getUser(ctx: smartserve.IRequestContext): Promise<Response> {
    const userId = ctx.params.id;
    const user = await getUserById(userId);
    return new Response(JSON.stringify(user), {
      headers: { 'Content-Type': 'application/json' },
    });
  }

  @smartserve.Post('/')
  async createUser(ctx: smartserve.IRequestContext): Promise<Response> {
    const userData = await ctx.json();
    const newUser = await createUserInDb(userData);
    return new Response(JSON.stringify(newUser), {
      status: 201,
      headers: { 'Content-Type': 'application/json' },
    });
  }
}

// Register the controller
smartserve.ControllerRegistry.registerInstance(new UserController());

Programmatic Routes with addRoute()

Add routes dynamically using the addRoute() API:

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({ serveDir: './public', cors: true });

// Simple route
server.addRoute('/api/health', 'GET', async (ctx) => {
  return new Response(JSON.stringify({ status: 'ok' }), {
    headers: { 'Content-Type': 'application/json' },
  });
});

// Route with parameters (Express-style :param syntax)
server.addRoute('/api/items/:id', 'GET', async (ctx) => {
  const itemId = ctx.params.id;
  return new Response(JSON.stringify({ id: itemId }), {
    headers: { 'Content-Type': 'application/json' },
  });
});

// Wildcard routes
server.addRoute('/files/*path', 'GET', async (ctx) => {
  const filePath = ctx.params.path;
  return new Response(`Requested: ${filePath}`);
});

await server.start();

πŸ”Œ Type-Safe API Integration

Adding TypedRequest Handlers

import { TypedServer } from '@api.global/typedserver';
import * as typedrequest from '@api.global/typedrequest';

// Define your typed request interface
interface IGetUser extends typedrequest.implementsTR<IGetUser> {
  method: 'getUser';
  request: { userId: string };
  response: { name: string; email: string };
}

const server = new TypedServer({ serveDir: './public', cors: true });

// Add a typed handler directly to the server's router
server.typedrouter.addTypedHandler<IGetUser>(
  new typedrequest.TypedHandler('getUser', async (data) => {
    return { name: 'John Doe', email: 'john@example.com' };
  })
);

await server.start();

Real-Time WebSocket Communication

TypedServer automatically sets up TypedSocket for real-time communication:

import { TypedServer } from '@api.global/typedserver';
import * as typedrequest from '@api.global/typedrequest';

interface IChatMessage extends typedrequest.implementsTR<IChatMessage> {
  method: 'sendMessage';
  request: { text: string; room: string };
  response: { messageId: string; timestamp: number };
}

const server = new TypedServer({ serveDir: './public', cors: true });

// Handle real-time messages
server.typedrouter.addTypedHandler<IChatMessage>(
  new typedrequest.TypedHandler('sendMessage', async (data) => {
    return { messageId: crypto.randomUUID(), timestamp: Date.now() };
  })
);

await server.start();

// Push messages to connected clients
const connections = await server.typedsocket.findAllTargetConnectionsByTag('allClients');
for (const conn of connections) {
  // Push to specific clients via TypedSocket
}

☁️ Edge Worker (Cloudflare Workers)

Deploy your application to the edge with Cloudflare Workers:

import { EdgeWorker, DomainRouter } from '@api.global/typedserver/edgeworker';

const worker = new EdgeWorker();

// Configure domain routing with caching
worker.domainRouter.addDomainInstruction({
  domainPattern: '*.example.com',
  originUrl: 'https://origin.example.com',
  type: 'cache',
  cacheConfig: { maxAge: 3600 },
});

// Pass-through to origin for API routes
worker.domainRouter.addDomainInstruction({
  domainPattern: 'api.example.com',
  originUrl: 'https://api-origin.example.com',
  type: 'origin',
});

// Cloudflare Worker entry point
export default {
  fetch: worker.fetchFunction.bind(worker),
};

πŸ”§ Service Worker Client

Manage service workers in your frontend application:

import { getServiceworkerClient } from '@api.global/typedserver/web_serviceworker_client';

// Initialize and register service worker
const swClient = await getServiceworkerClient({
  pollInterval: 30000,  // Poll for updates every 30s
});

// The service worker handles:
// - Cache invalidation from server
// - Offline support
// - Background sync
// - Version updates

πŸ“¦ Bundled Content

Serve pre-bundled content directly from memory β€” useful for single-binary deployments or embedding assets in server-side code:

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({
  cors: true,
  bundledContent: [
    {
      path: '/index.html',
      contentBase64: Buffer.from('<html><body>Hello!</body></html>').toString('base64'),
    },
    {
      path: '/app.js',
      contentBase64: Buffer.from('console.log("loaded")').toString('base64'),
    },
  ],
  spaFallback: true,
});

await server.start();

Bundled content takes priority over filesystem serving and supports ETag-based conditional requests with immutable caching.

πŸ›‘οΈ Security Headers

Configure comprehensive security headers including CSP, HSTS, and more:

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({
  serveDir: './dist',
  cors: true,

  securityHeaders: {
    // Content Security Policy
    csp: {
      defaultSrc: ["'self'"],
      scriptSrc: ["'self'", "'unsafe-inline'", 'https://cdn.example.com'],
      styleSrc: ["'self'", "'unsafe-inline'"],
      imgSrc: ["'self'", 'data:', 'https:'],
      connectSrc: ["'self'", 'wss:', 'https://api.example.com'],
      fontSrc: ["'self'", 'https://fonts.gstatic.com'],
      frameAncestors: ["'none'"],
      upgradeInsecureRequests: true,
    },

    // HSTS (HTTP Strict Transport Security)
    hstsMaxAge: 31536000,         // 1 year
    hstsIncludeSubDomains: true,
    hstsPreload: true,

    // Other security headers
    xFrameOptions: 'DENY',
    xContentTypeOptions: true,
    xXssProtection: true,
    referrerPolicy: 'strict-origin-when-cross-origin',

    // Cross-Origin policies
    crossOriginOpenerPolicy: 'same-origin',
    crossOriginEmbedderPolicy: 'require-corp',
    crossOriginResourcePolicy: 'same-origin',

    // Permissions Policy
    permissionsPolicy: {
      camera: [],
      microphone: [],
      geolocation: ['self'],
    },
  },
});

await server.start();

Security Headers Reference

Header Option Description
Content-Security-Policy csp Controls resources the browser can load
Strict-Transport-Security hstsMaxAge, hstsIncludeSubDomains, hstsPreload Forces HTTPS connections
X-Frame-Options xFrameOptions Prevents clickjacking attacks
X-Content-Type-Options xContentTypeOptions Prevents MIME-sniffing
X-XSS-Protection xXssProtection Legacy XSS filter
Referrer-Policy referrerPolicy Controls referrer information
Permissions-Policy permissionsPolicy Controls browser features
Cross-Origin-Opener-Policy crossOriginOpenerPolicy Isolates browsing context
Cross-Origin-Embedder-Policy crossOriginEmbedderPolicy Controls cross-origin embedding
Cross-Origin-Resource-Policy crossOriginResourcePolicy Controls cross-origin resource sharing

πŸ—œοΈ Compression

TypedServer supports automatic response compression using Brotli and Gzip. Compression is powered by smartserve and enabled by default.

Configuration

import { TypedServer } from '@api.global/typedserver';

const server = new TypedServer({
  serveDir: './dist',
  cors: true,

  // Enable with defaults (brotli + gzip, threshold: 1024 bytes)
  compression: true,

  // Or disable completely
  // compression: false,

  // Or configure in detail
  // compression: {
  //   enabled: true,
  //   algorithms: ['br', 'gzip'],    // Preferred order
  //   threshold: 1024,               // Min size to compress (bytes)
  //   level: 4,                      // Compression level (1-11 for brotli, 1-9 for gzip)
  //   exclude: ['/api/stream/*'],    // Skip these paths
  // },
});

Compression Options Reference

Option Type Default Description
enabled boolean true Enable/disable compression
algorithms string[] ['br', 'gzip'] Preferred algorithms in order
threshold number 1024 Minimum response size (bytes) to compress
level number 4 Compression level (1-11 for brotli, 1-9 for gzip)
compressibleTypes string[] auto MIME types to compress
exclude string[] [] Path patterns to skip

πŸ“‹ Configuration Reference

IServerOptions

Option Type Default Description
serveDir string β€” Directory to serve static files from
bundledContent IBundledContentItem[] β€” Base64-encoded files to serve from memory
port number | string 3000 Port to listen on
cors boolean true Enable CORS headers
watch boolean false Watch files for changes
injectReload boolean false Inject live reload script into HTML
noCache boolean false Disable browser caching via response headers
forceSsl boolean false Redirect HTTP to HTTPS
spaFallback boolean false Serve index.html for non-file routes
sitemap boolean false Generate sitemap at /sitemap
feed boolean false Generate RSS feed at /feed
robots boolean false Serve robots.txt
domain string β€” Domain name for sitemap/feeds
appVersion string β€” Application version string
manifest object β€” Web App Manifest configuration
publicKey string β€” SSL certificate
privateKey string β€” SSL private key
defaultAnswer function β€” Custom default response handler
feedMetadata object β€” RSS feed metadata options
blockWaybackMachine boolean false Block Wayback Machine archiving
securityHeaders ISecurityHeaders β€” Security headers configuration
compression ICompressionConfig | boolean true Response compression configuration

πŸ—οΈ Package Exports

@api.global/typedserver
β”œβ”€β”€ .                           β€” Main server (TypedServer)
β”œβ”€β”€ /backend                    β€” Alias for main server
β”œβ”€β”€ /infohtml                   β€” Info HTML page generator
β”œβ”€β”€ /edgeworker                 β€” Cloudflare Workers edge computing
β”œβ”€β”€ /web_inject                 β€” Live reload script injection
β”œβ”€β”€ /web_serviceworker          β€” Service Worker implementation
└── /web_serviceworker_client   β€” Service Worker client utilities

πŸ”„ Utility Servers

Pre-configured server templates with best practices built-in.

UtilityWebsiteServer

Optimized for modern web applications with SPA support, live reload, and caching disabled by default during development:

import { utilityservers } from '@api.global/typedserver';

const websiteServer = new utilityservers.UtilityWebsiteServer({
  serveDir: './dist',
  domain: 'example.com',

  // SPA fallback enabled by default
  spaFallback: true,   // default: true

  // Security headers
  securityHeaders: {
    csp: {
      defaultSrc: ["'self'"],
      scriptSrc: ["'self'", "'unsafe-inline'"],
      styleSrc: ["'self'", "'unsafe-inline'"],
    },
    xFrameOptions: 'SAMEORIGIN',
    xContentTypeOptions: true,
  },

  // Compression (enabled by default)
  compression: true,

  // Other options
  cors: true,          // default: true
  forceSsl: false,     // default: false
  appSemVer: '1.0.0',
  port: 3000,          // default: 3000

  // Optional ads.txt entries (only served if configured)
  adsTxt: [
    'google.com, pub-1234567890, DIRECT, f08c47fec0942fa0',
  ],

  // RSS feed metadata
  feedMetadata: {
    title: 'My Blog',
    description: 'A cool blog',
    link: 'https://example.com',
  },

  // Add custom routes
  addCustomRoutes: async (typedserver) => {
    typedserver.addRoute('/api/custom', 'GET', async () => {
      return new Response('Custom route!');
    });
  },
});

await websiteServer.start();

UtilityServiceServer

Optimized for API services with auto-generated info page:

import { utilityservers } from '@api.global/typedserver';

const serviceServer = new utilityservers.UtilityServiceServer({
  serviceName: 'My API',
  serviceVersion: '1.0.0',
  serviceDomain: 'api.example.com',
  port: 8080,

  // Add custom routes
  addCustomRoutes: async (typedserver) => {
    typedserver.addRoute('/api/status', 'GET', async () => {
      return new Response(JSON.stringify({ status: 'healthy' }), {
        headers: { 'Content-Type': 'application/json' },
      });
    });
  },
});

await serviceServer.start();

🧩 Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      TypedServer                            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ SmartServe  β”‚  β”‚ TypedRouter β”‚  β”‚    TypedSocket      β”‚ β”‚
β”‚  β”‚ (Routing)   β”‚  β”‚ (RPC)       β”‚  β”‚    (WebSocket)      β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚         β”‚                β”‚                    β”‚             β”‚
β”‚         β–Ό                β–Ό                    β–Ό             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚              Request Handler Pipeline               β”‚   β”‚
β”‚  β”‚  1. Controller Registry (Decorated Routes)          β”‚   β”‚
β”‚  β”‚  2. Bundled Content (in-memory)                     β”‚   β”‚
β”‚  β”‚  3. HTML Injection (live reload)                    β”‚   β”‚
β”‚  β”‚  4. Static File Serving (filesystem)                β”‚   β”‚
β”‚  β”‚  5. SPA Fallback                                    β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the LICENSE file.

Please note: The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.

Trademarks

This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.

Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.

Company Information

Task Venture Capital GmbH Registered at District Court Bremen HRB 35230 HB, Germany

By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.

changelog.md for @api.global/typedserver

2026-03-23 - 8.4.6 - fix(deps)

bump @push.rocks/smartwatch to ^6.4.0

2026-03-23 - 8.4.5 - fix(build)

migrate build tooling to tsbuild v4 and tsbundle config while updating sitemap integration

2026-03-23 - 8.4.4 - fix(utilityservers)

enable file watching whenever a static serve directory is configured

2026-03-23 - 8.4.3 - fix(websiteserver)

only enable file watching when reload injection is active

2026-03-03 - 8.4.2 - fix(ts_web_inject)

improve ReloadChecker resilience and TypedSocket handling

2026-03-03 - 8.4.1 - fix(statuspill)

wait for document.body before appending status pill when script loads before

is parsed; defer via DOMContentLoaded or requestAnimationFrame

2026-02-24 - 8.4.0 - feat(utilityservers)

add injectReload and noCache options and enable dev features by default

2026-02-24 - 8.3.1 - fix(typedserver)

no changes detected β€” no version bump needed

2026-01-23 - 8.3.0 - feat(typedserver)

add noCache option to disable client-side caching and set no-cache headers on responses

2026-01-23 - 8.2.0 - feat(typedserver)

serve bundled in-memory content with caching and reload injection

2025-12-22 - 8.1.0 - feat(types)

export IRequestContext type from @push.rocks/smartserve for consumers to use in route handlers

2025-12-20 - 8.0.0 - BREAKING CHANGE(typedserver)

migrate route handlers to use IRequestContext and lazy body parsers

2025-12-08 - 7.11.1 - fix(dependencies)

Upgrade dependencies: bump @design.estate/dees-catalog to v3.1.1 and @push.rocks/smartwatch to v6.0.0; update migration notes in readme.hints.md

2025-12-08 - 7.11.0 - feat(typedserver)

Add configurable response compression (Brotli + Gzip) with defaults enabled and documentation

2025-12-05 - 7.10.2 - fix(docs)

Update README with routing examples and utility server config; bump @cloudflare/workers-types and @push.rocks/smartserve versions

2025-12-05 - 7.10.1 - fix(typedserver)

Use smartserve ControllerRegistry for custom routes and remove custom route parsing

2025-12-05 - 7.10.0 - feat(website-server)

Add configurable ads.txt support to website server

2025-12-05 - 7.9.0 - feat(typedserver)

Add configurable security headers and default SPA behavior

Introduce structured security headers support (CSP, HSTS, X-Frame-Options, COOP/COEP/CORP, Permissions-Policy, Referrer-Policy, X-XSS-Protection, etc.) and apply them to responses and OPTIONS preflight. Expose configuration via the server API and document usage. Also update UtilityWebsiteServer defaults (SPA fallback enabled by default) and related docs.

2025-12-05 - 7.8.18 - fix(readme)

Update README to reflect new features and updated examples (SPA/PWA/Edge/ServiceWorker) and clarify API usage

2025-12-04 - 7.8.11 - fix(web_inject)

Improve logging in web injection (TypedRequest) and update dees-comms dependency

2025-12-04 - 7.8.0 - feat(serviceworker)

Add TypedRequest traffic monitoring and SW dashboard 'Requests' panel

2025-12-04 - 7.7.1 - fix(web_serviceworker)

Standardize DeesComms message format in service worker backend

2025-12-04 - 7.7.0 - feat(typedserver)

Add SPA fallback support to TypedServer

2025-12-04 - 7.6.0 - feat(typedserver)

Remove legacy Express-based servertools, drop express deps, and refactor TypedServer to SmartServe + typedrouter with CORS support

2025-12-04 - 7.5.0 - feat(serviceworker)

Add real-time service worker push updates and DeesComms integration (metrics, events, resource caching)

2025-12-04 - 7.4.1 - fix(web_serviceworker)

Improve service worker persistence, metrics and caching robustness

2025-12-04 - 7.4.0 - feat(serviceworker)

Add persistent event store, cumulative metrics and dashboard events UI for service worker observability

2025-12-04 - 7.3.0 - feat(serviceworker)

Modernize SW dashboard UI and improve service worker backend and server tooling

2025-12-04 - 7.2.0 - feat(serviceworker)

Add service worker status updates, EventBus and UI status pill for realtime observability

2025-12-04 - 7.1.0 - feat(swdash)

Add live speedtest progress UI to service worker dashboard

2025-12-04 - 7.0.0 - BREAKING CHANGE(serviceworker)

Move serviceworker speedtest to time-based chunked transfers and update dashboard/server contract

2025-12-04 - 6.8.1 - fix(web_serviceworker)

Move service worker initialization to init.ts and remove exports from service worker entrypoint to avoid ESM bundle output

2025-12-04 - 6.8.0 - feat(swdash)

Add SW-Dash (Lit-based service worker dashboard), bundle & serve it; improve servertools and static handlers

2025-12-04 - 6.7.0 - feat(web_serviceworker)

Add per-resource metrics and request deduplication to service worker cache manager

2025-12-04 - 6.6.0 - feat(web_serviceworker)

Enable service worker dashboard speedtests via TypedSocket, expose ServiceWorker instance to dashboard, and add server-side speedtest handler

2025-12-04 - 6.5.0 - feat(serviceworker)

Add server-driven service worker cache invalidation and TypedSocket integration

2025-12-04 - 6.4.0 - feat(serviceworker)

Add speedtest support to service worker and dashboard

2025-12-04 - 6.3.0 - feat(web_serviceworker)

Add advanced service worker subsystems: cache deduplication, metrics, update & network managers, event bus and dashboard

2025-12-04 - 6.2.0 - feat(web_serviceworker)

Add service-worker dashboard and request deduplication; improve caching, metrics and error handling

2025-12-04 - 6.1.0 - feat(web_serviceworker)

Enhance service worker subsystem: add metrics, event bus, error handling, config and caching/update improvements; make client connection & polling robust

2025-12-04 - 6.0.1 - fix(web_inject)

Use TypedSocket status API in web_inject and bump dependencies

2025-12-03 - 6.0.0 - BREAKING CHANGE(servertools.Server.addTypedSocket)

Deprecate Server.addTypedSocket and upgrade typedsocket to v4; make addTypedSocket a no-op and log a deprecation warning. Bump tsbundle devDependency.

2025-12-02 - 5.0.0 - BREAKING CHANGE(devtools)

Switch /reloadcheck endpoint from GET to POST in DevToolsController

2025-12-02 - 4.1.1 - fix(classes.typedserver)

Instantiate and register DevToolsController only when injectReload is enabled; compile ControllerRegistry routes after registration

2025-12-02 - 4.1.0 - feat(TypedServer)

Integrate SmartServe controller routing; add built-in routes controller and refactor TypedServer to use controllers and FileServer

2025-12-02 - 4.0.0 - BREAKING CHANGE(typedserver)

Migrate to new push.rocks packages and async smartfs API; replace smartchok with smartwatch; update deps and service worker handling

2025-11-19 - 3.0.80 - fix(dependencies)

Bump dependencies and devDependencies to updated versions

2025-09-03 - 3.0.79 - fix(servertools)

Normalize Express wildcard parameter notation to /{*splat} across server routes and handlers; add local Claude settings

2025-09-03 - 3.0.78 - fix(servertools)

Fix wildcard path extraction for static/proxy handlers, correct serviceworker route, add local settings and test typo fix

2025-08-17 - 3.0.77 - fix(servertools)

Adjust route wildcard patterns and CORS handling; update serviceworker and SSL redirect patterns; bump express dependency; add local Claude settings

2025-08-16 - 3.0.76 - fix(handlerproxy)

Use SmartRequest API and improve proxy/asset response handling; update tests and bump dependencies; add local project configuration files

2025-08-16 - 3.0.75 - fix(deps)

Update dependencies, test tooling and test imports; enhance npm test script

2025-04-12 - 3.0.74 - fix(commit-info)

chore: update commit metadata (no source code changes)

2025-04-11 - 3.0.73 - fix(metadata)

Update repository URLs and metadata to reflect the new organization scope

2025-04-11 - 3.0.72 - fix(project)

chore: no changes - commit metadata update

2025-04-11 - 3.0.71 - fix(serviceworker)

Improve error handling and logging in service worker backend and network manager; update multiple dependency versions and packageManager settings.

2025-03-16 - 3.0.70 - fix(TypedServer)

Improve error handling in server startup and response buffering. Validate configuration for reload injections, wrap file watching and TypedSocket initialization in try/catch blocks, enhance client notification and stop procedures, and ensure proper Buffer conversion in the proxy handler.

2025-03-16 - 3.0.69 - fix(servertools)

Fix compression stream creation returns, handler proxy buffer conversion, and sitemap URL concatenation

2025-02-07 - 3.0.68 - fix(cache-manager)

Simplify cache control headers in cache manager

2025-02-06 - 3.0.67 - fix(serviceworker)

Enhance header security for cached resources in service worker

2025-02-06 - 3.0.66 - fix(serviceworker)

Improve error handling and logging in cache manager and update manager.

2025-02-04 - 3.0.65 - fix(readme)

Update documentation with advanced usage and examples

2025-02-04 - 3.0.64 - fix(serviceworker)

Improve cache handling and response header management in service worker.

2025-02-04 - 3.0.63 - fix(core)

Refactored caching strategy for service worker to improve compatibility and performance.

2025-02-04 - 3.0.62 - fix(Service Worker)

Refactor and clean up the cache logic in the Service Worker to improve maintainability and handle Safari-specific cache behavior.

2025-02-04 - 3.0.61 - fix(ServiceWorkerCacheManager)

Fixed caching mechanism to better support Safari's handling of soft-cached domains.

2025-02-04 - 3.0.61 - fix(ServiceWorkerCacheManager)

Fixed caching mechanism to better support Safari's handling of soft-cached domains.

2025-02-04 - 3.0.61 - fix(ServiceWorkerCacheManager)

Fixed caching mechanism to better support Safari's handling of soft-cached domains.

2025-02-04 - 3.0.60 - fix(cachemanager)

Improve cache management and error handling

2025-02-03 - 3.0.59 - fix(serviceworker)

Fixed CORS and Cache Control handling for Service Worker

2025-02-03 - 3.0.58 - fix(network-manager)

Refined network management logic for better offline handling.

2025-02-03 - 3.0.57 - fix(updateManager)

Refine cache management for service worker updates.

2025-02-03 - 3.0.56 - fix(cachemanager)

Adjust cache control headers and fix redundant code

2025-01-28 - 3.0.55 - fix(server)

Fix response content manipulation for HTML files with injectReload

2025-01-28 - 3.0.54 - fix(servertools)

Fixed an issue with compression results handling in HandlerStatic where content was always being written even if not compressed.

2024-12-26 - 3.0.53 - fix(infohtml)

Remove Sentry script and logo from HTML template

2024-12-25 - 3.0.52 - fix(dependencies)

Bump package versions in dependencies and exports.

2024-08-27 - 3.0.51 - fix(core)

Update dependencies and fix service worker cache manager and task manager functionalities

2024-05-25 - 3.0.43 to 3.0.50 - Core

Routine updates and bug fixes

2024-05-23 - 3.0.37 to 3.0.42 - Core

Routine updates and bug fixes

2024-05-17 - 3.0.37 - Core

Routine update and bug fix

2024-05-14 - 3.0.33 to 3.0.36 - Core

Routine updates and bug fixes

2024-05-13 - 3.0.31 to 3.0.32 - Core

Routine updates and bug fixes

2024-05-11 - 3.0.29 to 3.0.31 - Core

Routine updates and bug fixes

2024-04-19 - 3.0.27 to 3.0.28 - Core

Routine updates and bug fixes

2024-04-14 - 3.0.27 - Documentation

Updated Documentation

2024-03-01 - 3.0.25 to 3.0.26 - Core

Routine updates and bug fixes

2024-02-21 - 3.0.20 to 3.0.24 - Core

Routine updates and bug fixes

2024-01-19 - 3.0.19 to 3.0.20 - Core

Routine updates and bug fixes

2024-01-09 - 3.0.14 to 3.0.18 - Core

Routine updates and bug fixes

2024-01-08 - 3.0.11 to 3.0.13 - Core

Routine updates and bug fixes

2024-01-07 - 3.0.9 to 3.0.10 - Core

Routine updates and bug fixes

2023-11-06 - 3.0.8 to 3.0.9 - Core

Routine updates and bug fixes

2023-10-23 - 3.0.6 to 3.0.7 - Core

Routine updates and bug fixes

2023-10-20 - 3.0.5 to 3.0.6 - Core

Routine updates and bug fixes

2023-09-21 - 3.0.4 to 3.0.5 - Core

Routine updates and bug fixes

2023-08-06 - 3.0.2 to 3.0.3 - Core

Routine updates and bug fixes

2023-08-03 - 3.0.1 to 3.0.0 - Core

Routine updates and bug fixes

2023-08-03 - 2.0.65 - Core

Breaking change in core update

2023-07-02 - 2.0.59 to 2.0.64 - Core

Routine updates and bug fixes

2023-07-01 - 2.0.54 to 2.0.58 - Core

Routine updates and bug fixes

2023-06-12 - 2.0.53 - Core

Routine update and bug fix

2023-04-10 - 2.0.52 to 2.0.53 - Core

Routine updates and bug fixes

2023-04-04 - 2.0.49 to 2.0.51 - Core

Routine updates and bug fixes

2023-03-31 - 2.0.45 to 2.0.48 - Core

Routine updates and bug fixes

2023-03-30 - 2.0.37 to 2.0.44 - Core

Routine updates and bug fixes

2023-03-29 - 2.0.33 to 2.0.36 - Core

Routine updates and bug fixes