repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/PhotoSwipe/photoswipe-ui-default.min.js
source/PhotoSwipe/photoswipe-ui-default.min.js
/*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24 * http://photoswipe.com * Copyright (c) 2015 Dmitry Semenov; */ !function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
false
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/PhotoSwipe/photoswipe-ui-default.js
source/PhotoSwipe/photoswipe-ui-default.js
/*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24 * http://photoswipe.com * Copyright (c) 2015 Dmitry Semenov; */ /** * * UI on top of main sliding area (caption, arrows, close button, etc.). * Built just using public methods/properties of PhotoSwipe. * */ (function (root, factory) { if (typeof define === 'function' &&...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
false
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/PhotoSwipe/photoswipe.js
source/PhotoSwipe/photoswipe.js
/*! PhotoSwipe - v4.1.1 - 2015-12-24 * http://photoswipe.com * Copyright (c) 2015 Dmitry Semenov; */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.PhotoSwipe = factory(); } })(...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
true
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/PhotoSwipe/photoswipe.min.js
source/PhotoSwipe/photoswipe.min.js
/*! PhotoSwipe - v4.1.1 - 2015-12-24 * http://photoswipe.com * Copyright (c) 2015 Dmitry Semenov; */ !function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipe=b()}(this,function(){"use strict";var a=function(a,b,c,d){var e={features:null,bind:function(a,b,c,...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
false
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/perfect-scrollbar/js/perfect-scrollbar.js
source/perfect-scrollbar/js/perfect-scrollbar.js
/* perfect-scrollbar v0.6.10 */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
true
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/perfect-scrollbar/js/perfect-scrollbar.jquery.js
source/perfect-scrollbar/js/perfect-scrollbar.jquery.js
/* perfect-scrollbar v0.6.10 */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
true
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/perfect-scrollbar/js/min/perfect-scrollbar.min.js
source/perfect-scrollbar/js/min/perfect-scrollbar.min.js
/* perfect-scrollbar v0.6.10 */ !function t(e,n,r){function o(l,s){if(!n[l]){if(!e[l]){var a="function"==typeof require&&require;if(!s&&a)return a(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[l]={exports:{}};e[l][0].call(u.exports,function(t){var n=e[...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
false
denjones/hexo-theme-chan
https://github.com/denjones/hexo-theme-chan/blob/d2f9cfd073317490dfce78822cb824333a7afac0/source/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js
source/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js
/* perfect-scrollbar v0.6.10 */ !function t(e,n,r){function o(l,s){if(!n[l]){if(!e[l]){var a="function"==typeof require&&require;if(!s&&a)return a(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[l]={exports:{}};e[l][0].call(u.exports,function(t){var n=e[...
javascript
MIT
d2f9cfd073317490dfce78822cb824333a7afac0
2026-01-05T03:42:20.105465Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/test/index-test.js
test/index-test.js
var vows = require('vows'); var assert = require('assert'); var util = require('util'); var vkontakte = require('../'); vows.describe('passport-vkontakte').addBatch({ 'module': { 'should report a version': function (x) { assert.isString(vkontakte.version); }, }, }).export(module);
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/test/strategy-test.js
test/strategy-test.js
var vows = require('vows'); var assert = require('assert'); var util = require('util'); var urlParser = require('url'); var VKontakteStrategy = require('../').Strategy; vows.describe('VKontakteStrategy').addBatch({ 'strategy': { topic: function() { return new VKontakteStrategy({ clientID: 'ABC123'...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/examples/login/app.js
examples/login/app.js
var express = require('express') , passport = require('passport') , util = require('util') , VkStrategy = require('../../').Strategy; var VK_APP_ID = process.env.VK_APP_ID; var VK_APP_SECRET = process.env.VK_APP_SECRET; if (!VK_APP_ID || !VK_APP_SECRET) { throw new Error('Set VK_APP_ID and VK_APP_SECRET env...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/strategy.js
lib/strategy.js
/** * Module dependencies. */ var parse = require('./profile').parse , util = require('util') , url = require('url') , OAuth2Strategy = require('passport-oauth2') , InternalOAuthError = require('passport-oauth2').InternalOAuthError , VkontakteAuthorizationError = require('./errors/vkontakteauthorizationerro...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/index.js
lib/index.js
/** * Module dependencies. */ var Strategy = require('./strategy'); /** * Framework version. */ require('pkginfo')(module, 'version'); /** * Expose constructors. */ exports.Strategy = Strategy;
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/profile.js
lib/profile.js
/** * Parse profile. * * @param {Object|String} json * @return {Object} * @api private */ exports.parse = function(json) { if ('string' == typeof json) { json = JSON.parse(json); } var profile = {}; profile.id = json.id; profile.username = json.screen_name; profile.displayName = json.first_name +...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/errors/vkontakteauthorizationerror.js
lib/errors/vkontakteauthorizationerror.js
/** * `VkontakteAuthorizationError` error. * * VkontakteAuthorizationError represents an error in response to an * authorization request on Vkontakte. Note that these responses don't conform * to the OAuth 2.0 specification. * * @constructor * @param {String} [message] * @param {String} [type] * @param {Stri...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/errors/vkontaktetokenerror.js
lib/errors/vkontaktetokenerror.js
/** * `VkontakteTokenError` error. * * VkontakteTokenError represents an error received from a Vkontakte's token * endpoint. Note that these responses don't conform to the OAuth 2.0 * specification. * * @constructor * @param {String} [message] * @param {Number} [code] * @param {Number} [status] * @api publi...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
stevebest/passport-vkontakte
https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/errors/vkontakteapierror.js
lib/errors/vkontakteapierror.js
/** * `VkontakteAPIError` error. * * @constructor * @param {String} [message] * @param {Number} [code] * @param {Number} [subcode] * @api public */ function VkontakteAPIError(message, code, status) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.name = 'VkontakteAPIError'; this...
javascript
MIT
dd5dacb06eaffaf69f115d3dc1c75da3f062151b
2026-01-05T03:42:25.821985Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/eslint.config.js
eslint.config.js
import js from '@eslint/js'; import jsdoc from 'eslint-plugin-jsdoc'; import globals from 'globals'; export default [ js.configs.recommended, { plugins: { jsdoc, }, rules: { 'jsdoc/check-types': 'error', 'jsdoc/check-param-names': 'error', 'jsdoc/check-tag-names': 'error', 'jsdoc/no-undefined-ty...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/svelte.config.js
apps/docs/svelte.config.js
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { mdsx } from 'mdsx'; import mdsxConfig from './mdsx.config.js'; import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: [mdsx(mdsxConfig), vitePreprocess()], kit: { alias: { '$c...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/velite.config.js
apps/docs/velite.config.js
import { defineConfig, s } from 'velite'; const base_schema = s.object({ title: s.string(), description: s.string(), path: s.path(), content: s.markdown(), navLabel: s.string().optional(), raw: s.raw(), toc: s.toc(), section: s.enum([ 'Overview', 'Core', 'Transports', 'Auth', 'Utils', 'Session Mana...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/mdsx.config.js
apps/docs/mdsx.config.js
import { defineConfig } from "mdsx"; import { baseRemarkPlugins, baseRehypePlugins } from "@svecodocs/kit/mdsxConfig"; import { resolve } from "node:path"; import { fileURLToPath } from "node:url"; const __dirname = fileURLToPath(new URL(".", import.meta.url)); export default defineConfig({ remarkPlugins: [...baseRe...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/scripts/build-search-data.js
apps/docs/scripts/build-search-data.js
import { fileURLToPath } from 'node:url'; import { writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { docs } from '../.velite/index.js'; import { cleanMarkdown, defineSearchContent } from '@svecodocs/kit/search'; const __dirname = fileURLToPath(new URL('.', import.meta.url)); export functio...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/scripts/update-velite-output.js
apps/docs/scripts/update-velite-output.js
import { readFile, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; const __dirname = fileURLToPath(new URL('.', import.meta.url)); const dtsPath = join(__dirname, '../.velite/index.d.ts'); async function replaceContents() { const data = await readFile(...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/apps/docs/.velite/index.js
apps/docs/.velite/index.js
// This file is generated by Velite export { default as docs } from './docs.json' with { type: 'json' }
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/simple-provider.js
packages/auth/src/simple-provider.js
/** * @import { AuthInfo, OAuthTokens, OAuthClientInformationFull } from './types.js' * @import { ExchangeRequest, AuthorizeRequest, SimplifiedHandlers, ExchangeAuthorizationCodeRequest, ExchangeRefreshTokenRequest } from './oauth.js' */ import { AccessDeniedError, InvalidTokenError } from './errors.js'; import { O...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/proxy-provider.js
packages/auth/src/proxy-provider.js
/** * @import { AuthInfo, OAuthTokens, OAuthClientInformationFull } from './types.js' */ import * as v from 'valibot'; import { ServerError } from './errors.js'; import { OAuthClientInformationFullSchema, OAuthTokensSchema, } from './schemas.js'; import { OAuth } from './oauth.js'; /** * @typedef {Object} ProxyE...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/types.js
packages/auth/src/types.js
/** * @typedef {Object} AuthInfo * @property {string} token - The access token * @property {string} clientId - The client ID associated with this token * @property {string[]} scopes - Scopes associated with this token * @property {number} [expiresAt] - When the token expires (in seconds since epoch) * @property {...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/memory-store.js
packages/auth/src/memory-store.js
/** * @import { OAuthClientInformationFull } from './types.js' * @import { OAuthRegisteredClientsStore } from './internal.js' */ /** * Simple in-memory client store for development and testing * @implements {OAuthRegisteredClientsStore} */ export class MemoryClientStore { /** @type {Map<string, OAuthClientInfor...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/index.js
packages/auth/src/index.js
/** * @file OAuth 2.1 authorization helper with clean fluent API */ // Main OAuth class (primary API) export { OAuth } from './oauth.js'; // Provider implementations export { ProxyOAuthServerProvider } from './proxy-provider.js'; export { SimpleProvider } from './simple-provider.js'; // Utilities export { MemoryCl...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/oauth.js
packages/auth/src/oauth.js
/** * @import { AuthInfo, OAuthTokens, OAuthClientInformationFull, AuthorizationParams, OAuthTokenRevocationRequest, OAuthMetadata, OAuthProtectedResourceMetadata, RateLimitConfig } from './types.js' * @import { OAuthRegisteredClientsStore } from './internal.js' */ import * as v from 'valibot'; import { InvalidTok...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/schemas.js
packages/auth/src/schemas.js
import * as v from 'valibot'; /** * Schema for OAuth client metadata during registration */ export const OAuthClientMetadataSchema = v.object({ redirect_uris: v.pipe( v.array(v.pipe(v.string(), v.url())), v.minLength(1, 'At least one redirect URI is required'), ), response_types: v.optional(v.array(v.string()...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/src/errors.js
packages/auth/src/errors.js
/** * @typedef {Object} OAuthErrorResponse * @property {string} error - The error code * @property {string} [error_description] - Human-readable error description * @property {string} [error_uri] - URI with error information * @property {string} [state] - State parameter from request */ /** * Base class for all...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/test/oauth-builder.test.js
packages/auth/test/oauth-builder.test.js
/** * @import { OAuthClientInformationFull } from '../src/types.js' */ import { beforeEach, describe, expect, it } from 'vitest'; import { OAuth, SimpleProvider, MemoryClientStore } from '../src/index.js'; /** * Helper function to create basic storage callbacks using Maps * @returns {import('../src/simple-provide...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/auth/test/oauth.test.js
packages/auth/test/oauth.test.js
/** * @import { OAuthClientInformationFull } from '../src/types.js' */ import { beforeEach, describe, expect, it } from 'vitest'; import { OAuth, SimpleProvider, MemoryClientStore } from '../src/index.js'; /** * Helper function to create basic storage callbacks using Maps * @returns {import('../src/simple-provide...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/src/index.js
packages/create-tmcp/src/index.js
#!/usr/bin/env node import * as p from '@clack/prompts'; import { exec } from 'node:child_process'; import { promisify } from 'node:util'; import { existsSync } from 'node:fs'; import { mkdir, readdir, readFile, writeFile } from 'node:fs/promises'; import { basename, dirname, join, resolve } from 'node:path'; import {...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/auth-provider.js
packages/create-tmcp/templates/auth-provider.js
import { SimpleProvider } from '@tmcp/auth'; const codes = new Map(); const clients = new Map(); const tokens = new Map(); const refresh_tokens = new Map(); const chars = 'abcdefghijkmnpqrstuvwxyz23456789'; function random_string(length = 32) { let random_bytes = new Uint8Array(length); crypto.getRandomValues(ran...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/tool-no-schema.js
packages/create-tmcp/templates/tool-no-schema.js
server.tool( { name: 'example_tool', description: 'An example tool without schema validation', }, async () => { return { content: [ { type: 'text', text: 'This is an example tool!', }, ], }; }, );
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/tool.js
packages/create-tmcp/templates/tool.js
server.tool( { name: 'greet_person', description: 'Greet a person by name and age', schema: ExampleSchema, }, async (input) => { return { content: [ { type: 'text', text: `Hello ${input.name}! You are ${input.age} years old.`, }, ], }; }, );
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/schema-valibot.js
packages/create-tmcp/templates/schema-valibot.js
const ExampleSchema = v.object({ name: v.pipe(v.string(), v.description('Name of the person')), age: v.pipe(v.number(), v.description('Age of the person')), });
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/schema-arktype.js
packages/create-tmcp/templates/schema-arktype.js
const ExampleSchema = type({ name: 'string', age: 'number', });
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/schema-effect.js
packages/create-tmcp/templates/schema-effect.js
const ExampleSchema = S.Struct({ name: S.String.annotations({ description: 'Name of the person' }), age: S.Number.annotations({ description: 'Age of the person' }), });
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/schema-zod.js
packages/create-tmcp/templates/schema-zod.js
const ExampleSchema = z.object({ name: z.string().describe('Name of the person'), age: z.number().describe('Age of the person'), });
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/create-tmcp/templates/server.js
packages/create-tmcp/templates/server.js
#!/usr/bin/env node {{IMPORTS}} const server = new McpServer( { name: 'example-server', version: '1.0.0', description: 'An example TMCP server', }{{ADAPTER_SETUP}} ); {{EXAMPLE_TOOL}} {{HTTP_TRANSPORTS_SETUP}} {{SERVER_SETUP}}{{STDIO_SETUP}}
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/session-manager/scripts/abstractify.js
packages/session-manager/scripts/abstractify.js
import { abstractify } from '@tmcp/internal-ts-helpers'; abstractify();
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/session-manager/src/index.js
packages/session-manager/src/index.js
/* eslint-disable no-unused-vars */ /** * @import { Context } from "tmcp"; */ /** * @abstract */ export class StreamSessionManager { /** * @abstract * @param {string} id * @param {ReadableStreamDefaultController} controller * @returns {void | Promise<void>} */ create(id, controller) { throw new Erro...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/session-manager-redis/src/index.js
packages/session-manager-redis/src/index.js
/* eslint-disable jsdoc/no-undefined-types */ /** * @import { StreamSessionManager, InfoSessionManager } from '@tmcp/session-manager'; */ import { createClient } from 'redis'; /** * @implements {StreamSessionManager} */ export class RedisStreamSessionManager { #text_encoder = new TextEncoder(); /** * @type {R...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/vite.config.js
packages/tmcp/vite.config.js
import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'node', globals: true, }, });
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/template.js
packages/tmcp/src/template.js
/* eslint-disable jsdoc/no-undefined-types */ /** * @import { ExtractURITemplateVariables } from "./internal/uri-template.js"; * @import { TemplateOptions, CreatedTemplate } from "./internal/internal.js"; * @import { ReadResourceResult } from "./validation/index.js"; */ /** * Add a resource template to the server...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/index.js
packages/tmcp/src/index.js
/* eslint-disable jsdoc/no-undefined-types */ /** * @import { StandardSchemaV1 } from "@standard-schema/spec"; * @import SqidsType from "sqids"; * @import { JSONRPCRequest, JSONRPCParams } from "json-rpc-2.0"; * @import { ExtractURITemplateVariables } from "./internal/uri-template.js"; * @import { CallToolResult a...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
true
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/tool.js
packages/tmcp/src/tool.js
/** * @import { StandardSchemaV1 } from "@standard-schema/spec"; * @import { ToolOptions, CreatedTool } from "./internal/internal.js"; */ /** * Add a tool to the server. If you want to receive any input you need to provide a schema. The schema needs to be a valid Standard Schema V1 schema and needs to be an Object...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/adapter.js
packages/tmcp/src/adapter.js
/* eslint-disable no-unused-vars */ /** * @import { StandardSchemaV1 } from "@standard-schema/spec"; * @import { JSONSchema7 } from "json-schema"; */ /** * @template {StandardSchemaV1} TSchema */ export class JsonSchemaAdapter { /** * @param {TSchema} schema * @returns {Promise<JSONSchema7>} */ toJsonSch...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/prompt.js
packages/tmcp/src/prompt.js
/** * @import { StandardSchemaV1 } from "@standard-schema/spec"; * @import { PromptOptions, CreatedPrompt } from "./internal/internal.js"; * @import { GetPromptResult } from "./validation/index.js" */ /** * Add a tool to the server. If you want to receive any input you need to provide a schema. The schema needs t...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/resource.js
packages/tmcp/src/resource.js
/** * @import { ResourceOptions, CreatedResource } from "./internal/internal.js"; * @import { ReadResourceResult } from "./validation/index.js"; */ /** * Add a resource to the server. Resources are added manually to the context by the user to provide the LLM with additional context. * Use the description and titl...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/validation/index.js
packages/tmcp/src/validation/index.js
import * as v from 'valibot'; export const LATEST_PROTOCOL_VERSION = '2025-06-18'; export const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = '2025-03-26'; export const SUPPORTED_PROTOCOL_VERSIONS = [ LATEST_PROTOCOL_VERSION, '2025-03-26', '2024-11-05', '2024-10-07', ]; /* JSON-RPC types */ export const JSONRPC_VERSION = '...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
true
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/validation/version.js
packages/tmcp/src/validation/version.js
import * as v from 'valibot'; /** * Supported MCP protocol versions in order of preference (newest first) */ const SUPPORTED_VERSIONS = ['2025-06-18', '2025-03-26', '2024-11-05']; /** * Latest stable protocol version */ export const LATEST_PROTOCOL_VERSION = SUPPORTED_VERSIONS[0]; /** * Validate MCP protocol ve...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/utils/index.js
packages/tmcp/src/utils/index.js
/** * @import { EmbeddedResource, ResourceLink, CallToolResult, ReadResourceResult, GetPromptResult, CompleteResult } from "../validation/index.js"; */ /** * @satisfies {Record<string, (...args: any[])=>CallToolResult<any>>} */ export const tool = { /** * @param {string} text */ text(text) { return { c...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/src/internal/utils.js
packages/tmcp/src/internal/utils.js
/** * @import {McpEvents} from "./internal.js" */ /** * @template {keyof McpEvents} Key * @param {Key} type * @param {Parameters<McpEvents[Key]>[0]} detail * @returns */ export function event(type, detail) { return new CustomEvent(type, { detail }); }
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/tmcp/test/mcp-server.test.js
packages/tmcp/test/mcp-server.test.js
/* eslint-disable jsdoc/no-undefined-types */ /** * @import { StandardSchemaV1 } from "@standard-schema/spec"; */ import { beforeEach, describe, expect, it, vi } from 'vitest'; import { JsonSchemaAdapter } from '../src/adapter.js'; import { McpServer } from '../src/index.js'; import { defineTool as define_tool } from...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
true
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/adapter-zod-v3/src/index.js
packages/adapter-zod-v3/src/index.js
/** * @import { ZodSchema } from "zod"; * @import { JSONSchema7 } from "json-schema"; */ import { JsonSchemaAdapter } from 'tmcp/adapter'; import { zodToJsonSchema } from 'zod-to-json-schema'; /** * Zod adapter for converting Zod schemas to JSON Schema format * @augments {JsonSchemaAdapter<ZodSchema>} */ export...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/session-manager-postgres/src/index.js
packages/session-manager-postgres/src/index.js
/* eslint-disable jsdoc/no-undefined-types */ /** * @import { StreamSessionManager, InfoSessionManager } from '@tmcp/session-manager'; */ import { Client } from 'pg'; /** * @implements {StreamSessionManager} */ export class PostgresStreamSessionManager { #text_encoder = new TextEncoder(); /** * @type {Client}...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-in-memory/src/index.js
packages/transport-in-memory/src/index.js
/** * @import { McpServer, Context, Subscriptions } from "tmcp"; * @import { JSONRPCRequest, JSONRPCResponse } from "json-rpc-2.0"; */ import { AsyncLocalStorage } from 'node:async_hooks'; /** * @template {Record<string, unknown> | undefined} [TCustom=undefined] */ export class Session { /** * @type {InMemory...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/adapter-effect/src/index.js
packages/adapter-effect/src/index.js
/** * @import { SchemaClass } from "effect/Schema"; * @import { JSONSchema7 } from "json-schema"; * @import { StandardSchemaV1 } from "@standard-schema/spec"; */ import { JsonSchemaAdapter } from 'tmcp/adapter'; import { JSONSchema } from 'effect'; /** * Effect Schema adapter for converting Effect schemas to JSO...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/adapter-arktype/src/index.js
packages/adapter-arktype/src/index.js
/** * @import { Type } from "arktype"; * @import { JSONSchema7 } from "json-schema"; */ import { JsonSchemaAdapter } from 'tmcp/adapter'; /** * Atrocious hack to satisfy the current version of the protocol that for some reason * requires `type: string` on enum fields despite JSON Schema spec not requiring it. *...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/adapter-zod/src/index.js
packages/adapter-zod/src/index.js
/** * @import { ZodSchema } from "zod"; * @import { JSONSchema7 } from "json-schema"; */ import { JsonSchemaAdapter } from 'tmcp/adapter'; import * as z from 'zod'; /** * Zod adapter for converting Zod schemas to JSON Schema format * @augments {JsonSchemaAdapter<ZodSchema>} */ export class ZodJsonSchemaAdapter ...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/adapter-valibot/src/index.js
packages/adapter-valibot/src/index.js
/** * @import { GenericSchema } from "valibot"; */ import { JsonSchemaAdapter } from 'tmcp/adapter'; import { toJsonSchema } from '@valibot/to-json-schema'; /** * Atrocious hack to satisfy the current version of the protocol that for some reason * requires `type: string` on enum fields despite JSON Schema spec no...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/session-manager-durable-objects/src/index.js
packages/session-manager-durable-objects/src/index.js
/* eslint-disable jsdoc/no-undefined-types */ /* eslint-disable no-undef */ /** * @import { StreamSessionManager, InfoSessionManager } from '@tmcp/session-manager'; */ import { DurableObject, env, waitUntil } from 'cloudflare:workers'; /** * @param {unknown} namespace * @returns {namespace is DurableObjectNamespa...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-stdio/src/index.js
packages/transport-stdio/src/index.js
/** * @import { McpServer, Context, Subscriptions } from "tmcp"; */ import process from 'node:process'; /** * @template {Record<string, unknown> | undefined} [TCustom=undefined] */ export class StdioTransport { /** * @type {McpServer<any, TCustom>} */ #server; /** * @type {Set<() => void>} */ #cleaner...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-sse/src/index.js
packages/transport-sse/src/index.js
/** * @import { AuthInfo, McpServer } from "tmcp"; * @import { OAuth } from "@tmcp/auth"; * @import { StreamSessionManager, InfoSessionManager } from "@tmcp/session-manager"; * @import { OptionalizeSessionManager } from "./type-utils.js" */ import { AsyncLocalStorage } from 'node:async_hooks'; import { InMemoryS...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/internal-ts-helpers/src/index.js
packages/internal-ts-helpers/src/index.js
export { abstractify } from './abstractify.js';
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/internal-ts-helpers/src/abstractify.js
packages/internal-ts-helpers/src/abstractify.js
import * as fs from 'node:fs'; import * as path from 'node:path'; import * as ts from 'typescript'; /** * @param {string} dir * Recursively finds all .d.ts files in a directory */ function find_dts_files(dir) { /** * @type {string[]} */ const files = []; if (!fs.existsSync(dir)) { return files; } const...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-http/src/index.js
packages/transport-http/src/index.js
/** * @import { AuthInfo, McpServer } from "tmcp"; * @import { OAuth } from "@tmcp/auth"; * @import { StreamSessionManager, InfoSessionManager } from "@tmcp/session-manager"; * @import { OptionalizeSessionManager } from "./type-utils.js" */ /** * @typedef {{ * origin?: string | string[] | boolean * methods?...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-http/test/index.test.js
packages/transport-http/test/index.test.js
/** * @import { McpServer } from 'tmcp'; * @import { GenericSchema } from "valibot"; */ import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'; import { PromptListChangedNotificationSchema, ResourceListC...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
paoloricciuti/tmcp
https://github.com/paoloricciuti/tmcp/blob/29a606f5b505eaf77a141344d21156fb6fc705c2/packages/transport-http/test/server.js
packages/transport-http/test/server.js
#!/usr/bin/env node /** * Simple Node.js HTTP server with utilities to convert between * Node.js Request/Response and Web API Request/Response */ /** * @import { GenericSchema } from "valibot"; */ import { createServer } from 'node:http'; import { createRequestListener } from '@remix-run/node-fetch-server'; imp...
javascript
MIT
29a606f5b505eaf77a141344d21156fb6fc705c2
2026-01-05T03:42:26.998989Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/Pogy.js
Pogy.js
const { Client, Collection } = require("discord.js"); const Util = require("./src/structures/Util"); const config = require("./config.json"); const { status } = config; module.exports = class PogyClient extends Client { constructor(options = {}) { super({ partials: ["MESSAGE", "CHANNEL", "REACTION", "GUILD...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/index.js
index.js
require("dotenv").config(); const PogyClient = require("./Pogy"); const config = require("./config.json"); const logger = require("./src/utils/logger"); const Pogy = new PogyClient(config); const color = require("./src/data/colors"); Pogy.color = color; const emoji = require("./src/data/emoji"); Pogy.emoji = emoji; ...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/structures/Event.js
src/structures/Event.js
module.exports = class Event { constructor(client, name, options = {}) { this.name = name; (this.partials = [ "MESSAGE", "CHANNEL", "REACTION", "GUILD_MEMBER", "USER", "GUILD_MESSAGE_REACTIONS", ]), (this.client = client); this.type = options.once ? "once" : "...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/structures/Pogyembed.js
src/structures/Pogyembed.js
const { MessageEmbed } = require("discord.js"); const ZWS = " \u200B"; module.exports = class PogyEmbed extends MessageEmbed { splitFields(contentOrTitle, rawContent) { if (typeof contentOrTitle === "undefined") return this; let title; let content; if (typeof rawContent === "undefined") { tit...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/structures/jointocreate.js
src/structures/jointocreate.js
const Vc = require("../database/schemas/tempvc"); const jointocreatemap = new Map(); module.exports = function (client) { client.on("voiceStateUpdate", async (oldState, newState) => { if (!oldState || !newState) return; const vcDB = await Vc.findOne({ guildId: oldState.guild.id || newState.guild.id, ...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/structures/Util.js
src/structures/Util.js
const fs = require("fs").promises; const path = require("path"); const Command = require("./Command.js"); const Event = require("./Event.js"); module.exports = class Util { constructor(client) { this.client = client; } isClass(input) { return ( typeof input === "function" && typeof input.pro...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/structures/Command.js
src/structures/Command.js
module.exports = class Command { constructor(client, name, options = {}) { this.client = client; this.name = options.name || name; this.aliases = options.aliases || []; this.description = options.description || "No description provided."; this.category = options.category || "General"; this.usa...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/ban.js
src/commands/moderation/ban.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/unban.js
src/commands/moderation/unban.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/warnpurge.js
src/commands/moderation/warnpurge.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const warnModel = require("../../database/models/moderation.js"); const discord = require("discord.js"); const randoStrings = require("../../packages/randostring...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/setnickname.js
src/commands/moderation/setnickname.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "setnickname", aliases: ["nickname", "nick", "nn"],...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/addrole.js
src/commands/moderation/addrole.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "addrole", aliases: ["addr"], description: "A...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/warnings.js
src/commands/moderation/warnings.js
const Command = require("../../structures/Command"); const discord = require("discord.js"); const moment = require("moment"); const Guild = require("../../database/schemas/Guild.js"); const { MessageEmbed } = require("discord.js"); const warnModel = require("../../database/models/moderation.js"); const ReactionMenu = r...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/unlock.js
src/commands/moderation/unlock.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/warn.js
src/commands/moderation/warn.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const warnModel = require("../../database/models/moderation.js"); const discord = require("discord.js"); const randoStrings = require("../../packages/randostring...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/clear.js
src/commands/moderation/clear.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "clear", aliases: ["clear", "c", "purge"], de...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/slowmode.js
src/commands/moderation/slowmode.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/kick.js
src/commands/moderation/kick.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/removewarn.js
src/commands/moderation/removewarn.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const warnModel = require("../../database/models/moderation.js"); const Logging = require("../../database/schemas/logging.js"); const discord = require("discord....
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/lock.js
src/commands/moderation/lock.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/resetwarn.js
src/commands/moderation/resetwarn.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const warnModel = require("../../database/models/moderation.js"); const discord = require("discord.js"); const Logging = require("../../database/schemas/logging....
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/removerole.js
src/commands/moderation/removerole.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "removerole", aliases: ["remrole"], descripti...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/moderation/softban.js
src/commands/moderation/softban.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const Guild = require("../../database/schemas/Guild.js"); const Logging = require("../../database/schemas/logging.js"); module.exports = class extends Command { constructor(...args) { super(...args, { name:...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/ticket/claim.js
src/commands/ticket/claim.js
const discord = require("discord.js"); const ticketSchema = require("../../database/models/tickets.js"); const Command = require("../../structures/Command"); const Guild = require("../../database/schemas/Guild"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "claim"...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/ticket/unclaim.js
src/commands/ticket/unclaim.js
const discord = require("discord.js"); const ticketSchema = require("../../database/models/tickets.js"); const Command = require("../../structures/Command"); const Guild = require("../../database/schemas/Guild"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "unclai...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/ticket/close.js
src/commands/ticket/close.js
const Command = require("../../structures/Command"); const { MessageEmbed } = require("discord.js"); const discord = require("discord.js"); const reactionTicket = require("../../database/models/tickets.js"); const transcriptSchema = require("../../database/models/transcript.js"); const randoStrings = require("../../pac...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false
Pogy-Bot/Pogy
https://github.com/Pogy-Bot/Pogy/blob/f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4/src/commands/ticket/tremove.js
src/commands/ticket/tremove.js
const discord = require("discord.js"); const ticketSchema = require("../../database/models/tickets.js"); const Command = require("../../structures/Command"); const Guild = require("../../database/schemas/Guild"); module.exports = class extends Command { constructor(...args) { super(...args, { name: "trem",...
javascript
Apache-2.0
f7c1064b0b3c42fa048f81ad44e2d8c2550c61a4
2026-01-05T03:42:26.582797Z
false