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.

149 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 email: "hey@flagon.io",
13 /** Who founded it, for search engines' structured data only (structured-data.ts). */
14 founder: "Chase Pierce",
15};
16
17/** g1t's own accounts elsewhere, drawn as their marks in the footer. */
18export const SOCIAL: { label: string; url: string; icon: SimpleIcon }[] = [{ label: "X", url: "https://x.com/g1t_sh", icon: siX }];
19
20/**
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 */
24export const MAKER_PRODUCTS: { name: string; url: string }[] = [];
25
26/** "X", "X and Y", "X, Y and Z". */
27export 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. */
33export function copyrightYear(now: Date = new Date()): number {
34 return now.getUTCFullYear();
35}
36
37/** The footer's legal line. */
38export 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 support@g1t.sh, an alias for support@flagon.io.
45 */
46export const CONTACT = {
47 support: "support@g1t.sh",
48 security: "support@g1t.sh",
49 privacy: "support@g1t.sh",
50 billing: "support@g1t.sh",
51 abuse: "support@g1t.sh",
52 legal: "support@g1t.sh",
53};
54
55export type Policy = {
56 slug: string;
57 title: string;
58 summary: string;
59};
60
61/** The policies, in the order the index lists them. Each is `/policies/<slug>`. */
62export const POLICIES: Policy[] = [
63 {
64 slug: "terms",
65 title: "Terms of Service",
66 summary: "The agreement between you and Flagon, Inc. when you use g1t: accounts, your content, agents, paying, and ending.",
67 },
68 {
69 slug: "privacy",
70 title: "Privacy Policy",
71 summary: "What g1t collects, why, where it goes, how long it is kept, and how to see, export or delete it.",
72 },
73 {
74 slug: "acceptable-use",
75 title: "Acceptable Use Policy",
76 summary: "What g1t may not be used for, from mining cryptocurrency to abuse, and what happens when it is.",
77 },
78 {
79 slug: "refunds",
80 title: "Refunds and Cancellation",
81 summary: "Ending the plan, accidental overages and goodwill credits, and when money goes back to your card.",
82 },
83 {
84 slug: "subprocessors",
85 title: "Subprocessors",
86 summary: "The companies that process data for g1t, what each does, and the services you choose to connect.",
87 },
88];
89
90/**
91 * Publication approved on 2026-10-14. Set true only when intentionally
92 * presenting the policies as drafts (components/policies-draft.tsx).
93 */
94export const POLICIES_DRAFT = false;
95
96/** When any policy last changed, `YYYY-MM-DD`. */
97export const POLICIES_UPDATED = "2026-10-14";
98
99/** Every change to the policies, newest first. */
100export const POLICY_HISTORY: { date: string; change: string }[] = [
101 {
102 date: "2026-10-14",
103 change:
104 "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. Terms, Privacy Policy and this page: changes take effect when posted on this page, without emailed notice or a fixed 30-day notice period.",
105 },
106 {
107 date: "2026-10-13",
108 change:
109 "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.",
110 },
111 {
112 date: "2026-10-09",
113 change:
114 "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.",
115 },
116 {
117 date: "2026-10-06",
118 change:
119 "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.",
120 },
121 {
122 date: "2026-10-05",
123 change: "First published: Terms of Service, Privacy Policy, Acceptable Use Policy, Refunds and Cancellation, and Subprocessors.",
124 },
125];
126
127/** `2026-10-05` as "October 5, 2026". */
128export function longDate(day: string): string {
129 const [year, month, date] = day.split("-").map(Number);
130 const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
131 return `${months[month - 1]} ${date}, ${year}`;
132}
133
134/**
135 * security.txt (RFC 9116). `Expires` is required and should be less than a
136 * year away, so it is always computed: 180 days from now.
137 */
138export function securityTxt(now: Date = new Date(), site = "https://g1t.sh"): string {
139 const expires = new Date(now.getTime() + 180 * 24 * 60 * 60 * 1000);
140 expires.setUTCHours(0, 0, 0, 0);
141 return [
142 `Contact: mailto:${CONTACT.security}`,
143 `Expires: ${expires.toISOString().replace(".000Z", "Z")}`,
144 "Preferred-Languages: en",
145 `Policy: ${site}/security#responsible-disclosure`,
146 `Canonical: ${site}/.well-known/security.txt`,
147 "",
148 ].join("\n");
149}