Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look | 1 | /** |
| 2 | * Who makes g1t, how to reach them, and the policies that govern it: the | |
| 3 | * one place the footer, the policy pages, /security, /support and | |
| 4 | * security.txt read these from. | |
| 5 | */ | |
| 6 | ||
| 7 | /** The company behind g1t. */ | |
| 8 | export const COMPANY = { | |
| 9 | name: "Flagon, Inc.", | |
| 10 | url: "https://www.flagon.io", | |
| 11 | /** How the footer describes it. */ | |
| 12 | about: "a small, independent software company", | |
| Name Chase Pierce as Flagon's founder; drop the empty testimonial and founder stubs | 13 | /** Who founded it, named wherever the company is described. */ |
| 14 | founder: "Chase Pierce", | |
| The site says who it is for, how to switch, and what it costs a team; search engines get a map | 15 | }; |
| 16 | ||
| g1t on X: @g1t_sh in the site footer, the docs header and the structured data | 17 | /** g1t's own accounts elsewhere. */ |
| 18 | export const SOCIAL: { label: string; url: string }[] = [{ label: "X", url: "https://x.com/g1t_sh" }]; | |
| 19 | ||
| The site says who it is for, how to switch, and what it costs a team; search engines get a map | 20 | /** |
| Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look | 21 | * Flagon's other launched products, which the footer's maker line names |
| 22 | * ("…, the people behind X and Y"). None yet: add each here when it ships. | |
| 23 | */ | |
| 24 | export const MAKER_PRODUCTS: { name: string; url: string }[] = []; | |
| 25 | ||
| 26 | /** "X", "X and Y", "X, Y and Z". */ | |
| 27 | export function listed(names: string[]): string { | |
| 28 | if (names.length <= 1) return names.join(""); | |
| 29 | return `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`; | |
| 30 | } | |
| 31 | ||
| 32 | /** The year in UTC, so a page rendered near midnight on 31 December agrees everywhere. */ | |
| 33 | export function copyrightYear(now: Date = new Date()): number { | |
| 34 | return now.getUTCFullYear(); | |
| 35 | } | |
| 36 | ||
| 37 | /** The footer's legal line. */ | |
| 38 | export function copyright(now: Date = new Date()): string { | |
| 39 | return `© ${copyrightYear(now)} ${COMPANY.name} All rights reserved.`; | |
| 40 | } | |
| 41 | ||
| 42 | /** | |
| 43 | * Where people reach g1t. Each must be a real, watched mailbox. For now | |
| 44 | * every topic goes to Flagon's one address; give a topic its own address | |
| 45 | * here once the g1t.sh aliases exist. | |
| 46 | */ | |
| 47 | export const CONTACT = { | |
| 48 | support: "hey@flagon.io", | |
| 49 | security: "hey@flagon.io", | |
| 50 | privacy: "hey@flagon.io", | |
| 51 | billing: "hey@flagon.io", | |
| 52 | abuse: "hey@flagon.io", | |
| 53 | legal: "hey@flagon.io", | |
| 54 | }; | |
| 55 | ||
| 56 | export type Policy = { | |
| 57 | slug: string; | |
| 58 | title: string; | |
| 59 | summary: string; | |
| 60 | }; | |
| 61 | ||
| 62 | /** The policies, in the order the index lists them. Each is `/policies/<slug>`. */ | |
| 63 | export const POLICIES: Policy[] = [ | |
| 64 | { | |
| 65 | slug: "terms", | |
| 66 | title: "Terms of Service", | |
| 67 | summary: "The agreement between you and Flagon, Inc. when you use g1t: accounts, your content, agents, paying, and ending.", | |
| 68 | }, | |
| 69 | { | |
| 70 | slug: "privacy", | |
| 71 | title: "Privacy Policy", | |
| 72 | summary: "What g1t collects, why, where it goes, how long it is kept, and how to see, export or delete it.", | |
| 73 | }, | |
| 74 | { | |
| 75 | slug: "acceptable-use", | |
| 76 | title: "Acceptable Use Policy", | |
| 77 | summary: "What g1t may not be used for, from mining cryptocurrency to abuse, and what happens when it is.", | |
| 78 | }, | |
| 79 | { | |
| 80 | slug: "refunds", | |
| 81 | title: "Refunds and Cancellation", | |
| 82 | summary: "Ending the plan, accidental overages and goodwill credits, and when money goes back to your card.", | |
| 83 | }, | |
| 84 | { | |
| 85 | slug: "subprocessors", | |
| 86 | title: "Subprocessors", | |
| 87 | summary: "The companies that process data for g1t, what each does, and the services you choose to connect.", | |
| 88 | }, | |
| 89 | ]; | |
| 90 | ||
| 91 | /** When any policy last changed, `YYYY-MM-DD`. */ | |
| Site analytics with HeyCatch on g1t.sh, with names removed inside the app; the privacy policy says so | 92 | export const POLICIES_UPDATED = "2026-10-09"; |
| Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look | 93 | |
| 94 | /** Every change to the policies, newest first. */ | |
| 95 | export const POLICY_HISTORY: { date: string; change: string }[] = [ | |
| 96 | { | |
| Site analytics with HeyCatch on g1t.sh, with names removed inside the app; the privacy policy says so | 97 | date: "2026-10-09", |
| 98 | change: | |
| Analytics asks first in the EU, EEA, UK and Switzerland, and loads only when the page is idle | 99 | "Privacy Policy: g1t.sh uses HeyCatch for site analytics, with names removed outside the public pages, and one analytics cookie, set in the EU, EEA, UK and Switzerland only after you allow it. Subprocessors: HeyCatch, Inc. added.", |
| Site analytics with HeyCatch on g1t.sh, with names removed inside the app; the privacy policy says so | 100 | }, |
| 101 | { | |
| Git storage hardened, pages in tens of milliseconds, honest security alerts, and costs reconciled daily | 102 | date: "2026-10-06", |
| 103 | change: | |
| 104 | "Privacy Policy: request logs are kept 7 days, and database history 30 days. Subprocessors: GitHub listed among the integrations you choose, in place of Slack, which g1t does not connect to.", | |
| 105 | }, | |
| 106 | { | |
| Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look | 107 | date: "2026-10-05", |
| 108 | change: | |
| 109 | "First published: Terms of Service, Privacy Policy, Acceptable Use Policy, Refunds and Cancellation, and Subprocessors.", | |
| 110 | }, | |
| 111 | ]; | |
| 112 | ||
| 113 | /** `2026-10-05` as "October 5, 2026". */ | |
| 114 | export function longDate(day: string): string { | |
| 115 | const [year, month, date] = day.split("-").map(Number); | |
| 116 | const months = [ | |
| 117 | "January", "February", "March", "April", "May", "June", | |
| 118 | "July", "August", "September", "October", "November", "December", | |
| 119 | ]; | |
| 120 | return `${months[month - 1]} ${date}, ${year}`; | |
| 121 | } | |
| 122 | ||
| 123 | /** | |
| 124 | * security.txt (RFC 9116). `Expires` is required and should be less than a | |
| 125 | * year away, so it is always computed: 180 days from now. | |
| 126 | */ | |
| 127 | export function securityTxt(now: Date = new Date(), site = "https://g1t.sh"): string { | |
| 128 | const expires = new Date(now.getTime() + 180 * 24 * 60 * 60 * 1000); | |
| 129 | expires.setUTCHours(0, 0, 0, 0); | |
| 130 | return [ | |
| 131 | `Contact: mailto:${CONTACT.security}`, | |
| 132 | `Expires: ${expires.toISOString().replace(".000Z", "Z")}`, | |
| 133 | "Preferred-Languages: en", | |
| 134 | `Policy: ${site}/security#responsible-disclosure`, | |
| 135 | `Canonical: ${site}/.well-known/security.txt`, | |
| 136 | "", | |
| 137 | ].join("\n"); | |
| 138 | } |