Skip to main content
Glama
nanoid.ts387 B
// This is a simple implementation of nanoid for client-side use // We're creating this helper to avoid adding a dependency export function nanoid(size = 21): string { const urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW" let id = "" let i = size while (i--) { id += urlAlphabet[(Math.random() * 64) | 0] } return id }

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/myeong-ga/research-agent-mcp-0.36-pro-preview-06-01'

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