Skip to main content
Glama
Southclaws

Storyden

by Southclaws
schemas.ts663 B
import { z } from "zod"; import { isSlug } from "@/utils/slugify"; export const UsernameSchema = z .string() .min(1, "Please enter a username.") .max(30, "Maximum length is 30 characters.") .toLowerCase() .refine( (val) => isSlug(val), "Username must be lowercase letters, numbers, hyphens, and underscores only.", ); export const PasswordSchema = z .string() .min(8, "Password must be at least 8 characters."); export const ExistingPasswordSchema = z .string() .min(1, "Please enter your current password."); export const UsernameOrEmailSchema = z.union([ UsernameSchema, z.string().email("Please enter a valid email."), ]);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server