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

lightweight

scaffold

Unlisted
Like
scaffold
Home
Code
10
backend
4
frontend
4
shared
3
.vtignore
AGENTS.md
CLAUDE.md
README.md
deno.json
guidelines.md
main.http.tsx
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
/
frontend
/
README.md
Code
/
frontend
/
README.md
Search
10/27/2025
Viewing readonly version of main branch: v61
View latest version
README.md

Frontend

This directory contains the React frontend for the Notion webhook integration application.

Structure

  • index.html - HTML shell that loads the React app
  • index.tsx - React app entry point
  • components/ - React components
    • App.tsx - Main application component
    • NotionBlock.tsx - Renders Notion block content
    • NotionProperty.tsx - Displays Notion page properties

React Configuration

IMPORTANT: All React files must:

  1. Include /** @jsxImportSource https://esm.sh/react@18.2.0 */ at the top
  2. Pin React dependencies to version 18.2.0: ?deps=react@18.2.0
  3. Use consistent React version across all imports

Styling

Uses Pico CSS (classless CSS framework loaded from CDN in index.html). Pico automatically styles semantic HTML elements without requiring CSS classes, keeping markup clean and maintainable.

API Communication

  • Fetch data from /api/* endpoints
  • Use shared types from ../shared/types.ts
  • Handle loading and error states in components

Error Handling

The error catching script is included in index.html to capture client-side errors for better debugging.

Development

Since this is a Val Town project, the frontend is served through Hono routes defined in main.http.tsx.

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.