• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

satori-syntax-highlighter

Public
Like
satori-syntax-highlighter
Home
Code
3
README.md
H
highlighter.ts
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/16/2025
Viewing readonly version of main branch: v5
View latest version
README.md

Satori Syntax Highlighter for Val Town

A syntax highlighter that generates images from code snippets. This is a port of the Satori Syntax Highlighter project to Val Town.

Features

  • Generate syntax-highlighted images from code snippets
  • Customize background color, language, and font size
  • Supports JavaScript, TypeScript, CSS, and HTML

Project Structure

  • highlighter.ts - HTTP endpoint that generates SVG images from code
  • index.ts - Frontend UI for customizing and viewing the generated images

Technologies Used

  • Satori - For rendering React components to SVG
  • Lowlight - For syntax highlighting
  • Yoga - For layout

Usage

Visit the frontend page to customize and generate syntax-highlighted images.

License

The MIT License (MIT).

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.