惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
美团技术团队
雷峰网
雷峰网
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
罗磊的独立博客
MyScale Blog
MyScale Blog
博客园_首页
IT之家
IT之家
F
Fortinet All Blogs
博客园 - Franky

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
GitHub - terryds/notion-style-personal-site: Notion-style...
terryds · 2026-06-22 · via Show HN

My Study Notes

A self-hostable, Notion-style notes app for publishing a personal knowledge base. Write rich documents in a block editor, organize them into a nested tree, and publish individual notes as clean, SEO-friendly public pages — while keeping editing locked to a single owner account.

Built on Next.js (App Router), Convex, Clerk, BlockNote, and Cloudflare R2.

Live demo: studynotes.terrydjony.com

My Study Notes

Features

  • 📝 Block editor — rich text powered by BlockNote (headings, lists, checkboxes, code blocks, images, and more).
  • Slash commands — type / for blocks, plus a custom page link command to link to any of your other notes inline.
  • 🌲 Nested hierarchy — organize notes into an arbitrarily deep tree of pages.
  • ↕️ Drag-and-drop reordering — reorder pages in the sidebar (owner-only), built with @dnd-kit.
  • 🖼️ Image uploads — cover images and inline images stored in Cloudflare R2 via presigned uploads.
  • 🙂 Icons & covers — pick an emoji icon and a cover image per note.
  • 🔎 Quick search — a ⌘K command palette to jump between notes.
  • 🌗 Light / dark / system theme — instant theme switcher in the sidebar (next-themes).
  • ↔️ Adjustable sidebar — resizable and collapsible, mobile-friendly.
  • 🗑️ Trash — archive, restore, and permanently delete notes.
  • 🌍 Publish & SEO — publish a note to a public /notes/<slug> page with auto-generated Open Graph / Twitter cards (Satori), JSON-LD structured data, canonical tags, sitemap.xml, and robots.txt.
  • 🔐 Single-owner model — anyone can read published notes, but only the configured OWNER_EMAIL account can create or edit. Authentication via Clerk (Google OAuth); the owner email is compared server-side in Convex and never exposed to the client.
  • 🔄 Real-time — every change syncs instantly via Convex.

Tech stack

Layer Choice
Framework Next.js 16 (App Router, RSC), React 19
Language TypeScript
Backend / DB Convex (real-time database + serverless functions)
Auth Clerk (Google OAuth)
Editor BlockNote
Styling Tailwind CSS + shadcn/ui + Radix UI
Icons lucide-react
File storage Cloudflare R2 (S3-compatible, presigned uploads)
State Zustand, usehooks-ts
Drag & drop @dnd-kit
Misc sonner (toasts), zod, emoji-picker-react, react-dropzone

Getting started

Prerequisites

1. Clone & install

git clone <your-repo-url>
cd my-study-notes
npm install

2. Set up Convex

This provisions a dev deployment and writes CONVEX_DEPLOYMENT and NEXT_PUBLIC_CONVEX_URL into your .env.local. Leave it running in a terminal while developing.

3. Set up Clerk

  1. Create an application in the Clerk dashboard and enable Google as a social connection.
  2. Copy your Publishable key and Secret key into .env.local (NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY, CLERK_SECRET_KEY).
  3. Create a JWT template named exactly convex. Copy its Issuer URL.
  4. In the Convex dashboard → Settings → Environment Variables, set CLERK_JWT_ISSUER_DOMAIN to that Issuer URL. (This is read by convex/auth.config.js; do not put it in .env.local.)

4. Set up Cloudflare R2

  1. Create an R2 bucket.
  2. Create an R2 API token (Object Read & Write) and copy the Account ID, Access Key ID, and Secret Access Key.
  3. Enable the bucket's Public Development URL (pub-xxxx.r2.dev) or attach a custom domain, and use it as NEXT_PUBLIC_R2_PUBLIC_URL.
  4. Fill in R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET_NAME, and NEXT_PUBLIC_R2_PUBLIC_URL in .env.local.

5. Configure the site owner

Editing is restricted to one account. Set OWNER_EMAIL to the Google email you sign in with — in both places:

# For the Next.js upload route (.env.local)
OWNER_EMAIL=you@example.com

# For Convex write mutations (deployment env)
npx convex env set OWNER_EMAIL you@example.com

Anyone can read published notes; only this account can create/edit.

6. Run

Open http://localhost:3000. Sign in with the owner account to start writing.

Environment variables

See .env.example for the full annotated list. Summary:

Variable Where Purpose
CONVEX_DEPLOYMENT .env.local Set by npx convex dev
NEXT_PUBLIC_CONVEX_URL .env.local Set by npx convex dev
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY .env.local Clerk publishable key
CLERK_SECRET_KEY .env.local Clerk secret key
CLERK_JWT_ISSUER_DOMAIN Convex env Issuer URL of the convex JWT template
R2_ACCOUNT_ID .env.local Cloudflare R2 account ID
R2_ACCESS_KEY_ID .env.local R2 API token access key
R2_SECRET_ACCESS_KEY .env.local R2 API token secret
R2_BUCKET_NAME .env.local R2 bucket name
NEXT_PUBLIC_R2_PUBLIC_URL .env.local Public base URL the bucket is served from
NEXT_PUBLIC_SITE_URL .env.local Canonical base for sitemap / OG / canonical tags
OWNER_EMAIL both The single account allowed to edit

Project structure

app/                  Next.js App Router
  (main)/             Authenticated editor app (sidebar, documents)
  notes/[slug]/       Public published note pages (+ OG/Twitter images)
  api/upload/         Presigned R2 upload/delete route (owner-gated)
  sitemap.ts          robots.ts          SEO endpoints
components/           Editor, toolbar, modals, shadcn/ui primitives
convex/               Schema, document queries/mutations, auth config
hooks/                Client hooks (owner check, search, cover image, ...)
lib/                  R2 client, slugify, note rendering, upload helpers

Deployment

Deploy the frontend to Vercel and push your Convex functions to a production deployment with npx convex deploy. Use Clerk production keys and set every environment variable above (including CLERK_JWT_ISSUER_DOMAIN and OWNER_EMAIL in the production Convex deployment, and NEXT_PUBLIC_SITE_URL to your real domain).

Credit

Built by terrydjony.com. Originally inspired by AntonioErdeljac/notion-clone-tutorial.

License

MIT