Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

154 linesCodeBlameRaw
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 */
6import { type SimpleIcon, siX } from "simple-icons";
7
8/** The company behind g1t. */
9export const COMPANY = {
10 name: "Flagon, Inc.",
11 url: "https://www.flagon.io",
12 /** How the footer describes it. */
13 about: "a small, independent software company",
14 /** Who founded it, named wherever the company is described. */
15 founder: "Chase Pierce",
16};
17
18/** g1t's own accounts elsewhere, drawn as their marks in the footer. */
19export const SOCIAL: { label: string; url: string; icon: SimpleIcon }[] = [{ label: "X", url: "https://x.com/g1t_sh", icon: siX }];
20
21/**
22 * Flagon's other launched products, which the footer's maker line names
23 * ("…, the people behind X and Y"). None yet: add each here when it ships.
24 */
25export const MAKER_PRODUCTS: { name: string; url: string }[] = [];
26
27/** "X", "X and Y", "X, Y and Z". */
28export function listed(names: string[]): string {
29 if (names.length <= 1) return names.join("");
30 return `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
31}
32
33/** The year in UTC, so a page rendered near midnight on 31 December agrees everywhere. */
34export function copyrightYear(now: Date = new Date()): number {
35 return now.getUTCFullYear();
36}
37
38/** The footer's legal line. */
39export function copyright(now: Date = new Date()): string {
40 return `© ${copyrightYear(now)} ${COMPANY.name} All rights reserved.`;
41}
42
43/**
44 * Where people reach g1t. Each must be a real, watched mailbox. For now
45 * every topic goes to support@g1t.sh, an alias for support@flagon.io.
46 */
47export const CONTACT = {
48 support: "support@g1t.sh",
49 security: "support@g1t.sh",
50 privacy: "support@g1t.sh",
51 billing: "support@g1t.sh",
52 abuse: "support@g1t.sh",
53 legal: "support@g1t.sh",
54};
55
56export 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>`. */
63export 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/**
92 * Publication approved on 2026-10-14. Set true only when intentionally
93 * presenting the policies as drafts (components/policies-draft.tsx).
94 */
95export const POLICIES_DRAFT = false;
96
97/** When any policy last changed, `YYYY-MM-DD`. */
98export const POLICIES_UPDATED = "2026-10-14";
99
100/** Every change to the policies, newest first. */
101export const POLICY_HISTORY: { date: string; change: string }[] = [
102 {
103 date: "2026-10-14",
104 change:
105 "Removed the draft banner. Standardized contact addresses on support@g1t.sh and named Delaware in the governing-law clause. Clarified automatic renewal, consumer cancellation and refund rights, and consent for changes where required. Privacy Policy: clarified analytics consent and the limits of credential redaction; removed unverified assurances about provider contracts and transfer arrangements. Privacy Policy and Subprocessors: Cloudflare Turnstile protects email sign-up. Privacy Policy: distinguished ordinary closure from personal-data erasure requests, shared content review, and minimal deletion records.",
106 },
107 {
108 date: "2026-10-13",
109 change:
110 "Terms of Service and Privacy Policy: g1t no longer runs agents of its own. Section 6 of the terms covers the coding agents you connect and Ask g1t, which answers with your workspace's own AI provider; agents are no longer billed compute. Subprocessors: your workspace's AI provider listed among the integrations you choose. Terms and Refunds, for paid plans: the g1t plan is $21 a month with $10 of usage included and no card fee on anything; how the plan and usage are billed, taxes, failed payments, disputes, price-change notice and spend limits; card, billing address, tax IDs, invoices and cancelling are managed on Stripe's billing page; deleting a workspace or account is self-serve. Privacy Policy: audit log kept 7 days on Free and 90 on the plan; push devices, observability data and search embeddings disclosed. Subprocessors: Expo (phone notifications) and Google (Google Workspace mail) added; Stripe also works out tax.",
111 },
112 {
113 date: "2026-10-09",
114 change:
115 "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.",
116 },
117 {
118 date: "2026-10-06",
119 change:
120 "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.",
121 },
122 {
123 date: "2026-10-05",
124 change:
125 "First published: Terms of Service, Privacy Policy, Acceptable Use Policy, Refunds and Cancellation, and Subprocessors.",
126 },
127];
128
129/** `2026-10-05` as "October 5, 2026". */
130export function longDate(day: string): string {
131 const [year, month, date] = day.split("-").map(Number);
132 const months = [
133 "January", "February", "March", "April", "May", "June",
134 "July", "August", "September", "October", "November", "December",
135 ];
136 return `${months[month - 1]} ${date}, ${year}`;
137}
138
139/**
140 * security.txt (RFC 9116). `Expires` is required and should be less than a
141 * year away, so it is always computed: 180 days from now.
142 */
143export function securityTxt(now: Date = new Date(), site = "https://g1t.sh"): string {
144 const expires = new Date(now.getTime() + 180 * 24 * 60 * 60 * 1000);
145 expires.setUTCHours(0, 0, 0, 0);
146 return [
147 `Contact: mailto:${CONTACT.security}`,
148 `Expires: ${expires.toISOString().replace(".000Z", "Z")}`,
149 "Preferred-Languages: en",
150 `Policy: ${site}/security#responsible-disclosure`,
151 `Canonical: ${site}/.well-known/security.txt`,
152 "",
153 ].join("\n");
154}