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

ashryanio

origami

Public
Like
origami
Home
Code
8
backend
4
frontend
2
jobs
1
shared
1
.vtignore
AGENTS.md
README.md
deno.json
Environment variables
1
Branches
1
Pull requests
Remixes
History
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
…
Viewing readonly version of main branch: v46
View latest version
README.md

origami.now (fresh baseline)

This Val is reset to a clean backend-first architecture:

  • The backend generates and stores the latest origami artifact.
  • The frontend is a minimal React UI that renders that artifact.
  • A cron job writes a new artifact each hour.

Structure

backend/ auth.ts index.http.ts origami.ts storage.ts frontend/ index.html app.js jobs/ generate-origami.cron.ts shared/ types.ts

Routes

  • GET /

    • Serves the React page.
    • Injects window.__INITIAL_DATA__ from backend storage/generation.
    • Supports ?force=1 for unprotected manual regeneration.
  • GET /api/origami/latest

    • Returns the latest artifact JSON.
    • Supports ?force=1 for unprotected manual regeneration.
  • POST /api/origami/generate

    • Token-protected by x-origami-token.
    • Optional JSON body: { "force": true }.

Generation model (current reset)

  • Uses Rabbit Ear as the source of square geometry.
  • Renders a simple square-paper SVG with one folded-corner visual.
  • Black linework only.
  • Front/back paper colors are regenerated from the seed.
  • Stores latest-only at blob key origami_latest_v1.

Scheduling

  • Cron file: jobs/generate-origami.cron.ts
  • Intended schedule: once per hour.

Env vars

  • ORIGAMI_GENERATE_TOKEN for POST /api/origami/generate
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.