Skip to content
joncodedPublic

About

keying in those words to understand them better (Next.js + Llama LLM + decap CMS)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Keywords

keying in our words to understand them better

an LLM-powered "language analysis platform" built with Next.js + Llama (AI), alongside a "blog" for writing about words:

screenshot of keywords home page

Forewords

Keywords came from a wish to understand murky words like "paroxysm" and things like "sub specie corporis, sub specie realitatis"!

Hallmarks

  • analyze phrases
  • analyze writing samples
  • explore etymology
  • blog entries
  • static pages

screenshot of keywords writing page

🔍 Phrases (up to 10 words)

  • Origin: find out where a word or phrase comes from!
  • Meaning: a brief definition
  • Etymology: word origin + history + evolution
  • Examples: see how to use the term
  • Synonyms: find alternative expressions with context
  • Inflections: view grammatical forms (verb conjugations, noun cases, etc.)
  • Multilingual: works with English, Japanese, Spanish, French, German, and more
  • Shareable: share the result as a permalink (/phrase?q=input)

screenshot of keywords writing page

✍️ Writing (up to 50 words)

  • Automatic: language identification
  • Summary: simplified paraphrasing of original writing
  • Vocabulary builder: detects words at CEFR B2+ level or higher
    • Collapsibles: expandable word details for clean UX

screenshot of keywords writing page

📝 Blogging

  • Decap CMS: Git-based headless CMS
  • Rich text editing: TipTap editor with formatting, lists, links
  • Tag system: Organize posts with tags and tag descriptions (comma separated values)
  • Forward-dating and back-dating: Schedule posts for future publication
  • Dynamic routing: SEO-friendly URLs for posts and tags
  • Markdown rendering: write in Markdown if you wish!

📄 Static pages

  • CMS-managed: Create and edit pages through CMS
  • Markdown content: Full markdown support with syntax highlighting
  • Dynamic Routes: Automatic page generation from CMS

🎨 UX

  • Dark mode: System-aware theme switching with manual toggle
  • Responsive: Mobile-first Tailwind CSS styling
  • Accessibility: ARIA labels, skip links, keyboard navigation
  • Loading states: Smooth loading indicators and transitions
  • 404 pages: Custom error page with navigation

🔲 Frameworks

Runtimes

Run the build on either:

keywords.joncoded.com

or

keywords-joncoded.vercel.app

Setup

This needs:

  • Node.js 18+ and npm/yarn/pnpm
  • Groq API key (free tier: 14,400 requests/day)

clone repo

Run the following on "Terminal":

git clone https://github.com/joncoded/keywords.git && cd keywords
npm install

setup .env

Make .env.local in the root:

GROQ_API_KEY=gsk_your_groq_api_key_here

Get your free API key at https://console.groq.com/

start servers

In one terminal:

npx decap-server

In another terminal:

npm run dev

Open your browser:

CMS

Instructions for local machine only:

  1. Go to http://localhost:3000/admin
  2. No login required in development
  3. Make/tweak:
    • Blog posts
    • Static pages
    • Tag descriptions
  4. Click "Publish" to "save"
  5. Content self-commits to the content/ folder in the remote repo!
  6. "Changes" show up right away

About

keying in those words to understand them better (Next.js + Llama LLM + decap CMS)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages