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

dcm31

moiPosterImproved

Tool to manage moi.md files for Val Town content
Public
Like
moiPosterImproved
Home
Code
6
backend
2
frontend
2
shared
2
README.md
moi.md
testfile_1745875710738.txt
Branches
12
Pull requests
8
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
/
moi.md
Code
/
moi.md
Search
4/29/2025
Viewing readonly version of enhanced-schema-support branch: v8
View latest version
moi.md
title:
MoiPosterImproved
description:
Tool to manage moi.md files for Val Town content
url:
https://moiposter.val.run/
imageUrl:
https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgwZmZhYzU5MDQwODE5MThiNTEyMWVkMGRhZGEzYWQ6ZmlsZV8wMDAwMDAwMDIwMzg2MjMwYThiZWNmM2ViZjQ4NzgwYSIsInRzIjoiNDg0OTY2IiwicCI6InB5aSIsInNpZyI6IjcwYTg4NTEwZTNhYTYxMzRmMWQzNmM0MWVmMmZiNzE2ZWZkZGNkNzI0OTk3MWY4ZjNiN2NmNzExMDU5ZGNkYmEiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ==
author:
dcm31
tags:
val-town
moi
markdown
vals
build-moi
tier:
1
tabs:
Tools
Utilities

MoiPosterImproved

An improved tool for creating and managing moi.md files across Val Town vals. This project provides both a web interface and a script that can be imported and used programmatically.

Installation

This is a Val Town project. You can use it by importing the standalone script directly:

// Import the processor for batch operations import moiPoster from "https://esm.town/v/dcm31/moiPosterScript"; // Process all public vals const results = await moiPoster({ filter: 'public' });

Structure

This project includes the following components:

  • Backend API with Hono for handling requests
  • React-based frontend with moi.md editor and preview
  • Shared utilities for generating appropriate moi.md content
  • Batch processing functionality to update many vals at once

Features

  • Create and edit moi.md files with a user-friendly interface
  • Preview markdown with live updates
  • Filter vals by privacy settings
  • Batch process multiple vals at once
  • Automatic generation of appropriate frontmatter and content
  • Support for priority tier and custom tabs for build.moi integration
  • Field-by-field editing of moi.md frontmatter
  • Preservation of existing content when updating

Enhanced Schema Support

This version adds support for two new fields in the moi.md frontmatter:

Priority Tier

The tier field allows you to set the display priority in build.moi:

tier: 1.5
  • Lower values (e.g., 1) appear before higher values (e.g., 3)
  • Decimal values are supported (e.g., 0.5, 1.3, 2.7)
  • Items with the same tier value maintain their original order

Custom Tabs

The tabs field allows you to assign vals to custom tab categories:

tabs: ["Projects", "Tutorials", "Demos"]
  • Vals can belong to multiple tabs by listing multiple tab names
  • Tabs appear between the "Posts" and "Code" navigation items in build.moi
  • Each tab contains only content explicitly assigned to it

Usage Examples

// Import the processor for batch operations import moiPoster from "https://esm.town/v/dcm31/moiPosterScript"; // Process only public vals with tier and tabs support const results = await moiPoster({ filter: 'public', overwrite: true, // Overwrite existing moi.md files options: { tier: 2, // Set priority tier for all vals tabs: ["Projects"] // Add all vals to the Projects tab } }); console.log(`Created ${results.created} moi.md files`); console.log(`Updated ${results.updated} moi.md files`);

Integration with build.moi

This tool is designed to work seamlessly with the build.moi project, which provides a modern showcase for Val Town profiles.

When you create moi.md files with this tool, they'll automatically be displayed in the build.moi interface, organized according to your tier and tabs configuration.

License

MIT


Last updated: 2025-04-29

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.