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 |
|---|---|---|---|---|---|---|---|---|
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/src/openapi/openapi-to-bruno.js | packages/bruno-converters/src/openapi/openapi-to-bruno.js | import each from 'lodash/each';
import get from 'lodash/get';
import jsyaml from 'js-yaml';
import { validateSchema, transformItemsInCollection, hydrateSeqInCollection, uuid } from '../common';
// Content type patterns for matching MIME type variants
// These patterns handle structured types with many variants (e.g., ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | true |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman-with-examples.spec.js | packages/bruno-converters/tests/postman-with-examples.spec.js | import postmanToBruno from '../src/postman/postman-to-bruno.js';
describe('Postman to Bruno Converter with Examples', () => {
const postmanCollectionWithExamples = {
info: {
_postman_id: 'd7b47cc4-c3c5-4c9d-99d4-04b6025c9000',
name: 'collection with examples',
schema: 'https://schema.getpostman... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/bruno/bruno-to-postman-with-tests.spec.js | packages/bruno-converters/tests/bruno/bruno-to-postman-with-tests.spec.js | import { brunoToPostman } from '../../src/postman/bruno-to-postman';
describe('Bruno to Postman Converter with Tests and Scripts', () => {
const brunoCollection = {
name: 'Script and Tests Collection',
version: '1',
items: [
{
name: 'Request With Scripts and Tests',
type: 'http-requ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/wsdl/wsdl-to-bruno.spec.js | packages/bruno-converters/tests/wsdl/wsdl-to-bruno.spec.js | import { describe, it, expect } from '@jest/globals';
import wsdlToBruno from '../../src/wsdl/wsdl-to-bruno.js';
describe('wsdl-to-bruno', () => {
it('should throw error for non-string input', async () => {
await expect(wsdlToBruno({})).rejects.toThrow('WSDL content must be a string');
});
it('should throw ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/insomnia/insomnia-collection.spec.js | packages/bruno-converters/tests/insomnia/insomnia-collection.spec.js | import { describe, it, expect } from '@jest/globals';
import insomniaToBruno from '../../src/insomnia/insomnia-to-bruno';
describe('insomnia-collection', () => {
it('should correctly import a valid Insomnia collection file', async () => {
const brunoCollection = insomniaToBruno(insomniaCollection);
expect(b... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/insomnia/insomnia-collection-v5.spec.js | packages/bruno-converters/tests/insomnia/insomnia-collection-v5.spec.js | import { describe, it, expect } from '@jest/globals';
import insomniaToBruno from '../../src/insomnia/insomnia-to-bruno';
describe('insomnia-collection', () => {
it('should correctly import a valid Insomnia v5 collection file', async () => {
const brunoCollection = insomniaToBruno(insomniaCollection);
expec... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/insomnia/env-utils.spec.js | packages/bruno-converters/tests/insomnia/env-utils.spec.js | import { describe, it, expect } from '@jest/globals';
import { buildV5Environments, buildV4Environments } from '../../src/insomnia/env-utils';
const getVar = (env, name) => {
return env.variables.find((v) => v.name === name);
};
describe('env-utils', () => {
describe('buildV5Environments', () => {
it('creates... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/utils/getMemberExpressionString.test.js | packages/bruno-converters/tests/utils/getMemberExpressionString.test.js | import { describe, it, expect } from '@jest/globals';
import { getMemberExpressionString } from '../../src/utils/jscode-shift-translator';
const j = require('jscodeshift');
describe('getMemberExpressionString', () => {
it('should correctly convert simple member expressions to strings', () => {
// Create a simple... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/utils/flatten.spec.js | packages/bruno-converters/tests/utils/flatten.spec.js | import { describe, it, expect } from '@jest/globals';
import { flattenObject } from '../../src/utils/flatten';
describe('flattenObject', () => {
it('returns empty object for empty input object', () => {
expect(flattenObject({})).toEqual({});
});
it('flattens a simple nested object', () => {
const input ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/bruno-to-postman-with-examples.spec.js | packages/bruno-converters/tests/postman/bruno-to-postman-with-examples.spec.js | import { brunoToPostman } from '../../src/postman/bruno-to-postman';
describe('Bruno to Postman Converter with Examples', () => {
it('should export Bruno collection with examples to Postman format', () => {
const brunoCollection = {
name: 'Test Collection with Examples',
items: [
{
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/bruno-to-postman.spec.js | packages/bruno-converters/tests/postman/bruno-to-postman.spec.js | import { sanitizeUrl, transformUrl, brunoToPostman } from '../../src/postman/bruno-to-postman';
describe('transformUrl', () => {
it('should handle basic URL with path variables', () => {
const url = 'https://example.com/{{username}}/api/resource/:id';
const params = [
{ name: 'id', value: '123', type: ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-env-to-bruno-env.spec.js | packages/bruno-converters/tests/postman/postman-env-to-bruno-env.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBrunoEnvironment from '../../src/postman/postman-env-to-bruno-env';
describe('postmanToBrunoEnvironment Function', () => {
it('should correctly import a valid Postman environment file', async () => {
const postmanEnvironment = {
id: 'som... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/postman-cookie-conversions.spec.js | packages/bruno-converters/tests/postman/postman-translations/postman-cookie-conversions.spec.js | const { default: postmanTranslation } = require('../../../src/postman/postman-translations');
describe('postmanTranslations - cookie API conversions', () => {
test('should convert pm.cookies.jar().get to bru.cookies.jar().getCookie', () => {
const inputScript = `pm.cookies.jar().get('https://example.com', 'sessi... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/postman-edge-cases.spec.js | packages/bruno-converters/tests/postman/postman-translations/postman-edge-cases.spec.js | const { default: postmanTranslation } = require('../../../src/postman/postman-translations');
describe('postmanTranslations - edge cases', () => {
test('should handle nested commands and edge cases', () => {
const inputScript = `
const sampleObjects = [
{
key: pm.environment.get('key'),
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/postman-test-commands.spec.js | packages/bruno-converters/tests/postman/postman-translations/postman-test-commands.spec.js | const { default: postmanTranslation } = require('../../../src/postman/postman-translations');
describe('postmanTranslations - test commands', () => {
test('should handle test commands', () => {
const inputScript = `
pm.test('Status code is 200', () => {
pm.response.to.have.status(200);
});
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/postman-variables.spec.js | packages/bruno-converters/tests/postman/postman-translations/postman-variables.spec.js | const { default: postmanTranslation } = require('../../../src/postman/postman-translations');
describe('postmanTranslations - variables commands', () => {
test('should translate variable commands correctly', () => {
const inputScript = `
pm.environment.get('key');
pm.environment.set('key', 'value');
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/postman-comments.spec.js | packages/bruno-converters/tests/postman/postman-translations/postman-comments.spec.js | const { default: postmanTranslation } = require('../../../src/postman/postman-translations');
describe('postmanTranslations - comment handling', () => {
test('should not translate non-pm commands', () => {
const inputScript = `
console.log('This script does not contain pm commands.');
const data = pm... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/variables.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/variables.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Variables Translation', () => {
// Regular variables tests
it('should translate pm.variables.get', () => {
const code = 'pm.variables.get("test");';
const translatedCode = translateCode(code);
expect(translatedCode).t... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/environment.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/environment.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Environment Variable Translation', () => {
it('should translate pm.environment.get', () => {
const code = 'pm.environment.get("test");';
const translatedCode = translateCode(code);
expect(translatedCode).toBe('bru.getEnv... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/multiline-syntax.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/multiline-syntax.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Multiline Syntax Handling', () => {
it('should handle basic multiline variable syntax with indentation', () => {
const code = `
const userId = pm.variables
.get("userId");
pm.variables
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/legacy-global-apis.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/legacy-global-apis.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator.js';
describe('Legacy Postman API Translation', () => {
describe('handleLegacyGlobalAPIs - No Conflicts', () => {
test('should translate responseBody when no user variables exist', () => {
const input = `
const data = JSON.par... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/variable-chaining.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/variable-chaining.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Variable Chaining Resolution', () => {
test('should resolve a simple variable chain (variable pointing to another variable)', () => {
const code = `
const original = pm.response;
const alias = original;
const d... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/scoped-variables.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/scoped-variables.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Scoped Variables', () => {
it.skip('should handle scoped variables correctly', () => {
const code = `
const response = pm.response;
const status = response.status;
function test() {
const response = delta.re... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/request.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/request.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Request Translation', () => {
it('should translate pm.request.url', () => {
const code = 'const requestUrl = pm.request.url;';
const translatedCode = translateCode(code);
expect(translatedCode).toBe('const requestUrl = r... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/exec-flow.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/exec-flow.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Execution Flow Translation', () => {
// Request flow control
it('should translate pm.setNextRequest', () => {
const code = 'pm.setNextRequest("Get User Details");';
const translatedCode = translateCode(code);
expect(tr... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/legacy-tests-syntax.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/legacy-tests-syntax.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Legacy Tests[] Syntax Translation', () => {
it('should handle tests[] commands', () => {
const code = `
tests["Status code is 200"] = pm.response.code === 200;`;
const translatedCode = translateCode(code);
expect... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/combined.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/combined.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Combined API Features Translation', () => {
// Basic translation test
it('should translate code', () => {
const code = 'console.log("Hello, world!");';
const translatedCode = translateCode(code);
expect(translatedCode)... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/postman-references.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/postman-references.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Postman to PM References Conversion', () => {
// Basic conversions
it('should convert basic postman references to pm', () => {
const code = 'postman.setEnvironmentVariable("key", "value");';
const translatedCode = translat... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/testing-framework.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/testing-framework.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Testing Framework Translation', () => {
// Basic testing framework translations
it('should translate pm.test', () => {
const code = 'pm.test("Status code is 200", function() { pm.response.to.have.status(200); });';
const t... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/response.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/response.test.js | import translateCode from '../../../../src/utils/jscode-shift-translator';
describe('Response Translation', () => {
// Basic response property tests
it('should translate pm.response.json', () => {
const code = 'const jsonData = pm.response.json();';
const translatedCode = translateCode(code);
expect(tr... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/transformers/send-request.test.js | packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/transformers/send-request.test.js | import translateCode from '../../../../../src/utils/jscode-shift-translator';
describe('Send Request Translation', () => {
describe('Raw Body Mode', () => {
it('should transform raw JSON string body', () => {
const code = `
pm.sendRequest({
url: 'https://echo.usebruno.com',
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/folder-auth.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/folder-auth.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBruno from '../../../src/postman/postman-to-bruno';
describe('Folder Authentication', () => {
it('should handle "Inherit Auth" at folder level (auth property absent)', async () => {
const postmanCollection = {
info: {
name: 'Fold... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/postman-to-bruno.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/postman-to-bruno.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBruno from '../../../src/postman/postman-to-bruno';
import { invalidVariableCharacterRegex } from '../../../src/constants';
describe('postman-collection', () => {
it('should correctly import a valid Postman collection file', async () => {
cons... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/collection-auth.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/collection-auth.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBruno from '../../../src/postman/postman-to-bruno';
describe('Collection Authentication', () => {
it('should handle no auth at collection level (when auth property is absent)', async () => {
const postmanCollection = {
info: {
na... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/request-auth.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/request-auth.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBruno from '../../../src/postman/postman-to-bruno';
describe('Request Authentication', () => {
it('should handle basic auth at request level', async () => {
const postmanCollection = {
info: {
name: 'Request Auth Collection',
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/transform-description.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/transform-description.spec.js | import { describe, it, expect } from '@jest/globals';
import postmanToBruno from '../../../src/postman/postman-to-bruno';
describe('transformDescription function', () => {
it('should handle null and undefined descriptions', async () => {
const collection = {
info: {
name: 'Test Collection',
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/process-auth.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/process-auth.spec.js | const { processAuth } = require('../../../src/postman/postman-to-bruno');
describe('processAuth', () => {
let requestObject;
beforeEach(() => {
requestObject = {
auth: {
mode: 'none',
basic: null,
bearer: null,
awsv4: null,
apikey: null,
oauth2: null,
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/postman-translations/postman-request.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/postman-translations/postman-request.spec.js | const { default: postmanTranslation } = require('../../../../src/postman/postman-translations');
describe('postmanTranslations - request commands', () => {
test('should handle request commands', () => {
const inputScript = `
const requestUrl = pm.request.url;
const requestMethod = pm.request.method;
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/postman/postman-to-bruno/postman-translations/postman-response.spec.js | packages/bruno-converters/tests/postman/postman-to-bruno/postman-translations/postman-response.spec.js | const { default: postmanTranslation } = require('../../../../src/postman/postman-translations');
describe('postmanTranslations - response commands', () => {
test('should handle response commands', () => {
const inputScript = `
const responseTime = pm.response.responseTime;
const responseCode = pm.res... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-with-examples.spec.js | packages/bruno-converters/tests/openapi/openapi-with-examples.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../src/openapi/openapi-to-bruno';
import * as fs from 'fs';
import * as path from 'path';
describe('OpenAPI with Examples', () => {
const openApiWithExamples = fs.readFileSync(path.resolve(__dirname, '../../../../tests/import/openap... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-import-grouping.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-import-grouping.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
const openApiSpec = {
openapi: '3.0.0',
info: { title: 'Parameter API', version: '1.0.0' },
servers: [{ url: 'https://api.example.com' }],
paths: {
'/{id}': {
get: {
summa... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-auth.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-auth.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
describe('openapi-to-bruno auth enhancements', () => {
it('maps HTTP Digest scheme to digest auth on the request', () => {
const spec = `
openapi: 3.0.3
info:
title: Digest API
version: '... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/path-based-grouping-duplicate-names.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/path-based-grouping-duplicate-names.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
describe('OpenAPI Path-Based Grouping - Duplicate Names', () => {
it('should not add suffixes to duplicate operation names in different folders', () => {
const openApiSpec = {
openapi: ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-circular-references.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-circular-references.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
describe('openapi-circular-references', () => {
it('should handle simple circular references in schema correctly', async () => {
const brunoCollection = openApiToBruno(circularRefsData);
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-to-bruno.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-to-bruno.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
describe('openapi-collection', () => {
it('should correctly import a valid OpenAPI file', async () => {
const brunoCollection = openApiToBruno(openApiCollectionString);
expect(brunoColle... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-body.spec.js | packages/bruno-converters/tests/openapi/openapi-to-bruno/openapi-body.spec.js | import { describe, it, expect } from '@jest/globals';
import openApiToBruno from '../../../src/openapi/openapi-to-bruno';
describe('openapi requestBody with $ref', () => {
it('should import body fields when requestBody uses $ref to components/requestBodies with inline schema (no explicit type: object)', () => {
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/jest.setup.js | packages/bruno-app/jest.setup.js | jest.mock('nanoid', () => {
return {
nanoid: () => {}
};
});
jest.mock('strip-json-comments', () => {
return {
stripJsonComments: (str) => str
};
});
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/tailwind.config.js | packages/bruno-app/tailwind.config.js | /** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
content: ['./src/**/*.{js,jsx}'],
prefix: '',
theme: {
extend: {}
},
plugins: []
};
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/postcss.config.js | packages/bruno-app/postcss.config.js | module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/babel.config.js | packages/bruno-app/babel.config.js | module.exports = {
presets: [
'@babel/preset-env',
['@babel/preset-react', {
runtime: 'automatic'
}]
],
plugins: ['babel-plugin-styled-components']
};
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/jest.config.js | packages/bruno-app/jest.config.js | module.exports = {
rootDir: '.',
transform: {
'^.+\\.[jt]sx?$': 'babel-jest'
},
transformIgnorePatterns: [
'/node_modules/(?!strip-json-comments|nanoid|xml-formatter)/'
],
moduleNameMapper: {
'^assets/(.*)$': '<rootDir>/src/assets/$1',
'^components/(.*)$': '<rootDir>/src/components/$1',
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/globalStyles.js | packages/bruno-app/src/globalStyles.js | import { createGlobalStyle } from 'styled-components';
import { rgba } from 'polished';
const GlobalStyle = createGlobalStyle`
body {
font-size: ${(props) => props.theme.font.size.base};
}
.CodeMirror-gutters {
background-color: ${(props) => props.theme.codemirror.gutter.bg} !important;
border-righ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/index.js | packages/bruno-app/src/index.js | import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './pages/index';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
const rootElement = document.getElementById('root');
if (rootElement) {
const root = ReactDOM.createRoot(rootElement);... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useOnClickOutside/index.js | packages/bruno-app/src/hooks/useOnClickOutside/index.js | // See https://usehooks.com/useOnClickOutside/
import { useEffect } from 'react';
const useOnClickOutside = (ref, handler) => {
useEffect(
() => {
const listener = (event) => {
// Do nothing if clicking ref's element or descendant elements
if (!ref.current || ref.current.contains(event.targ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useProtoFileManagement/index.js | packages/bruno-app/src/hooks/useProtoFileManagement/index.js | import { useState, useRef, useMemo } from 'react';
import { useDispatch } from 'react-redux';
import { browseFiles, updateBrunoConfig } from 'providers/ReduxStore/slices/collections/actions';
import { updateCollectionProtobuf } from 'providers/ReduxStore/slices/collections';
import { getRelativePath, getAbsoluteFilePat... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useDetectSensitiveField/index.js | packages/bruno-app/src/hooks/useDetectSensitiveField/index.js | import { useMemo } from 'react';
const VARIABLE_NAME_REGEX = /\{\{([^}]+)\}\}/g;
const ENV_VAR_REFERENCE_REGEX = /^\s*\{\{.*\}\}\s*$/;
export const useDetectSensitiveField = (collection) => {
const envVars = useMemo(() => {
if (!collection) {
return [];
}
const activeEnv = collection?.environments... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useReflectionManagement/index.js | packages/bruno-app/src/hooks/useReflectionManagement/index.js | import { useState } from 'react';
import { useDispatch } from 'react-redux';
import { loadGrpcMethodsFromReflection } from 'providers/ReduxStore/slices/collections/actions';
import useLocalStorage from 'hooks/useLocalStorage/index';
/**
* Custom hook for managing reflection data and server discovery
* @param {Object... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useFocusTrap/index.js | packages/bruno-app/src/hooks/useFocusTrap/index.js | import { useEffect, useRef } from 'react';
const useFocusTrap = (modalRef) => {
// refer to this implementation for modal focus: https://stackoverflow.com/a/38865836
const focusableSelector = 'a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useLocalStorage/index.js | packages/bruno-app/src/hooks/useLocalStorage/index.js | import { useState, useEffect } from 'react';
export default function useLocalStorage(key, defaultValue) {
const [value, setValue] = useState(() => {
try {
const saved = localStorage.getItem(key);
if (saved !== null) {
return JSON.parse(saved);
}
return defaultValue;
} catch {
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useDebounce/index.js | packages/bruno-app/src/hooks/useDebounce/index.js | import { useState, useEffect } from 'react';
function useDebounce(value, delay) {
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
const handler = setTimeout(() => {
setDebouncedValue(value);
}, delay);
return () => {
clearTimeout(handler);
};
}, [value... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/usePrevious/index.js | packages/bruno-app/src/hooks/usePrevious/index.js | import { useRef, useEffect } from 'react';
function usePrevious(value) {
const ref = useRef();
useEffect(() => {
ref.current = value; // assign the value of ref to the argument
}, [value]); // this code will run when the value of 'value' changes
return ref.current; // in the end, return the current ref v... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/hooks/useTabPaneBoundaries/index.js | packages/bruno-app/src/hooks/useTabPaneBoundaries/index.js | import find from 'lodash/find';
import { updateRequestPaneTabHeight, updateRequestPaneTabWidth } from 'providers/ReduxStore/slices/tabs';
import { useDispatch, useSelector } from 'react-redux';
const MIN_TOP_PANE_HEIGHT = 380;
export function useTabPaneBoundaries(activeTabUid) {
const DEFAULT_PANE_WIDTH_DIVISOR = 2... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/pages/Main.js | packages/bruno-app/src/pages/Main.js | import { useState, useEffect } from 'react';
import { Provider } from 'react-redux';
import { AppProvider } from 'providers/App';
import { ToastProvider } from 'providers/Toaster';
import { HotkeysProvider } from 'providers/Hotkeys';
import { PromptVariablesProvider } from 'providers/PromptVariables';
import ReduxStor... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/pages/index.js | packages/bruno-app/src/pages/index.js | import Bruno from './Bruno';
import GlobalStyle from '../globalStyles';
import '../i18n';
import Main from './Main';
export default function App() {
return (
<div>
<main>
<Main>
<GlobalStyle />
<Bruno />
</Main>
</main>
</div>
);
}
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/pages/ErrorBoundary/index.js | packages/bruno-app/src/pages/ErrorBoundary/index.js | import React from 'react';
import Bruno from 'components/Bruno/index';
class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
componentDidMount() {
// Add a global error event listener to capture client-side errors
window.onerror = ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/pages/Bruno/index.js | packages/bruno-app/src/pages/Bruno/index.js | import React, { useState, useRef, useEffect } from 'react';
import classnames from 'classnames';
import WorkspaceHome from 'components/WorkspaceHome';
import ManageWorkspace from 'components/ManageWorkspace';
import RequestTabs from 'components/RequestTabs';
import RequestTabPanel from 'components/RequestTabPanel';
imp... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/pages/Bruno/StyledWrapper.js | packages/bruno-app/src/pages/Bruno/StyledWrapper.js | import styled from 'styled-components';
const Wrapper = styled.div`
display: flex;
width: 100%;
height: 100%;
flex: 1;
border-top: 1px solid ${(props) => props.theme.sidebar.collection.item.hoverBg};
&.is-dragging {
cursor: col-resize !important;
}
section.main {
display: flex;
section.r... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/BrunoSupport/index.js | packages/bruno-app/src/components/BrunoSupport/index.js | import React from 'react';
import Modal from 'components/Modal/index';
import { IconSpeakerphone, IconBrandTwitter, IconBrandGithub, IconBrandDiscord, IconBook } from '@tabler/icons';
import StyledWrapper from './StyledWrapper';
const BrunoSupport = ({ onClose }) => {
return (
<StyledWrapper>
<Modal size="... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js | packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js | import styled from 'styled-components';
const StyledWrapper = styled.div`
color: ${(props) => props.theme.text};
.collection-options {
svg {
position: relative;
top: -1px;
}
.label {
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}
`;
export def... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/ErrorCapture/index.js | packages/bruno-app/src/components/ErrorCapture/index.js | import React, { Component, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { addDebugError } from 'providers/ReduxStore/slices/logs';
class ErrorBoundary extends Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
static getDerivedStateFromError... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/ReorderTable/index.js | packages/bruno-app/src/components/ReorderTable/index.js | import React, { useEffect, useRef, useState, useMemo } from 'react';
import { IconGripVertical, IconMinusVertical } from '@tabler/icons';
/**
* ReorderTable Component
*
* A table component that allows rows to be reordered via drag-and-drop.
*
* @param {Object} props - The component props
* @param {React.ReactNod... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/SecuritySettings/JsSandboxMode/index.js | packages/bruno-app/src/components/SecuritySettings/JsSandboxMode/index.js | import { useEffect, useRef, useState } from 'react';
import { useDispatch } from 'react-redux';
import toast from 'react-hot-toast';
import { IconShieldCheck, IconCode } from '@tabler/icons';
import Dropdown from 'components/Dropdown';
import { saveCollectionSecurityConfig } from 'providers/ReduxStore/slices/collection... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/SecuritySettings/JsSandboxMode/StyledWrapper.js | packages/bruno-app/src/components/SecuritySettings/JsSandboxMode/StyledWrapper.js | import styled from 'styled-components';
import { rgba } from 'polished';
const StyledWrapper = styled.div`
.sandbox-icon {
display: flex;
align-items: center;
justify-content: center;
width: 1.375rem;
height: 1.375rem;
border-radius: ${(props) => props.theme.border.radius.base};
cursor: p... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/RadioButton/index.js | packages/bruno-app/src/components/RadioButton/index.js | import React from 'react';
import StyledWrapper from './StyledWrapper';
const RadioButton = ({
checked,
disabled = false,
onChange,
name,
value,
id,
className = '',
dataTestId = 'radio-button'
}) => {
const handleChange = (e) => {
if (!disabled && onChange) {
onChange(e);
}
};
retu... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/RadioButton/StyledWrapper.js | packages/bruno-app/src/components/RadioButton/StyledWrapper.js | import styled from 'styled-components';
const StyledWrapper = styled.div`
.radio-container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.radio-input {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 16px;
heigh... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/SettingsInput/index.js | packages/bruno-app/src/components/SettingsInput/index.js | import React from 'react';
import { useTheme } from 'providers/Theme';
const SettingsInput = ({
id,
label,
value,
onChange,
className = '',
description = '',
onKeyDown
}) => {
const { theme } = useTheme();
return (
<div className="flex items-center justify-between">
<div className="flex fl... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Modal/index.js | packages/bruno-app/src/components/Modal/index.js | import React, { useEffect, useState, useRef } from 'react';
import StyledWrapper from './StyledWrapper';
import useFocusTrap from 'hooks/useFocusTrap';
import Button from 'ui/Button';
const ESC_KEY_CODE = 27;
const ENTER_KEY_CODE = 13;
const ModalHeader = ({ title, handleCancel, customHeader, hideClose }) => (
<div... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Modal/StyledWrapper.js | packages/bruno-app/src/components/Modal/StyledWrapper.js | import styled from 'styled-components';
import { rgba } from 'polished';
const Wrapper = styled.div`
color: ${(props) => props.theme.text};
&.modal--animate-out {
animation: fade-out 0.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
.bruno-modal-card {
animation: fade-and-slide-out-from-top 0.5s forwar... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/InheritableSettingsInput/index.js | packages/bruno-app/src/components/InheritableSettingsInput/index.js | import React from 'react';
import { IconChevronDown, IconX } from '@tabler/icons';
import { useTheme } from 'providers/Theme';
import Dropdown from 'components/Dropdown';
const InheritableSettingsInput = ({
id,
label,
value,
description,
onKeyDown,
isInherited,
onDropdownSelect,
onValueChange,
onCust... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/ExampleIcon/index.js | packages/bruno-app/src/components/Icons/ExampleIcon/index.js | import React from 'react';
const ExampleIcon = ({ color = 'currentColor', size = 16, ...props }) => {
return (
<svg width={size} height={size} viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<g clipPath="url(#clip0_486_1191)">
<path d="M2.66699 3.33329C2.66699 3.15648... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/Send/index.js | packages/bruno-app/src/components/Icons/Send/index.js | import React from 'react';
const SendIcon = ({ color, width }) => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={width} viewBox="0 0 48 48">
<path fill={color} d="M4.02 42l41.98-18-41.98-18-.02 14 30 4-30 4z" />
<path d="M0 0h48v48h-48z" fill="none" />
</svg>
);
};
ex... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/Grpc/index.js | packages/bruno-app/src/components/Icons/Grpc/index.js | import React from 'react';
// UNARY - Single request, single response (Blue)
export const IconGrpcUnary = ({ size = 18, strokeWidth = 1.5, className = '', color = '#3B82F6' }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
strokeLinecap... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/OpenAPILogo/index.js | packages/bruno-app/src/components/Icons/OpenAPILogo/index.js | const OpenApiLogo = () => {
return (
<svg width="28" height="28" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<path
style={{
fill: '#91d400',
fillOpacity: 1,
fillRule: 'nonzero',
stroke: 'none'
}}
d="M43.125 51.148H20.781l.012.325c... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconEdit/index.js | packages/bruno-app/src/components/Icons/IconEdit/index.js | import React from 'react';
const IconEdit = ({ color = '#F39D0E', size = 16, ...props }) => {
return (
<svg width={size} height={size} viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<g clipPath="url(#clip0_464_9527)">
<path d="M12.6665 13.3332H5.66654L2.85988 10.4665... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/Dot/index.js | packages/bruno-app/src/components/Icons/Dot/index.js | import React from 'react';
const DotIcon = ({ width }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={width}
height={width}
viewBox="0 0 24 24"
strokeWidth="1.5"
stroke="currentColor"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconCheckMark/index.js | packages/bruno-app/src/components/Icons/IconCheckMark/index.js | import React from 'react';
const IconCheckMark = ({ color = '#cccccc', size = 16, ...props }) => {
return (
<svg width={size} height={size} viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M3.3335 8.49996L6.66683 11.8333L13.3335 5.16663" stroke={color} strokeWidth="1.... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/OpenCollectionIcon/index.js | packages/bruno-app/src/components/Icons/OpenCollectionIcon/index.js | import React, { useId } from 'react';
import styled from 'styled-components';
const StyledSvg = styled.svg`
.icon-stroke {
stroke: ${(props) => props.theme.text};
}
.icon-fill {
fill: ${(props) => props.theme.text};
}
`;
const OpenCollectionIcon = ({ size = 28 }) => {
const clipId = useId();
retu... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconSidebarToggle/index.js | packages/bruno-app/src/components/Icons/IconSidebarToggle/index.js | import React from 'react';
const IconSidebarToggle = ({ collapsed = false, size = 16, strokeWidth = 1.5, className = '', ...rest }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
strokeWidth={strokeWidth}
stroke="currentCol... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconBottombarToggle/index.js | packages/bruno-app/src/components/Icons/IconBottombarToggle/index.js | import React from 'react';
const IconBottombarToggle = ({ collapsed = false, size = 16, strokeWidth = 1.5, className = '', ...rest }) => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={strokeWidth} strokeLinecap="rou... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconAlertTriangleFilled/index.js | packages/bruno-app/src/components/Icons/IconAlertTriangleFilled/index.js | import React from 'react';
const IconAlertTriangleFilled = ({ size = 16, ...props }) => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" {...props}>
<path
d="M12 1.67c.955 0 1.845 .467 2.39 1.247l.105 .16l8.114 13.548a2.914 2.914 0 0 1 -2... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/IconCaretDown/index.js | packages/bruno-app/src/components/Icons/IconCaretDown/index.js | import React from 'react';
const IconCaretDown = ({ color = '#8C8C8C', ...props }) => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
<g clipPath="url(#clip0_464_9256)">
<path d="M10.5444 5.75H4.46004C4.26888 5.7509 4.08142 5.78521 3.91637 ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/Help/index.js | packages/bruno-app/src/components/Icons/Help/index.js | import React from 'react';
const HelpIcon = ({ size = 14 }) => {
return (
<svg
tabIndex="-1"
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
fill="currentColor"
className="inline-block ml-2 cursor-pointer"
viewBox="0 0 16 16"
>
<path d="M8 15A7 7 ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Icons/CloseAll/index.js | packages/bruno-app/src/components/Icons/CloseAll/index.js | import React from 'react';
const CloseAllIcon = ({ size = 18, strokeWidth = 1.5, className = '', ...props }) => {
return (
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M7 7L7 5C7 4.46957 7.21072 3.96086 7.58579 3.58579C7.960... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Documentation/index.js | packages/bruno-app/src/components/Documentation/index.js | import 'github-markdown-css/github-markdown.css';
import get from 'lodash/get';
import { updateRequestDocs } from 'providers/ReduxStore/slices/collections';
import { useTheme } from 'providers/Theme';
import { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { saveRequest } from '... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Documentation/StyledWrapper.js | packages/bruno-app/src/components/Documentation/StyledWrapper.js | import styled from 'styled-components';
const StyledWrapper = styled.div`
.editing-mode {
cursor: pointer;
}
`;
export default StyledWrapper;
| javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/PathDisplay/index.js | packages/bruno-app/src/components/PathDisplay/index.js | import React from 'react';
import { IconFolder, IconFile } from '@tabler/icons';
import path from 'utils/common/path';
import StyledWrapper from './StyledWrapper';
const PathDisplay = ({
baseName = '',
iconType = 'file'
}) => {
return (
<StyledWrapper>
<div className="path-display mt-2">
<div c... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/PathDisplay/StyledWrapper.js | packages/bruno-app/src/components/PathDisplay/StyledWrapper.js | import styled from 'styled-components';
const StyledWrapper = styled.div`
width: 100%;
.path-display {
background: ${(props) => props.theme.requestTabPanel.url.bg};
border-radius: 4px;
padding: 8px 12px;
font-size: ${(props) => props.theme.font.size.base};
border: 1px solid rgba(0, 0, 0, 0.08);... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/DeprecationWarning/index.js | packages/bruno-app/src/components/DeprecationWarning/index.js | import React from 'react';
import IconAlertTriangleFilled from '../Icons/IconAlertTriangleFilled';
import StyledWrapper from './StyledWrapper';
const DeprecationWarning = ({ featureName, learnMoreUrl }) => {
return (
<StyledWrapper>
<div className="deprecation-warning">
<IconAlertTriangleFilled cla... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/DeprecationWarning/StyledWrapper.js | packages/bruno-app/src/components/DeprecationWarning/StyledWrapper.js | import styled from 'styled-components';
const StyledWrapper = styled.div`
.deprecation-warning {
box-sizing: border-box;
display: flex;
flex-direction: row;
align-items: center;
padding: 8px;
gap: 4px;
margin-bottom: 8px;
background: ${(props) => props.theme.deprecationWarning.bg};
... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
usebruno/bruno | https://github.com/usebruno/bruno/blob/b6a27bc66c93946b93ea736674830f700dbccb6e/packages/bruno-app/src/components/Table/index.js | packages/bruno-app/src/components/Table/index.js | import { useState, useRef, useEffect, useCallback } from 'react';
import StyledWrapper from './StyledWrapper';
const Table = ({ minColumnWidth = 1, headers = [], children }) => {
const [activeColumnIndex, setActiveColumnIndex] = useState(null);
const tableRef = useRef(null);
const columns = headers?.map((item) ... | javascript | MIT | b6a27bc66c93946b93ea736674830f700dbccb6e | 2026-01-04T14:59:20.022123Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.