karpathytalk-community
Run and interact with KarpathyTalk, an open markdown-based developer social network with GitHub auth, SQLite, and an LLM-friendly JSON/markdown API.
What this skill does
# KarpathyTalk Community Skill
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
KarpathyTalk is a Go-based developer social network (Twitter × GitHub Gists) where posts are plain markdown, the social layer supports likes/reposts/follows/replies, and all data is openly accessible via JSON and markdown APIs — designed for both humans and LLM agents.
---
## What It Does
- GitHub OAuth sign-in (no new credentials)
- Posts are GFM markdown with syntax-highlighted code blocks and image uploads
- Social features: likes, reposts, quote posts, replies, follows
- REST API returns JSON (for agents/code) or markdown (for humans)
- Single Go binary + SQLite + `uploads/` directory — trivial to self-host
- Built with: Go, SQLite, htmx, goldmark
---
## Installation & Local Setup
### 1. Create a GitHub OAuth App
Go to **GitHub → Settings → Developer settings → OAuth Apps → New OAuth App**:
| Field | Value |
|---|---|
| Application name | KarpathyTalk |
| Homepage URL | `http://localhost:8080` |
| Authorization callback URL | `http://localhost:8080/auth/callback` |
Save the **Client ID** and **Client Secret**.
### 2. Clone & Build
```bash
git clone https://github.com/karpathy/KarpathyTalk.git
cd KarpathyTalk
go build -o karpathytalk ./cmd/karpathytalk
```
### 3. Configure Environment
```bash
export GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
export GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET
export BASE_URL=http://localhost:8080 # optional, defaults to this
```
### 4. Run
```bash
./karpathytalk
# or with options:
./karpathytalk -addr :9090 -db ./data/karpathytalk.db
```
Visit `http://localhost:8080`.
---
## CLI Flags
```
-addr string HTTP listen address (default ":8080")
-db string SQLite database path (default "karpathytalk.db")
```
---
## Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
| `GITHUB_CLIENT_ID` | ✅ | — | GitHub OAuth client ID |
| `GITHUB_CLIENT_SECRET` | ✅ | — | GitHub OAuth client secret |
| `BASE_URL` | ❌ | `http://localhost:8080` | Public URL of the deployed app |
---
## Deployment (Production)
### Build & Copy
```bash
# Build binary
go build -o karpathytalk ./cmd/karpathytalk
# Copy to server (adjust user/host)
scp karpathytalk schema.sql user@yourserver:~/karpathytalk/
scp -r templates static user@yourserver:~/karpathytalk/
```
### Run on Server
```bash
ssh user@yourserver
cd ~/karpathytalk
export GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
export GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET
export BASE_URL=https://yourdomain.com
./karpathytalk -addr :8080
```
### Caddy TLS (recommended)
```caddyfile
yourdomain.com {
reverse_proxy localhost:8080
}
```
### nginx TLS
```nginx
server {
listen 443 ssl;
server_name yourdomain.com;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
### systemd Service
```ini
[Unit]
Description=KarpathyTalk
After=network.target
[Service]
WorkingDirectory=/home/deploy/karpathytalk
ExecStart=/home/deploy/karpathytalk/karpathytalk -addr :8080
Restart=always
Environment=GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
Environment=GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET
Environment=BASE_URL=https://yourdomain.com
[Install]
WantedBy=multi-user.target
```
---
## API Usage
All data is open — no auth required for reads. The API returns JSON for programmatic access and markdown for human/agent reading.
### Fetch Posts as JSON
```bash
# Timeline / recent posts
curl https://karpathytalk.com/api/posts
# Single post
curl https://karpathytalk.com/api/posts/{postID}
# User's posts
curl https://karpathytalk.com/api/users/{username}/posts
```
### Fetch Posts as Markdown
```bash
# Human/agent-readable markdown
curl https://karpathytalk.com/api/posts/{postID}.md
```
### Go Agent Example — Read Timeline
```go
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
)
type Post struct {
ID int64 `json:"id"`
Username string `json:"username"`
Content string `json:"content"`
Likes int `json:"likes"`
Reposts int `json:"reposts"`
CreatedAt string `json:"created_at"`
}
func fetchTimeline(baseURL string) ([]Post, error) {
resp, err := http.Get(baseURL + "/api/posts")
if err != nil {
return nil, err
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
var posts []Post
if err := json.Unmarshal(body, &posts); err != nil {
return nil, err
}
return posts, nil
}
func main() {
posts, err := fetchTimeline("https://karpathytalk.com")
if err != nil {
panic(err)
}
for _, p := range posts {
fmt.Printf("[%s] %s (👍 %d)\n", p.Username, p.Content[:min(80, len(p.Content))], p.Likes)
}
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
```
### Go Agent Example — Fetch User Posts as Markdown
```go
package main
import (
"fmt"
"io"
"net/http"
)
func fetchUserPostsMarkdown(baseURL, username string) (string, error) {
url := fmt.Sprintf("%s/api/users/%s/posts.md", baseURL, username)
resp, err := http.Get(url)
if err != nil {
return "", err
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
return string(body), err
}
func main() {
md, err := fetchUserPostsMarkdown("https://karpathytalk.com", "karpathy")
if err != nil {
panic(err)
}
fmt.Println(md)
}
```
---
## Content Limits
| Content Type | Max Length | Rate Limit |
|---|---|---|
| Posts | 10,000 characters | 30 per hour |
| Replies | 5,000 characters | 60 per hour |
| Images | 5 MB | PNG/JPEG/GIF/WebP only |
---
## Database — Direct SQLite Access
The SQLite database is a single file. You can query it directly for analytics, backups, or migrations:
```bash
# Open database
sqlite3 karpathytalk.db
# List tables
.tables
# Recent posts
SELECT username, substr(content, 1, 80), created_at
FROM posts
ORDER BY created_at DESC
LIMIT 20;
# Most liked posts
SELECT username, likes, substr(content, 1, 60)
FROM posts
ORDER BY likes DESC
LIMIT 10;
# User follower counts
SELECT username, COUNT(*) as followers
FROM follows
GROUP BY username
ORDER BY followers DESC;
```
### Backup
```bash
# Simple file copy (safe while running with WAL mode)
cp karpathytalk.db karpathytalk.db.backup
# Or use sqlite3 online backup
sqlite3 karpathytalk.db ".backup karpathytalk_backup.db"
```
---
## Project Structure
```
KarpathyTalk/
├── cmd/
│ └── karpathytalk/ # main entrypoint
├── templates/ # HTML templates (htmx-powered)
├── static/ # CSS, JS assets
├── uploads/ # User image uploads
├── schema.sql # SQLite schema
└── karpathytalk.db # Database (created at runtime)
```
---
## Common Patterns
### Pattern: Agent That Monitors New Posts
```go
package main
import (
"encoding/json"
"fmt"
"net/http"
"time"
)
type Post struct {
ID int64 `json:"id"`
Username string `json:"username"`
Content string `json:"content"`
CreatedAt string `json:"created_at"`
}
func pollNewPosts(baseURL string, sinceID int64) ([]Post, error) {
url := fmt.Sprintf("%s/api/posts?since_id=%d", baseURL, sinceID)
resp, err := http.Get(url)
if err != nil {
return nil, err
}
defer resp.Body.Close()
var posts []Post
json.NewDecoder(resp.Body).Decode(&posts)
return posts, nil
}
func main() {
var lastSeenID int64 = 0
for {
posts, err := pollNewPosts("https://karpathytalk.com", lastSeenID)
if err != nil {Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.