repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/step-components.ts
packages/hoppscotch-common/src/composables/step-components.ts
import { computed, defineComponent, ref } from "vue" export function useSteps() { type Step = ReturnType<typeof defineStep> const steps: Step[] = [] const currentStepIndex = ref(0) const currentStep = computed(() => { return steps[currentStepIndex.value] }) const backHistoryIndexes = ref([0]) co...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/auth.ts
packages/hoppscotch-common/src/composables/auth.ts
import { platform } from "~/platform" import { AuthEvent, HoppUser } from "~/platform/auth" import { Subscription } from "rxjs" import { onBeforeUnmount, onMounted, watch, WatchStopHandle } from "vue" import { useReadonlyStream } from "./stream" /** * A Vue composable function that is called when the auth status * i...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/useFileUpload.ts
packages/hoppscotch-common/src/composables/useFileUpload.ts
import { ref } from "vue" import * as E from "fp-ts/Either" import { useToast } from "./toast" import { useI18n } from "./i18n" export type UploadType = "org-logo" export interface UploadResult { success: boolean url?: string message?: string statusCode?: number } export interface UploadError { message: st...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/ref.ts
packages/hoppscotch-common/src/composables/ref.ts
import { customRef, onBeforeUnmount, ref, Ref, UnwrapRef, watch } from "vue" export function pluckRef<T, K extends keyof T>(ref: Ref<T>, key: K): Ref<T[K]> { return customRef((track, trigger) => { const stopWatching = watch(ref, (newVal, oldVal) => { if (newVal[key] !== oldVal[key]) { trigger() ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/mockServerWorkspace.ts
packages/hoppscotch-common/src/composables/mockServerWorkspace.ts
import { onMounted, watch } from "vue" import { useService } from "dioc/vue" import { WorkspaceService } from "~/services/workspace.service" import { setMockServers, loadMockServers } from "~/newstore/mockServers" import { platform } from "~/platform" import { useMockServerVisibility } from "./mockServerVisibility" /*...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/settings.ts
packages/hoppscotch-common/src/composables/settings.ts
import { Ref } from "vue" import { settingsStore, SettingsDef } from "~/newstore/settings" import { pluck, distinctUntilChanged } from "rxjs/operators" import { useStream, useStreamStatic } from "./stream" export function useSetting<K extends keyof SettingsDef>( settingKey: K ): Ref<SettingsDef[K]> { return useStr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/useDocumentationWorker.ts
packages/hoppscotch-common/src/composables/useDocumentationWorker.ts
import { HoppCollection, HoppRESTRequest } from "@hoppscotch/data" import { ref, readonly } from "vue" export interface DocumentationItem { type: "folder" | "request" item: HoppCollection | HoppRESTRequest parentPath: string id: string pathOrID?: string | null folderPath?: string | null requestIndex?: nu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/i18n.ts
packages/hoppscotch-common/src/composables/i18n.ts
import { useI18n as _useI18n } from "vue-i18n" export function useI18n() { return _useI18n().t } export const useFullI18n = _useI18n
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/graphql.ts
packages/hoppscotch-common/src/composables/graphql.ts
import * as E from "fp-ts/Either" import { pipe } from "fp-ts/function" import { reactive, ref, Ref, unref, isRef, watchEffect, WatchStopHandle, watchSyncEffect, watch, nextTick, } from "vue" import { client, GQLError, parseGQLErrorString, } from "@helpers/backend/GQLClient" import { AnyVari...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/pwa.ts
packages/hoppscotch-common/src/composables/pwa.ts
import { useI18n } from "@composables/i18n" import { useToast } from "@composables/toast" import { pwaNeedsRefresh, refreshAppForPWAUpdate } from "@modules/pwa" import { watch } from "vue" export const usePwaPrompt = function () { const toast = useToast() const t = useI18n() watch( pwaNeedsRefresh, (val...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/toast.ts
packages/hoppscotch-common/src/composables/toast.ts
import { useToasted } from "@hoppscotch/vue-toasted" export const useToast = useToasted
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/useMockServer.ts
packages/hoppscotch-common/src/composables/useMockServer.ts
import { useI18n } from "@composables/i18n" import { useReadonlyStream } from "@composables/stream" import { useToast } from "@composables/toast" import { useService } from "dioc/vue" import { pipe } from "fp-ts/function" import * as TE from "fp-ts/TaskEither" import { computed } from "vue" import { MockServer, Workspa...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/ai-experiments.ts
packages/hoppscotch-common/src/composables/ai-experiments.ts
import { computed, Ref, ref } from "vue" import { useReadonlyStream } from "./stream" import { platform } from "~/platform" import { useSetting } from "./settings" import { HoppGQLRequest, HoppRESTRequest } from "@hoppscotch/data" import { useToast } from "@composables/toast" import { useI18n } from "@composables/i18n"...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/head.ts
packages/hoppscotch-common/src/composables/head.ts
export { useHead as usePageHead } from "@unhead/vue"
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts
packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts
import { HoppGQLAuthOAuth2, HoppRESTAuthOAuth2 } from "@hoppscotch/data" import * as E from "fp-ts/Either" import { Ref, computed } from "vue" import { z } from "zod" import { useI18n } from "~/composables/i18n" import { useToast } from "~/composables/toast" import { refWithCallbackOnChange } from "~/composables/ref" i...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/composables/oauth2/useOAuth2AdvancedParams.ts
packages/hoppscotch-common/src/composables/oauth2/useOAuth2AdvancedParams.ts
import { HoppGQLAuthOAuth2, HoppRESTAuthOAuth2 } from "@hoppscotch/data" import { Ref, ref, watch } from "vue" export type AuthRequestParam = { id: number key: string value: string active: boolean sendIn?: "headers" | "url" | "body" } export type TokenRequestParam = { id: number key: string value: str...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/components/importExport/types.ts
packages/hoppscotch-common/src/components/importExport/types.ts
import { HoppCollection } from "@hoppscotch/data" import { Component, Ref } from "vue" import { defineStep } from "~/composables/step-components" export type SupportedImportFormat = | "hoppscotch" | "postman" | "insomnia" | "openapi" | "har" // TODO: move the metadata except disabled and isLoading to import...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/types/ts-utils.ts
packages/hoppscotch-common/src/types/ts-utils.ts
export type KeysMatching<T, V> = { [K in keyof T]-?: T[K] extends V ? K : never }[keyof T]
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/types/kernel.d.ts
packages/hoppscotch-common/src/types/kernel.d.ts
import type { KernelAPI } from "@hoppscotch/kernel" declare global { interface Window { __KERNEL__?: KernelAPI } } export {}
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/types/pre-request.d.ts
packages/hoppscotch-common/src/types/pre-request.d.ts
type HoppRESTContentType = | null | "multipart/form-data" | "application/json" | "application/ld+json" | "application/hal+json" | "application/vnd.api+json" | "application/xml" | "text/xml" | "application/x-www-form-urlencoded" | "binary" | "text/html" | "text/plain" | "application/octet-strea...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/types/post-request.d.ts
packages/hoppscotch-common/src/types/post-request.d.ts
type HoppRESTContentType = | null | "multipart/form-data" | "application/json" | "application/ld+json" | "application/hal+json" | "application/vnd.api+json" | "application/xml" | "text/xml" | "application/x-www-form-urlencoded" | "binary" | "text/html" | "text/plain" | "application/octet-strea...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/types/pm-coll-exts.d.ts
packages/hoppscotch-common/src/types/pm-coll-exts.d.ts
import "postman-collection" /* There are some small mismatches in some types that the 'postman-collection' package provides (come on guys ;) ). These type definitions append extra information which is present in the runtime values of the types */ type PMRawLanguage = "text" | "javascript" | "json" | "html" | "x...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/theming.ts
packages/hoppscotch-common/src/modules/theming.ts
import { useSettingStatic } from "@composables/settings" import { usePreferredDark, useStorage } from "@vueuse/core" import { App, Ref, computed, reactive, watch } from "vue" import type { HoppBgColor } from "~/newstore/settings" import { PersistenceService } from "~/services/persistence" import { HoppModule } from "....
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/router.ts
packages/hoppscotch-common/src/modules/router.ts
import { HoppModule, HOPP_MODULES } from "." import { createRouter, createWebHistory, RouteLocationNormalized, } from "vue-router" import { setupLayouts } from "virtual:generated-layouts" import generatedRoutes from "virtual:generated-pages" import { readonly, ref } from "vue" import { platform } from "~/platform...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/ui.ts
packages/hoppscotch-common/src/modules/ui.ts
import { HoppModule } from "." import { plugin as HoppUI, HoppUIPluginOptions } from "@hoppscotch/ui" import { useKeybindingDisabler } from "~/helpers/keybindings" import { useI18n } from "vue-i18n" const { disableKeybindings, enableKeybindings } = useKeybindingDisabler() import "@hoppscotch/ui/style.css" const HoppU...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/whats-new.ts
packages/hoppscotch-common/src/modules/whats-new.ts
import { useWhatsNewDialog } from "~/composables/whats-new" import { HoppModule } from "." export default <HoppModule>{ onRootSetup() { useWhatsNewDialog() }, }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/interceptors.ts
packages/hoppscotch-common/src/modules/interceptors.ts
import { InterceptorService } from "~/services/interceptor.service" import { HoppModule } from "." import { getService } from "./dioc" import { platform } from "~/platform" import { watch } from "vue" import { applySetting } from "~/newstore/settings" import { useSettingStatic } from "~/composables/settings" export de...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/loadingbar.ts
packages/hoppscotch-common/src/modules/loadingbar.ts
import { HoppModule } from "." import NProgress from "nprogress" let deferedProgressHandle: ReturnType<typeof setTimeout> | null = null /** * Starts animating the global progress bar * @param deferTime How much time to defer the global progress bar rendering to */ export const startPageProgress = (deferTime?: numb...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/v-focus.ts
packages/hoppscotch-common/src/modules/v-focus.ts
import { nextTick } from "vue" import { HoppModule } from "." /* Declares a `v-focus` directive that can be used for components to acquire focus instantly once mounted */ export default <HoppModule>{ onVueAppInit(app) { app.directive("focus", { mounted: (el) => nextTick(() => el.focus()), }) }, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/dioc.ts
packages/hoppscotch-common/src/modules/dioc.ts
import { HoppModule } from "." import { Container, ServiceClassInstance } from "dioc" import { diocPlugin } from "dioc/vue" import { DebugService } from "~/services/debug.service" import { platform } from "~/platform" const serviceContainer = new Container() if (import.meta.env.DEV) { serviceContainer.bind(DebugSer...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/i18n.ts
packages/hoppscotch-common/src/modules/i18n.ts
import * as A from "fp-ts/Array" import { pipe } from "fp-ts/function" import * as O from "fp-ts/Option" import * as R from "fp-ts/Record" import { createI18n, I18n, I18nOptions } from "vue-i18n" import { merge } from "lodash-es" import { HoppModule } from "." import languages from "../../languages.json" import { thr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/pwa.ts
packages/hoppscotch-common/src/modules/pwa.ts
import { HoppModule } from "." import { ref, onMounted } from "vue" import { usePwaPrompt } from "@composables/pwa" import { registerSW } from "virtual:pwa-register" export type HoppPWARegistrationStatus = | { status: "NOT_INSTALLED" } | { status: "INSTALLED"; registration: ServiceWorkerRegistration | undefined } ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/toast.ts
packages/hoppscotch-common/src/modules/toast.ts
import Toasted from "@hoppscotch/vue-toasted" import type { ToastOptions } from "@hoppscotch/vue-toasted" import { HoppModule } from "." import "@hoppscotch/vue-toasted/style.css" // We are using a fork of Vue Toasted (github.com/clayzar/vue-toasted) which is a bit of // an untrusted fork, we will either want to make...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/index.ts
packages/hoppscotch-common/src/modules/index.ts
import { App } from "vue" import { pipe } from "fp-ts/function" import * as A from "fp-ts/Array" import { RouteLocationNormalized, Router } from "vue-router" export type HoppModule = { /** * Optional flag to mark a module as deprecated. * Deprecated modules will be filtered out during initialization. */ d...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/kernel-interceptors.ts
packages/hoppscotch-common/src/modules/kernel-interceptors.ts
import { watch } from "vue" import { HoppModule } from "." import { getService } from "./dioc" import { platform } from "~/platform" import { applySetting } from "~/newstore/settings" import { useSettingStatic } from "~/composables/settings" import { KernelInterceptorService } from "~/services/kernel-interceptor.servic...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/tippy.ts
packages/hoppscotch-common/src/modules/tippy.ts
import { HoppModule } from "." import VueTippy, { roundArrow, setDefaultProps } from "vue-tippy" import "tippy.js/dist/tippy.css" import "tippy.js/animations/scale-subtle.css" import "tippy.js/dist/border.css" import "tippy.js/dist/svg-arrow.css" export type TippyState = { isEnabled: boolean isVisible: boolean ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/modules/head.ts
packages/hoppscotch-common/src/modules/head.ts
import { useHead } from "@unhead/vue" import { createHead } from "@unhead/vue/client" import { APP_INFO } from "~/../meta" import { HoppModule } from "." export default <HoppModule>{ onVueAppInit(app) { const head = createHead() app.use(head) }, onRootSetup() { useHead({ title: `${APP_INFO.n...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/collections.ts
packages/hoppscotch-common/src/newstore/collections.ts
import { generateUniqueRefId, HoppCollection, HoppCollectionVariable, HoppGQLAuth, HoppGQLRequest, HoppRESTAuth, HoppRESTHeaders, HoppRESTRequest, makeCollection, GQLHeader, } from "@hoppscotch/data" import { cloneDeep } from "lodash-es" import { pluck } from "rxjs/operators" import { resolveSaveCon...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
true
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/environments.ts
packages/hoppscotch-common/src/newstore/environments.ts
import { Environment, GlobalEnvironment, GlobalEnvironmentVariable, HOPP_SUPPORTED_PREDEFINED_VARIABLES, } from "@hoppscotch/data" import { cloneDeep, isEqual } from "lodash-es" import { combineLatest, Observable } from "rxjs" import { distinctUntilChanged, map, pluck } from "rxjs/operators" import { uniqueID }...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/SSESession.ts
packages/hoppscotch-common/src/newstore/SSESession.ts
import { pluck, distinctUntilChanged } from "rxjs/operators" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { HoppRealtimeLog, HoppRealtimeLogLine, } from "~/helpers/types/HoppRealtimeLog" import { SSEConnection } from "~/helpers/realtime/SSEConnection" type HoppSSERequest = { en...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/reordering.ts
packages/hoppscotch-common/src/newstore/reordering.ts
import { distinctUntilChanged, pluck } from "rxjs" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" type ReorderingItem = | { type: "collection"; id: string; parentID: string | null } | { type: "request"; id: string; parentID: string | null } type CurrentReorderingState = { currentReorde...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/history.ts
packages/hoppscotch-common/src/newstore/history.ts
import { isEqual } from "lodash-es" import { pluck } from "rxjs/operators" import { HoppRESTRequest, translateToNewRequest, HoppGQLRequest, translateToGQLRequest, GQL_REQ_SCHEMA_VERSION, } from "@hoppscotch/data" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { executedRespons...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/MQTTSession.ts
packages/hoppscotch-common/src/newstore/MQTTSession.ts
import { distinctUntilChanged, pluck } from "rxjs/operators" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { MQTTConnection } from "~/helpers/realtime/MQTTConnection" import { HoppRealtimeLog, HoppRealtimeLogLine, } from "~/helpers/types/HoppRealtimeLog" type MQTTTab = { id: str...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/mockServers.ts
packages/hoppscotch-common/src/newstore/mockServers.ts
import { pipe } from "fp-ts/function" import * as TE from "fp-ts/TaskEither" import { BehaviorSubject } from "rxjs" import { pluck } from "rxjs/operators" import { getMyMockServers, getTeamMockServers, } from "~/helpers/backend/queries/MockServer" import { getService } from "~/modules/dioc" import { WorkspaceServic...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/HoppExtension.ts
packages/hoppscotch-common/src/newstore/HoppExtension.ts
import { distinctUntilChanged, pluck } from "rxjs" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" export type ExtensionStatus = "available" | "unknown-origin" | "waiting" type InitialState = { extensionStatus: ExtensionStatus } const initialState: InitialState = { extensionStatus: "wait...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/WebSocketSession.ts
packages/hoppscotch-common/src/newstore/WebSocketSession.ts
import { pluck, distinctUntilChanged } from "rxjs/operators" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { HoppRealtimeLog, HoppRealtimeLogLine, } from "~/helpers/types/HoppRealtimeLog" import { WSConnection } from "~/helpers/realtime/WSConnection" export type HoppWSProtocol = {...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/settings.ts
packages/hoppscotch-common/src/newstore/settings.ts
import { cloneDeep, defaultsDeep, has } from "lodash-es" import { Observable } from "rxjs" import { distinctUntilChanged, pluck } from "rxjs/operators" import type { KeysMatching } from "~/types/ts-utils" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { DEFAULT_HOPP_PROXY_URL, getDefaul...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/DispatchingStore.ts
packages/hoppscotch-common/src/newstore/DispatchingStore.ts
import { Subject, BehaviorSubject } from "rxjs" import { map } from "rxjs/operators" import { assign, clone } from "lodash-es" type DispatcherFunc<StoreType, PayloadType> = ( currentVal: StoreType, payload: PayloadType ) => Partial<StoreType> /** * Defines a dispatcher. * * This function exists to provide bett...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/SocketIOSession.ts
packages/hoppscotch-common/src/newstore/SocketIOSession.ts
import { pluck, distinctUntilChanged } from "rxjs/operators" import { Socket as SocketV2 } from "socket.io-client-v2" import { Socket as SocketV3 } from "socket.io-client-v3" import { Socket as SocketV4 } from "socket.io-client-v4" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { Hopp...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/localstate.ts
packages/hoppscotch-common/src/newstore/localstate.ts
import { Ref } from "vue" import { distinctUntilChanged, pluck } from "rxjs" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import { useStream } from "@composables/stream" type LocalState = { REMEMBERED_TEAM_ID: string | undefined } const defaultLocalState: LocalState = { REMEMBERED_TEAM...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/newstore/syncing.ts
packages/hoppscotch-common/src/newstore/syncing.ts
import { distinctUntilChanged, pluck } from "rxjs" import DispatchingStore, { defineDispatchers } from "./DispatchingStore" type SyncState = { isInitialSync: boolean shouldSync: boolean } type CurrentSyncingState = { currentSyncingItem: SyncState } const initialState: CurrentSyncingState = { currentSyncingIt...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/collections.ts
packages/hoppscotch-common/src/platform/collections.ts
import { HoppCollection } from "@hoppscotch/data" import { ReqType } from "~/helpers/backend/graphql" import * as E from "fp-ts/Either" export type CollectionsPlatformDef = { initCollectionsSync: () => void loadUserCollections?: (collectionType: "REST" | "GQL") => Promise<void> importToPersonalWorkspace?: ( ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/environments.ts
packages/hoppscotch-common/src/platform/environments.ts
export type EnvironmentsPlatformDef = { initEnvironmentsSync: () => void }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/kernel-io.ts
packages/hoppscotch-common/src/platform/kernel-io.ts
/** * Defines how to save a file to the user's filesystem. */ export type SaveFileWithDialogOptions = { /** * The data to be saved */ data: string | ArrayBuffer /** * The suggested filename for the file. This name will be shown in the * save dialog by default when a save is initiated. */ sugge...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/ui.ts
packages/hoppscotch-common/src/platform/ui.ts
import { Ref, Component } from "vue" import { getI18n } from "~/modules/i18n" export type HoppFooterMenuItem = { id: string text: (t: ReturnType<typeof getI18n>) => string icon: Component action: { type: "link"; href: string } | { type: "custom"; do: () => void } } export type HoppSupportOptionsMenuItem = { ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/limits.ts
packages/hoppscotch-common/src/platform/limits.ts
// Define various limits for the platform export type LimitsPlatformDef = { /** * Assign an import size limit when importing collections */ collectionImportSizeLimit?: number }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/organization.ts
packages/hoppscotch-common/src/platform/organization.ts
import type { Component } from "vue" export type OrganizationPlatformDef = { isDefaultCloudInstance: boolean getOrgInfo: () => Promise<{ orgID: string orgDomain: string name?: string logo?: string | null isAdmin: boolean } | null> getRootDomain: () => string initiateOnboarding: () => void...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/infra.ts
packages/hoppscotch-common/src/platform/infra.ts
import * as E from "fp-ts/Either" type ProxyAppUrl = { value: string name: string } export type InfraPlatformDef = { getIsSMTPEnabled?: () => Promise<E.Either<string, boolean>> getProxyAppUrl?: () => Promise<E.Either<string, ProxyAppUrl>> }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/inspectors.ts
packages/hoppscotch-common/src/platform/inspectors.ts
import { Container, ServiceClassInstance } from "dioc" import { Inspector } from "~/services/inspection" /** * Defines an added interceptor by the platform */ export type PlatformInspectorsDef = { // We are keeping this as the only mode for now // So that if we choose to add other modes, we can do without breaki...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/interceptors.ts
packages/hoppscotch-common/src/platform/interceptors.ts
import { Container, ServiceClassInstance } from "dioc" import { Interceptor } from "~/services/interceptor.service" export type PlatformInterceptorDef = | { type: "standalone"; interceptor: Interceptor } | { type: "service" // TODO: I don't think this type is effective, we have to come up with a better...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/history.ts
packages/hoppscotch-common/src/platform/history.ts
import { Ref } from "vue" export type HistoryPlatformDef = { initHistorySync: () => void requestHistoryStore?: { isHistoryStoreEnabled: Ref<boolean> isFetchingHistoryStoreStatus: Ref<boolean> hasErrorFetchingHistoryStoreStatus: Ref<boolean> } }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/spotlight.ts
packages/hoppscotch-common/src/platform/spotlight.ts
import { Container, ServiceClassInstance } from "dioc" import { SpotlightSearcher } from "~/services/spotlight" export type SpotlightPlatformDef = { additionalSearchers?: Array< ServiceClassInstance<unknown> & { new (c: Container): SpotlightSearcher } > }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/auth.ts
packages/hoppscotch-common/src/platform/auth.ts
import { ClientOptions } from "@urql/core" import { Observable } from "rxjs" import { Component } from "vue" import { getI18n } from "~/modules/i18n" import * as E from "fp-ts/Either" import { AxiosRequestConfig } from "axios" import { GQLError } from "~/helpers/backend/GQLClient" /** * A common (and required) set of...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/analytics.ts
packages/hoppscotch-common/src/platform/analytics.ts
export type HoppRequestEvent = | { platform: "rest" strategy: string workspaceType: "personal" | "team" } | { platform: "graphql-query" | "graphql-schema" strategy: string } | { platform: "wss" | "sse" | "socketio" | "mqtt" } export type HoppSpotlightSessionEventData = { a...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/settings.ts
packages/hoppscotch-common/src/platform/settings.ts
export type SettingsPlatformDef = { initSettingsSync: () => void }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/instance.ts
packages/hoppscotch-common/src/platform/instance.ts
import { Observable } from "rxjs" import { Component } from "vue" import { type LoadOptions } from "@hoppscotch/plugin-appload" export type InstanceKind = "on-prem" | "cloud" | "cloud-org" | "vendored" export type Instance = { kind: InstanceKind serverUrl: string displayName: string version: string lastUse...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/additionalLinks.ts
packages/hoppscotch-common/src/platform/additionalLinks.ts
import { Container, ServiceClassInstance } from "dioc" import { AdditionalLinksService } from "~/services/additionalLinks.service" export type AdditionalLinksPlatformDef = Array< ServiceClassInstance<unknown> & { new (c: Container): AdditionalLinksService } >
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/io.ts
packages/hoppscotch-common/src/platform/io.ts
/** * Defines how to save a file to the user's filesystem. */ export type SaveFileWithDialogOptions = { /** * The data to be saved */ data: string | ArrayBuffer /** * The suggested filename for the file. This name will be shown in the * save dialog by default when a save is initiated. */ sugge...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/index.ts
packages/hoppscotch-common/src/platform/index.ts
import { ServiceClassInstance } from "dioc" import { Ref } from "vue" import { HoppModule } from "~/modules" import { AnalyticsPlatformDef } from "./analytics" import { AuthPlatformDef } from "./auth" import { CollectionsPlatformDef } from "./collections" import { EnvironmentsPlatformDef } from "./environments" import ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/kernel-interceptors.ts
packages/hoppscotch-common/src/platform/kernel-interceptors.ts
import { Container, ServiceClassInstance } from "dioc" import { KernelInterceptor } from "~/services/kernel-interceptor.service" export type KernelInterceptorDef = | { type: "standalone" interceptor: KernelInterceptor } | { type: "service" service: ServiceClassInstance<unknown> & { ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/backend.ts
packages/hoppscotch-common/src/platform/backend.ts
import { HoppRESTRequest } from "@hoppscotch/data" import * as TE from "fp-ts/TaskEither" import * as E from "fp-ts/lib/Either" import { GQLError } from "~/helpers/backend/GQLClient" import { CreateShortcodeMutation, GetInviteDetailsQuery, GetInviteDetailsQueryVariables, GetMyTeamsQuery, GetUserShortcodesQue...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/tab.ts
packages/hoppscotch-common/src/platform/tab.ts
import { PersistableTabState } from "~/services/tab" import { HoppUser } from "./auth" import { HoppTabDocument } from "~/helpers/rest/document" export type TabStatePlatformDef = { loadTabStateFromSync: () => Promise<PersistableTabState<HoppTabDocument> | null> writeCurrentTabState: ( user: HoppUser, persi...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/experiments.ts
packages/hoppscotch-common/src/platform/experiments.ts
import * as E from "fp-ts/Either" export type ExperimentsPlatformDef = { aiExperiments?: { enableAIExperiments: boolean generateRequestName?: ( requestInfo: string, namingStyle: string ) => Promise< E.Either< string, { request_name: string trace_id: s...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-io.ts
packages/hoppscotch-common/src/platform/std/kernel-io.ts
import { KernelIO } from "~/platform/kernel-io" import { Io } from "~/kernel/io" export const kernelIO: KernelIO = { saveFileWithDialog(opts) { return Io.saveFileWithDialog(opts) }, openExternalLink(opts) { return Io.openExternalLink(opts) }, }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/io.ts
packages/hoppscotch-common/src/platform/std/io.ts
import { IOPlatformDef } from "../io" import { pipe } from "fp-ts/function" import * as S from "fp-ts/string" import * as RNEA from "fp-ts/ReadonlyNonEmptyArray" /** * Implementation for how to handle IO operations in the browser. */ export const browserIODef: IOPlatformDef = { saveFileWithDialog(opts) { const...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/backend.ts
packages/hoppscotch-common/src/platform/std/backend.ts
import { useGQLQuery } from "~/composables/graphql" import { TeamName } from "~/helpers/backend/types/TeamName" import { BackendPlatformDef } from "~/platform/backend" import { HoppRESTRequest } from "@hoppscotch/data" import { runGQLQuery, runMutation } from "~/helpers/backend/GQLClient" import { Email } from "~/hel...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/store.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/store.ts
import { Service } from "dioc" import { Store } from "~/kernel/store" import * as E from "fp-ts/Either" import * as O from "fp-ts/Option" import { ref } from "vue" const STORE_NAMESPACE = "interceptors.extension.v1" const SETTINGS_KEY = "settings" export type ExtensionStatus = "available" | "unknown-origin" | "waitin...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts
import { computed, markRaw, ref } from "vue" import { Service } from "dioc" import type { RelayRequest, RelayResponse } from "@hoppscotch/kernel" import { body } from "@hoppscotch/kernel" import SettingsExtension from "~/components/settings/Extension.vue" import SettingsExtensionSubtitle from "~/components/settings/Ext...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/store.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/store.ts
import { Service } from "dioc" import type { RelayRequest } from "@hoppscotch/kernel" import { Store } from "~/kernel/store" import * as E from "fp-ts/Either" import { InputDomainSetting, convertDomainSetting, } from "~/helpers/functional/domain-settings" const STORE_NAMESPACE = "interceptors.native.v1" const STO...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts
import { markRaw } from "vue" import * as E from "fp-ts/Either" import { pipe } from "fp-ts/function" import { getI18n } from "~/modules/i18n" import { postProcessRelayRequest, preProcessRelayRequest, } from "~/helpers/functional/process-request" import { relayRequestToNativeAdapter, type RelayCapabilities, t...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/store.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/store.ts
import { Service } from "dioc" import { Store } from "~/kernel/store" import { settingsStore } from "~/newstore/settings" import * as E from "fp-ts/Either" const STORE_NAMESPACE = "interceptors.proxy.v1" const SETTINGS_KEY = "settings" type ProxySettings = { version: "v1" proxyUrl: string accessToken: string } ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/index.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/proxy/index.ts
import { markRaw } from "vue" import type { RelayRequest, ContentType, Method, Version, } from "@hoppscotch/kernel" import { MediaType } from "@hoppscotch/kernel" import { Service } from "dioc" import { Relay } from "~/kernel/relay" import SettingsProxy from "~/components/settings/Proxy.vue" import { KernelInte...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/store.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/store.ts
import { Service } from "dioc" import { Store } from "~/kernel/store" import * as E from "fp-ts/Either" const STORE_NAMESPACE = "interceptors.browser.v1" const SETTINGS_KEY = "settings" type BrowserSettings = { version: "v1" } interface StoredData { version: string settings: BrowserSettings lastUpdated: stri...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/index.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/index.ts
import { pipe } from "fp-ts/function" import * as E from "fp-ts/Either" import { Service } from "dioc" import type { RelayRequest } from "@hoppscotch/kernel" import { Relay } from "~/kernel/relay" import type { KernelInterceptor, ExecutionResult, KernelInterceptorError, } from "~/services/kernel-interceptor.ser...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/store.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/store.ts
import { Service } from "dioc" import { ref } from "vue" import * as E from "fp-ts/Either" import axios from "axios" import { Store } from "~/kernel/store" import type { PluginRequest, PluginResponse } from "@hoppscotch/kernel" import { x25519 } from "@noble/curves/ed25519.js" import { base16 } from "@scure/base" impor...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts
packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts
import { Service } from "dioc" import { markRaw } from "vue" import { body, relayRequestToNativeAdapter, RelayRequest, RelayResponse, RelayCapabilities, } from "@hoppscotch/kernel" import * as E from "fp-ts/Either" import { pipe } from "fp-ts/function" import axios, { CancelTokenSource } from "axios" import {...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/inspections/extension.inspector.ts
packages/hoppscotch-common/src/platform/std/inspections/extension.inspector.ts
import { Service } from "dioc" import { InspectionService, Inspector, InspectorResult, } from "~/services/inspection" import { getI18n } from "~/modules/i18n" import { HoppRESTRequest } from "@hoppscotch/data" import { computed, markRaw, Ref } from "vue" import IconAlertTriangle from "~icons/lucide/alert-triangle...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/inspections/__tests__/extension.inspector.spec.ts
packages/hoppscotch-common/src/platform/std/inspections/__tests__/extension.inspector.spec.ts
import { TestContainer } from "dioc/testing" import { describe, expect, it, vi } from "vitest" import { ExtensionInspectorService } from "../extension.inspector" import { InspectionService } from "~/services/inspection" import { getDefaultRESTRequest } from "~/helpers/rest/default" import { ref } from "vue" import { Ex...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/interceptors/extension.ts
packages/hoppscotch-common/src/platform/std/interceptors/extension.ts
import * as E from "fp-ts/Either" import { AxiosRequestConfig } from "axios" import { Service } from "dioc" import { getI18n } from "~/modules/i18n" import { Interceptor, InterceptorError, RequestRunResult, } from "~/services/interceptor.service" import { computed, readonly, ref } from "vue" import { browserIsChr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/interceptors/proxy.ts
packages/hoppscotch-common/src/platform/std/interceptors/proxy.ts
import { Interceptor, RequestRunResult } from "~/services/interceptor.service" import axios, { AxiosRequestConfig, CancelToken } from "axios" import * as E from "fp-ts/Either" import { preProcessRequest } from "./helpers" import { v4 } from "uuid" import { settingsStore } from "~/newstore/settings" import { decodeB64St...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/interceptors/helpers.ts
packages/hoppscotch-common/src/platform/std/interceptors/helpers.ts
import { AxiosRequestConfig } from "axios" import { cloneDeep } from "lodash-es" import { useSetting } from "~/composables/settings" // Helper function to check if a string is already encoded const isEncoded = (value: string) => { try { return value !== decodeURIComponent(value) } catch (e) { return false ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/interceptors/agent/index.ts
packages/hoppscotch-common/src/platform/std/interceptors/agent/index.ts
import { CookieJarService } from "~/services/cookie-jar.service" import { Interceptor, InterceptorError, InterceptorService, RequestRunResult, } from "~/services/interceptor.service" import { Service } from "dioc" import * as E from "fp-ts/Either" import { ref, watch } from "vue" import { z } from "zod" import ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/interceptors/agent/persisted-data.ts
packages/hoppscotch-common/src/platform/std/interceptors/agent/persisted-data.ts
import { z } from "zod" import { defineVersion, createVersionedEntity, InferredEntity } from "verzod" const Uint8 = z.number().int().gte(0).lte(255) export const StoredCACert = z.object({ filename: z.string().min(1), enabled: z.boolean(), certificate: z.array(Uint8), }) const caCertStore_v1 = defineVersion({ ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts
packages/hoppscotch-common/src/platform/std/ui/supportOptionsItem.ts
import { invokeAction } from "~/helpers/actions" import { HoppSupportOptionsMenuItem } from "~/platform/ui" import IconBook from "~icons/lucide/book" import IconGift from "~icons/lucide/gift" import IconZap from "~icons/lucide/zap" import IconGitHub from "~icons/lucide/github" import IconTwitter from "~icons/brands/twi...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-common/src/platform/std/ui/footerItem.ts
packages/hoppscotch-common/src/platform/std/ui/footerItem.ts
import { HoppFooterMenuItem } from "../../ui" import IconGift from "~icons/lucide/gift" import IconActivity from "~icons/lucide/activity" export const whatsNew: HoppFooterMenuItem = { id: "whats-new", text: (t) => t("app.whats_new"), icon: IconGift, action: { type: "link", href: "https://docs.hoppscotc...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/meta.ts
packages/hoppscotch-selfhost-web/meta.ts
import { IHTMLTag } from "vite-plugin-html-config" export const APP_INFO = { name: "Hoppscotch", shortDescription: "Open source API development ecosystem", description: "Helps you create requests faster, saving precious time on development.", keywords: "hoppscotch, hopp scotch, hoppscotch online, hopps...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/tailwind.config.ts
packages/hoppscotch-selfhost-web/tailwind.config.ts
import { Config } from "tailwindcss" import preset from "@hoppscotch/ui/ui-preset" export default { content: ["../hoppscotch-common/src/**/*.{vue,html}"], presets: [preset], theme: { extend: { inset: { upperPrimaryStickyFold: "var(--upper-primary-sticky-fold)", upperSecondaryStickyFold:...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/vite.config.ts
packages/hoppscotch-selfhost-web/vite.config.ts
import { defineConfig, loadEnv, normalizePath } from "vite" import { APP_INFO, META_TAGS } from "./meta" import { viteStaticCopy as StaticCopy } from "vite-plugin-static-copy" import generateSitemap from "vite-plugin-pages-sitemap" import HtmlConfig from "vite-plugin-html-config" import Vue from "@vitejs/plugin-vue" im...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/main.ts
packages/hoppscotch-selfhost-web/src/main.ts
import { nextTick, ref, watch } from "vue" import { emit, listen } from "@tauri-apps/api/event" import { createHoppApp } from "@hoppscotch/common" import { useSettingStatic } from "@hoppscotch/common/composables/settings" import { getKernelMode } from "@hoppscotch/kernel" import { def as stdBackendDef } from "@hoppsco...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-selfhost-web/src/vite-env.d.ts
packages/hoppscotch-selfhost-web/src/vite-env.d.ts
/// <reference types="vite/client" /> declare module "*.vue" { import type { DefineComponent } from "vue" const component: DefineComponent<{}, {}, any> export default component }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false