TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
export function normalizeServerUrl(raw: string): string | null {
const trimmed = raw.trim()
if (!trimmed) return null
try {
const url = new URL(trimmed)
if (url.protocol !== 'http:' && url.protocol !== 'https:') return null
const path = url.pathname.replace(/\/+$/, '')
return `${url.protocol}//${url.host}${path}`
} catch {
return null
}
}