Skip to main content
Glama
small-object.mjs867 B
import cronometro from 'cronometro' import fjs from 'fast-json-stringify' import AjvCompiler from '../index.js' const fjsSerialize = buildFJSSerializerFunction({ type: 'object', properties: { hello: { type: 'string' }, name: { type: 'string' } } }) const ajvSerialize = buildAJVSerializerFunction({ properties: { hello: { type: 'string' }, name: { type: 'string' } } }) await cronometro({ 'fast-json-stringify': function () { fjsSerialize({ hello: 'Ciao', name: 'Manuel' }) }, 'ajv serializer': function () { ajvSerialize({ hello: 'Ciao', name: 'Manuel' }) } }) function buildFJSSerializerFunction (schema) { return fjs(schema) } function buildAJVSerializerFunction (schema) { const factory = AjvCompiler({ jtdSerializer: true }) const compiler = factory({}, { customOptions: {} }) return compiler({ schema }) }

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/krtw00/search-mcp'

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