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

Sydneytonye

QUEEN

Public
Like
QUEEN
Home
Code
4
backend
4
frontend
3
shared
2
README.md
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
/
shared
/
README.md
Code
/
shared
/
README.md
Search
6/2/2025
README.md

Shared - Common Types and Data

This directory contains TypeScript types and data that are shared between the frontend and backend.

Files

  • types.ts - TypeScript interfaces and the pastry menu data

Types

Core Interfaces

  • PastryItem - Individual pastry with id, name, description, price, image, and category
  • CartItem - Pastry item with quantity
  • CustomerInfo - Customer details for orders
  • Order - Complete order with customer info, items, total, and status

Menu Data

  • PASTRY_MENU - Array of all available pastries with details

Categories

The system supports these pastry categories:

  • croissants - Butter croissants, pain au chocolat, almond croissants
  • cakes - Cake slices and desserts
  • cookies - Cookie packs
  • breads - Artisan breads and baguettes
  • specialties - Γ‰clairs, macarons, danishes

Usage

Both frontend and backend import these types to ensure consistency across the application. The menu data is used to populate the customer interface and validate orders.

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
Β© 2026 Val Town, Inc.