The official product and documentation website for the Opencode CLI agent.
Live URL: https://opencode.joshuapaul.site/
This repository contains the source code for the Opencode landing page. The project is designed with a strict focus on minimalism, utilizing a vanilla technology stack to ensure maximum performance, zero external framework overhead, and precise control over styling and micro-animations.
- Build Tool: Vite
- Structure: Semantic HTML5
- Styling: Vanilla CSS (CSS Variables, Flexbox/Grid, native transitions)
- Logic: Vanilla JavaScript (IntersectionObserver API, DOM manipulation)
The project utilizes Vite as a development server and bundler.
- Node.js 18+
- npm (or bun)
-
Clone the repository and install dependencies:
git clone https://github.com/joshxdevs/opencode-website.git cd opencode-website npm install -
Start the development server:
npm run dev
The site will be available at
http://localhost:5173.
To generate static assets for production deployment:
npm run buildThis command compiles the source files and outputs optimized static assets to the dist/ directory.
The website is statically generated and deployed via Cloudflare Pages, ensuring global edge delivery and automated SSL management.
graph LR
A[Local Development] -->|Git Push| B(GitHub Repository)
B -->|Webhook triggers| C{Cloudflare Pages}
C -->|npm run build| D[Generates dist/ assets]
D -->|Deploy| E((Global Edge Network))
E -.-> F[opencode.joshuapaul.site]
index.html: The primary layout and document structure.style.css: All styling rules, design tokens, and animation definitions.main.js: Client-side logic for intersection observers, terminal typing effects, and clipboard interactions.public/: Static assets (e.g., favicon) served directly.
MIT