A frontend for your PDS
1/**
2 * Configuration module for the PDS Dashboard
3 */
4export class Config {
5 /**
6 * The base URL of the PDS (Personal Data Server).
7 * @default none
8 */
9 static readonly PDS_URL: string = "https://tophhie.social";
10
11 /**
12 * Theme to be used
13 * @default "default"
14 */
15 static readonly THEME: string = "default";
16
17 /**
18 * The base URL of the frontend service for linking to replies/quotes/accounts etc.
19 * @default "https://deer.social" // or https://bsky.app if you're boring
20 */
21 static readonly FRONTEND_URL: string = "https://bsky.app";
22
23 /**
24 * Maximum number of posts to fetch from the PDS per request
25 * Should be around 20 for about 10 users on the pds
26 * The more users you have, the lower the number should be
27 * since sorting is slow and is done on the frontend
28 * @default 20
29 */
30 static readonly MAX_POSTS: number = 100;
31
32 /**
33 * Number of posts to request per-user per fetch.
34 * Keeps individual requests small to improve latency.
35 * @default 5
36 */
37 static readonly POSTS_BATCH_SIZE: number = 5;
38
39 /**
40 * Number of accounts to fetch per getNextPosts invocation.
41 * This spaces work across multiple infinite-scroll calls.
42 * @default 10
43 */
44 static readonly ACCOUNTS_PER_BATCH: number = 10;
45
46 /**
47 * Footer text for the dashboard, you probably want to change this. Supports HTML.
48 * @default "<a href='https://git.witchcraft.systems/scientific-witchery/pds-dash' target='_blank'>Source</a> (<a href='https://github.com/witchcraft-systems/pds-dash/' target='_blank'>github mirror</a>)"
49 */
50 static readonly FOOTER_TEXT: string =
51 "<a href='https://github.com/Tophhie/pds-dash' target='_blank'>Source</a> (Forked with ❤️ from <a href='https://git.witchcraft.systems/scientific-witchery/pds-dash' target='_blank'>witchcraft.systems</a>)"
52
53 /**
54 * Whether to show the posts with timestamps that are in the future.
55 * @default false
56 */
57 static readonly SHOW_FUTURE_POSTS: boolean = false;
58
59 /**
60 * The URL for the Tophhie Cloud API service.
61 */
62 static readonly TCAPI_URL: string = "https://api.tophhie.cloud";
63
64 /**
65 * The name of the GitHub repository.
66 */
67 static readonly GITHUB_REPO_NAME: string = "pds-dash";
68
69 /**
70 * The owner of the GitHub repository.
71 */
72 static readonly GITHUB_REPO_OWNER: string = "Tophhie";
73}