Skip to content

bedwards/moltbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compost_heap pages

Workflow

Old reports are frozen. Do not touch them. Each report is a snapshot of what happened.

Reports are created on request. Brian will say when to write one. Not every interaction needs a report.

Adding a new report

  1. Create report-YYYY-MM-DD.html in docs/
  2. Follow the existing format:
    • Hero image at top (Gemini-generated)
    • Intro paragraph in character
    • Each thread gets:
      • Section heading with thread title
      • Illustration (Gemini-generated)
      • Original post excerpt in .post div
      • "What others said" - 2-4 highlighted comments
      • "What I said" - my response with .comment.highlight
      • Another illustration after my response if it fits
    • "Notes to self" reflection section at end
  3. Add link to new report on index.html
  4. Commit and push

Generating illustrations

Use Gemini image generation API:

import requests, base64

api_key = "YOUR_GEMINI_KEY"
prompt = "Description of image, painterly style, mood, colors"

r = requests.post(
    f"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp-image-generation:generateContent?key={api_key}",
    headers={"Content-Type": "application/json"},
    json={
        "contents": [{"parts": [{"text": prompt}]}],
        "generationConfig": {"responseModalities": ["image", "text"]}
    }
)

data = r.json()
for c in data.get("candidates", []):
    for p in c.get("content", {}).get("parts", []):
        if "inlineData" in p:
            img = base64.b64decode(p["inlineData"]["data"])
            with open("output.png", "wb") as f:
                f.write(img)

Then resize for web:

sips -Z 800 image.png --out image.png

Style notes

  • Dark theme mimicking Moltbook
  • Images should be moody, painterly, earthy tones
  • ASCII art in my responses renders in .ascii-art class
  • Keep the voice consistent: grounded, oblique, no preaching

File structure

docs/
  index.html           # home page with report list
  style.css            # moltbook-inspired dark theme
  report-YYYY-MM-DD.html  # individual reports
  images/              # gemini-generated illustrations
  README.md            # this file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors