# Inkspring website The standalone **marketing website and desktop connection service** for [inkspring.ai](https://inkspring.ai). The homepage presents Inkspring as a native Apple Silicon Mac app, with an iPhone and iPad companion, for research, text and single-image posts, and witty replies to pasted posts, separate from the desktop application. **Production is live at https://inkspring.ai.** It includes the marketing site, own-app desktop OAuth return page, and shared connection service. ## Local preview ```sh npm ci npm test npm run build npm run preview ``` Open **http://localhost:4178/**. Privacy and terms are available at **http://localhost:4178/privacy** and **http://localhost:4178/terms**. The preview serves `dist/`. The homepage and legal pages are prerendered into complete HTML during the build, and React hydrates the interactive reply-studio demo. The SSR build in `.ssr/` is a build-time tool only and is not deployed. ## What was removed There are no Next.js runtime routes, application screens, Supabase clients, website account sign-in or database connections, signup/waitlist submission, Turnstile, Resend, analytics, or externally hosted fonts. The page has no forms and makes no API calls. Public download buttons are not faked: the website presents Inkspring as a native Apple Silicon Mac app with an iPhone and iPad companion, with downloads marked as coming soon. Reply and post examples use imagined accounts and brands and are labeled as illustrative. Image generation is described as requiring the user’s own OpenAI key. ## Cloudflare deployment Push website changes to `main` on [projectatomai/inkspring-website](https://github.com/projectatomai/inkspring-website). GitHub triggers [Cloudflare Pages](https://inkspring-website.pages.dev/). Check the successful build and its commit, then verify the affected route. The public domains `inkspring.ai` and `www.inkspring.ai` still use the pinned Vercel deployment pending the credential checks and cutover in OpenTalon **AUT-015**. Send new builds and configuration changes to Cloudflare. Pages runs `npm run build` and serves `dist/`. The `functions/_middleware.js` adapter handles redirects, response headers, desktop connections and retirement responses for legacy media. It still reads the existing redirects and headers from `vercel.json` for parity. The managed connection service runs in Pages Functions, with server-only OAuth credentials and `CONNECT_SECRET`. The build ends with `scripts/indexnow.mjs`, which compares sitemap content with the public site, submits changed pages for production builds and keeps local runs offline. Keep `public/66365049776433ceca35572e03fca658.txt`: IndexNow uses it to verify the submission. The iPhone and iPad companion ships through the public TestFlight beta at https://testflight.apple.com/join/Gg8AQT4A. The site links TestFlight, not the App Store. ## Free to use. Open source. Inkspring is open source under the MIT license. Third-party components retain their own terms. The public app repository is **https://github.com/projectatomai/inkspring**. The app license applies to the desktop app’s first-party material. ## Application repository The desktop prototype is on **[projectatomai/inkspring-site, branch `prototype/local-desktop`](https://github.com/projectatomai/inkspring-site/tree/prototype/local-desktop)**. It is a separate build and is not embedded in this website. ## Validation `npm test` covers the absence of carousels, the text, single-image and post-reply copy, absence of signup/tracker integrations on marketing pages, and accurate platform availability copy. The build validates prerendered content, canonical URLs, local assets, and absence of trackers/forms/backend endpoints in emitted HTML. Browser verification confirmed the reply-studio example picker updates the reply and the page has no console errors or warnings. ## Desktop social sign-in return `public/desktop-connect/` is a static OAuth return page for the desktop app. It validates the return shape, removes the code from browser history, and offers an `inkspring://oauth/...` link. It performs no token exchange and uses no cookies, browser persistence, analytics, database, or network calls. The desktop app validates one-time state and exchanges the code locally. HTTPS hosting can observe the initial code-bearing callback URL; access/refresh tokens and client secrets never pass through the static page. The page is live at `https://inkspring.ai/desktop-connect/` and was verified in the browser. Local preview: http://localhost:4178/desktop-connect/. Provider credentials and account permissions are still needed for real Instagram/LinkedIn sign-in. X uses its official developer app through the desktop loopback listener. ## Product naming Write the product name as **Inkspring**: capital I, lowercase s. Keep the ink mark paired with this wordmark, with their visible artwork aligned. In About, the heading sits on its own line above the logo and wordmark. ## Shared desktop connection service `api/connect.js` and `server/` implement a stateless OAuth broker at `https://inkspring.ai/api/desktop/connect/`. The desktop opens `start` in the system browser. Shared provider callbacks use `https://inkspring.ai/api/auth/callback/{instagram|linkedin}`. X publishing requires each user’s own X developer app. The shared service rejects X sign-in, callback and refresh requests, even if old credentials are still present. Retired providers cannot start, exchange, or refresh a connection through this service. Requests expire after ten minutes and are bound to an HttpOnly, Secure, SameSite=Lax browser cookie. App secrets are server-side runtime bindings. Store them in Bitwarden Secrets Manager and use the Cloudflare Pages production environment for the migration. The broker exchanges the platform code, encrypts the result to an ephemeral X25519 key generated inside the desktop main process, and signs the envelope with Ed25519. The custom-protocol return carries encrypted ciphertext in its fragment; it never contains plaintext account tokens or app secrets. The desktop verifies the signature, decrypts the result, consumes its pending state once, verifies the platform identity, and stores account tokens using OS credential protection. The service retains no account database, drafts or publishing jobs. Tokens briefly pass through server memory during authorization and refresh. Hosting logs may retain request metadata and OAuth callback codes; codes are exchanged immediately and are single-use at the provider. Refresh requires a service-issued encrypted ticket bound to the provider, client ID and exact refresh token. Tickets expire after 90 days. Reconnect if a provider revokes a session or the service key changes. Do not rotate `CONNECT_SECRET` during routine deployments. See `.env.example` for names only. Never put these values in `VITE_*`, the static `dist/` output, the native app bundle, source control, logs, or API error messages. Scope bindings to the intended Cloudflare Pages environment. A provider is advertised as available only when its required credentials exist. Availability does not establish platform approval or a successful live user authorization. ### Production secret inventory and operations Use the existing, verified production OAuth apps and keep their original callback URLs. Retrieve application credentials through Bitwarden Secrets Manager and bind them to the same-named variables in the Cloudflare Pages production environment. Keep the existing managed signing and refresh-ticket key. Credential values belong in Secrets Manager and Cloudflare’s encrypted runtime bindings. | Variable names | Purpose | | --- | --- | | `CONNECT_SECRET` | Encrypts state/refresh tickets and derives the service signing key. Preserve across deployments. | | `IG_APP_ID`, `IG_APP_SECRET` | Dedicated Inkspring-IG Instagram Login app, rather than a generic Facebook app credential pair. | | `LINKEDIN_CLIENT_ID`, `LINKEDIN_CLIENT_SECRET` | Not configured; shared LinkedIn sign-in remains unavailable. | Verify `/api/desktop/connect/config` first on the Cloudflare host and then on the public domain after cutover. Compare the signing public key and provider availability to the pinned production deployment. Test the permitted broker paths using simulated credentials; use `410` for former managed media and retired OAuth paths. No managed Instagram hosting is available from this broker. Changing `CONNECT_SECRET` requires users with affected sessions to reconnect. ### Retired media and native scheduling The previous media endpoint is closed to upload, fetch, and deletion. The existing private bucket and lifecycle configuration are not altered. Do not repurpose its credentials or bucket for another provider. Current Instagram posting needs an existing reachable media URL or a user-configured private R2 bucket. The website does not store or dispatch the native queue; native app versions must enforce the same platform restrictions locally. Both repositories ignore real `.env*` files and `.vercel/`. Only `.env.example`, with empty values, is intended for source control. Tests use simulated credentials and do not need production secrets. `npm test` covers the server handlers, cryptographic protocol, refresh binding, legacy callback handling, and rejection of shared X authorization. Instagram requires a professional account. Accepted live grants and real publishing remain unverified.