Skip to content

Commit 0cb58f7

Browse files
staredclaude
andcommitted
Add Open Graph meta tags and production environment setup
- Add comprehensive Open Graph and Twitter Card meta tags - Move screenshot to public directory for proper serving - Use Vite's native environment variable replacement - Include .env.production for GitHub Actions deployment - Add .env.development to .gitignore (local only) - Update README screenshot path - Bump version to 0.2.6 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0c10539 commit 0cb58f7

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

.env.production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_SITE_URL=https://quesmaorg.github.io/demo-webr-ggplot/
2+
VITE_OG_IMAGE=https://quesmaorg.github.io/demo-webr-ggplot/webr-ggplot2-screenshot.png

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dist-ssr
88
# Environment variables
99
.env
1010
.env.local
11+
.env.development
1112

1213
# Logs
1314
*.log

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Interactive R data visualization in the browser using [WebR](https://webr.r-wasm.org/) (R in WebAssembly) and [ggplot2](https://ggplot2.tidyverse.org/) (the best charting library ever).
44

5+
![WebR ggplot2 Demo Screenshot](./public/webr-ggplot2-screenshot.png)
6+
57
## What is it?
68

79
A web application that runs R code directly in your browser - no server required. Features live code editing, CSV upload, and interactive plots. Try it online at [quesmaorg.github.io/demo-webr-ggplot](https://quesmaorg.github.io/demo-webr-ggplot/).

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@
55
<link rel="icon" href="/favicon.ico">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>WebR ggplot2 & dplyr Demo</title>
8+
9+
<!-- Primary Meta Tags -->
10+
<meta name="title" content="WebR ggplot2 & dplyr Demo">
11+
<meta name="description" content="Interactive R data visualization in your browser with ggplot2 and dplyr. No server required - powered by WebAssembly.">
12+
13+
<!-- Open Graph / Facebook -->
14+
<meta property="og:type" content="website">
15+
<meta property="og:url" content="%VITE_SITE_URL%">
16+
<meta property="og:title" content="WebR ggplot2 & dplyr Demo">
17+
<meta property="og:description" content="Interactive R data visualization in your browser with ggplot2 and dplyr. No server required - powered by WebAssembly.">
18+
<meta property="og:image" content="%VITE_OG_IMAGE%">
19+
20+
<!-- Twitter -->
21+
<meta property="twitter:card" content="summary_large_image">
22+
<meta property="twitter:url" content="%VITE_SITE_URL%">
23+
<meta property="twitter:title" content="WebR ggplot2 & dplyr Demo">
24+
<meta property="twitter:description" content="Interactive R data visualization in your browser with ggplot2 and dplyr. No server required - powered by WebAssembly.">
25+
<meta property="twitter:image" content="%VITE_OG_IMAGE%">
826
</head>
927
<body>
1028
<div id="app"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webr-ggplot2-demo",
33
"private": true,
4-
"version": "0.2.4",
4+
"version": "0.2.6",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

public/webr-ggplot2-screenshot.png

644 KB
Loading

0 commit comments

Comments
 (0)