2026-07-10 18:17:13 -05:00
// Fully type-checked (tsconfig.server.json); leading import type keeps Node type-stripping active.
2026-07-06 11:26:50 -05:00
import type { Req , Res , Next } from '../types/http' ;
2026-05-15 22:45:38 -05:00
const express = require ( 'express' ) ;
const router = express . Router ( ) ;
let pkg ;
2026-07-06 14:23:53 -05:00
try {
pkg = require ( '../package.json' ) ;
} catch {
pkg = { version : '0.1.0' } ;
}
2026-05-15 22:45:38 -05:00
2026-07-06 11:26:50 -05:00
router . get ( '/' , ( req : Req , res : Res ) = > {
2026-05-15 22:45:38 -05:00
res . json ( {
name : 'Privacy' ,
version : pkg.version ,
last_updated : '2026-05-16' ,
2026-07-06 14:23:53 -05:00
summary :
'This application is designed to operate privately and locally. We do not collect, sell, analyze, or remotely store your bill tracking data.' ,
2026-05-15 22:45:38 -05:00
sections : [
{
title : 'Overview' ,
items : [
'This application is designed to operate privately and locally.' ,
'We do not collect, sell, analyze, or remotely store your bill tracking data.' ,
] ,
} ,
{
title : 'Data Collection' ,
items : [
'This application does not collect or transmit personal bill information to any server controlled by the administrator.' ,
'The administrator cannot view your bills, bill details, payment information, notes or attachments, or account activity in the app UI.' ,
'All user data remains local to your installation or environment.' ,
] ,
} ,
{
title : 'Version Checking' ,
items : [
'The only external communication performed by the application is an optional version check to determine whether the latest software release is installed.' ,
'This communication does not include your bill data or personal information.' ,
2026-07-03 10:05:37 -05:00
'An administrator can disable the version check entirely in the admin panel; when disabled, the application makes no external requests.' ,
2026-05-15 22:45:38 -05:00
'Version check information is not tracked or stored server-side and is used solely to determine software update availability.' ,
] ,
} ,
{
title : 'Administrative Access' ,
items : [
'The administrator has extremely limited capabilities in the application.' ,
'The administrator cannot edit bill information, view bill information, or access your stored financial data in the app UI.' ,
'The administrator may only reset user passwords when requested.' ,
] ,
} ,
{
title : 'Logging' ,
items : [
'No application logs are transmitted externally.' ,
'All logs, if enabled, remain local to the device or server where the application is installed.' ,
'We do not maintain centralized logging, analytics, telemetry, or activity tracking systems.' ,
] ,
} ,
{
title : 'Third-Party Services' ,
items : [
'This application does not use third-party analytics, advertising, or tracking services.' ,
] ,
} ,
{
title : 'Security' ,
items : [
'Because data remains local and is not centrally stored, users retain direct control over their information and environment security.' ,
] ,
} ,
{
title : 'Changes to This Policy' ,
items : [
'This privacy policy may be updated to reflect changes in the application functionality.' ,
'Continued use of the software constitutes acceptance of any updated policy.' ,
] ,
} ,
{
title : 'Contact' ,
items : [
'If you have questions about this privacy policy, contact the repository administrator.' ,
] ,
} ,
] ,
} ) ;
} ) ;
module .exports = router ;