Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
/**
* On This Day route — past-year journal entries and Brain captures for the
* dashboard widget. The server owns the timezone-correct date key (same
* contract as /api/calendar/agenda).
*/
import { Router } from 'express';
import { getOnThisDay } from '../services/brainOnThisDay.js';
import { asyncHandler } from '../lib/errorHandler.js';
import { parsePagination } from '../lib/validation.js';
const router = Router();
router.get('/on-this-day', asyncHandler(async (req, res) => {
const { limit } = parsePagination(req.query, { defaultLimit: 8, maxLimit: 20 });
res.json(await getOnThisDay({ limit }));
}));
export default router;