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
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/createInBrowserNetwork.js
shells/dev/relay-app/FriendsList/createInBrowserNetwork.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { INetwork } from '../../../../node_modules/relay-runtime/network/RelayNetworkTypes'; import type { Variab...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/Friends.js
shells/dev/relay-app/FriendsList/Friends.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React, { Fragment } from 'react'; import { graphql, createPaginationContainer } from 'react-relay'; import Frie...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/index.js
shells/dev/relay-app/FriendsList/index.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import App from './App'; export default App;
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/FriendCard.js
shells/dev/relay-app/FriendsList/FriendCard.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import { graphql, createFragmentContainer } from 'react-relay'; import styles from './Frien...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/App.js
shells/dev/relay-app/FriendsList/App.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React, { useCallback, useState, Fragment } from 'react'; import { Environment, RecordSource, Store } from 'rela...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/__generated__/Friends_user.graphql.js
shells/dev/relay-app/FriendsList/__generated__/Friends_user.graphql.js
/** * @generated SignedSource<<02ddbd42c32f93e9700a2e37bae43ce4>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable */ 'use strict'; /*:: import type { Fragment, ReaderFragment } from 'relay-runtime'; import type { FriendCard_user$fragmentType } from "./FriendCard_user.graphql"; import type { Fragm...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/__generated__/FriendsQuery.graphql.js
shells/dev/relay-app/FriendsList/__generated__/FriendsQuery.graphql.js
/** * @generated SignedSource<<c7d5a2ad9ae46e0814c135d3836b0ff6>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest, Query } from 'relay-runtime'; import type { Friends_user$fragmentType } from "./Friends_user.graphql"; export type FriendsQuery$va...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/__generated__/FriendCard_user.graphql.js
shells/dev/relay-app/FriendsList/__generated__/FriendCard_user.graphql.js
/** * @generated SignedSource<<c190e08fe0062b0302f8d20582528753>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable */ 'use strict'; /*:: import type { Fragment, ReaderFragment } from 'relay-runtime'; import type { FragmentType } from "relay-runtime"; declare export opaque type FriendCard_user$frag...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/relay-app/FriendsList/__generated__/AppQuery.graphql.js
shells/dev/relay-app/FriendsList/__generated__/AppQuery.graphql.js
/** * @generated SignedSource<<cecb3b64c3391bb9609404b41b168fbe>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest, Query } from 'relay-runtime'; import type { Friends_user$fragmentType } from "./Friends_user.graphql"; export type AppQuery$variab...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/src/backend.js
shells/dev/src/backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import Agent from 'src/backend/agent'; import Bridge from 'src/bridge'; import { initBackend } from 'src/backend'; imp...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/dev/src/devtools.js
shells/dev/src/devtools.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import { createElement } from 'react'; // $FlowFixMe Flow does not yet know about createRoot() import { unstable_creat...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/chrome/test.js
shells/browser/chrome/test.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const chromeLaunch = require('chrome-launch'); // eslint-disable-line import/no-extraneous-dependencies const ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/chrome/build.js
shells/browser/chrome/build.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const chalk = require('chalk'); const { execSync } = require('child_process'); const { existsSync } = require(...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/chrome/deploy.js
shells/browser/chrome/deploy.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const deploy = require('../shared/deploy'); const main = async () => await deploy('chrome'); main();
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/chrome/watch.js
shells/browser/chrome/watch.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { execSync } = require('child_process'); const { join } = require('path'); const webpackPath = join( ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/webpack.backend.js
shells/browser/shared/webpack.backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { resolve } = require('path'); const { DefinePlugin } = require('webpack'); const { getGitHubIssuesURL, getGitHubURL, ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/build.js
shells/browser/shared/build.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const archiver = require('archiver'); const { execSync } = require('child_process'); const { readFileSync, wri...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/deploy.js
shells/browser/shared/deploy.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { exec, execSync } = require('child_process'); const { readFileSync, writeFileSync } = require('fs'); co...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/webpack.config.js
shells/browser/shared/webpack.config.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { resolve } = require('path'); const { DefinePlugin } = require('webpack'); const { getGitHubIssuesURL, getGitHubURL, ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/injectedRelayDevToolsDetector.js
shells/browser/shared/src/injectedRelayDevToolsDetector.js
import { installHook } from 'src/hook'; // Inject a `__RELAY_DEVTOOLS_HOOK__` global so that Relay can detect that the // devtools are installed (and skip its suggestion to install the devtools). (function() { installHook(window); window.__RELAY_DEVTOOLS_HOOK__.on('environment', function(evt) { window.postMess...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/main.js
shells/browser/shared/src/main.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ /* global chrome */ import { createElement } from 'react'; import { unstable_createRoot as createRoot, flushSync } ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/panel.js
shells/browser/shared/src/panel.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // Portal target container. window.container = document.getElementById('container'); let hasInjectedStyles = false; // DevTools ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/background.js
shells/browser/shared/src/background.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* global chrome */ const ports: $FlowFixMe = {}; const IS_FIREFOX = navigator.userAgent.indexOf('Firefox') >= 0; c...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/backend.js
shells/browser/shared/src/backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // Do not use imports or top-level requires here! // Running module factories is intentionally delayed until we know t...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/renderer.js
shells/browser/shared/src/renderer.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /** * In order to support reload-and-profile functionality, the renderer needs to be injected before any other script...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/contentScript.js
shells/browser/shared/src/contentScript.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* global chrome */ let backendDisconnected: boolean = false; let backendInitialized: boolean = false; function sayH...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/injectGlobalHook.js
shells/browser/shared/src/injectGlobalHook.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ /* global chrome */ import nullthrows from 'nullthrows'; function injectCode() { const script = documen...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/src/utils.js
shells/browser/shared/src/utils.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* global chrome */ const IS_CHROME = navigator.userAgent.indexOf('Firefox') < 0; export function createViewElementSource(bridge...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/shared/popups/shared.js
shells/browser/shared/popups/shared.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* globals chrome */ document.addEventListener('DOMContentLoaded', function() { // Make links work const links = document.get...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/firefox/test.js
shells/browser/firefox/test.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { exec } = require('child-process-promise'); const { Finder } = require('firefox-profile'); const { reso...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/firefox/build.js
shells/browser/firefox/build.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const chalk = require('chalk'); const build = require('../shared/build'); const main = async () => { await ...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/shells/browser/firefox/deploy.js
shells/browser/firefox/deploy.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const deploy = require('../shared/deploy'); const main = async () => await deploy('firefox'); main();
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools/index.js
packages/relay-devtools/index.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const { connectToDevTools } = require('relay-devtools-core/backend'); // Connect immediately with default options. //...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools/app.js
packages/relay-devtools/app.js
// @flow /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { app, BrowserWindow } = require('electron'); // Module to create native browser window. const { join } = require('...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools/bin.js
packages/relay-devtools/bin.js
#!/usr/bin/env node /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const electron = require('electron'); const spawn = require('cross-spawn'); const argv = process.a...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/webpack.backend.js
packages/relay-devtools-core/webpack.backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { resolve } = require('path'); const Webpack = require('webpack'); const { getGitHubIssuesURL, getGitHubURL, getIntern...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/standalone.js
packages/relay-devtools-core/standalone.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ module.exports = require('./dist/standalone');
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/webpack.standalone.js
packages/relay-devtools-core/webpack.standalone.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const { resolve } = require('path'); const Webpack = require('webpack'); const { getGitHubIssuesURL, getGitHubURL, getIntern...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/backend.js
packages/relay-devtools-core/backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ module.exports = require('./dist/backend');
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/src/launchEditor.js
packages/relay-devtools-core/src/launchEditor.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import { existsSync } from 'fs'; import { basename, join, isAbsolute } from 'path'; import { execSync, spawn } from 'c...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/src/standalone.js
packages/relay-devtools-core/src/standalone.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { createElement } from 'react'; import { // $FlowFixMe Flow does not yet know about flushSync() flushSync, // $FlowFi...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
relayjs/relay-devtools
https://github.com/relayjs/relay-devtools/blob/c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1/packages/relay-devtools-core/src/backend.js
packages/relay-devtools-core/src/backend.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import Agent from 'src/backend/agent'; import Bridge from 'src/bridge'; import { installHook } from 'src/hook'; import...
javascript
MIT
c4e3a966e6b58d9c2ae9f1abeed619c4d0119eb1
2026-01-05T03:36:33.474383Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/crawlAction.js
src/crawler/crawlAction.js
const {randomUUID} = require('crypto'); /** * The CrawlAction class specifies the action to take on an element * in the DOM (it is an edge in the crawl graph). */ class CrawlAction { static { this.ANCHOR = 'A'; } /** * CrawlAction object constructor * @param {string} element * @param {string} ac...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/crawlInput.js
src/crawler/crawlInput.js
const chalk = require('chalk'); const path = require('path'); const {randomUUID} = require('crypto'); /** * The CrawlInput class specifies an input element in a CrawlState. */ class CrawlInput { static { this.INPUT_FIELDS = [ {ELEMENT: 'input', TYPE: 'text', CSS_PATH: 'input[type="text"]'}, {ELEMEN...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/crawlStateManager.js
src/crawler/crawlStateManager.js
/** * The CrawlStateManager is responsible for creating and managing the crawl graph. */ class CrawlStateManager { /** * CrawlStateManager object constructor. * @param {CrawlState} rootState */ constructor(rootState) { this.rootState = rootState ? rootState : null; this.visitedActions = new Set()...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/domPath.js
src/crawler/domPath.js
/** * The DomPath class is responsible for calculating all css paths and xpaths */ class DomPath { /** * DomPath object constructor. * @param {Page} page */ constructor(page) { this.page = page; } /** * This function returns an Array of CssPaths of the elements * in context of the given pa...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/crawlState.js
src/crawler/crawlState.js
const {randomUUID} = require('crypto'); /** * The CrawlState class specifies the state of the DOM after an action * on an element in the DOM (it is a vertice in the crawl graph). */ class CrawlState { /** * CrawlState object constructor. * @param {string} url * @param {string} stateHash * @param {int}...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/crawler/crawler.js
src/crawler/crawler.js
const Browser = require('../browser/browser.js'); const CrawlAction = require('./crawlAction.js'); const CrawlInput = require('./crawlInput.js'); const CrawlState = require('./crawlState.js'); const CrawlStateManager = require('./crawlStateManager.js'); const DomPath = require('./domPath.js'); const {appendFileSync} = ...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/auth/authenticator.js
src/auth/authenticator.js
const {PuppeteerRunnerExtension, createRunner} = require('@puppeteer/replay'); const fs = require('fs'); /** * The Extension class responsible for running the pptr auth recording. */ class Extension extends PuppeteerRunnerExtension { /** * * @param {@puppeteer/replay.Step} step * @param {Puppeteer.Page} p...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/models/configModel.js
src/models/configModel.js
const Joi = require('joi'); /** * Proxy model for the proxy configuration of the crawler */ const proxyModel = Joi.object({ enabled: Joi.boolean().required(), host: Joi.string().hostname().when('enabled', { is: true, then: Joi.string().hostname().required(), otherwise: Joi.string().hostname(), }), ...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/src/browser/browser.js
src/browser/browser.js
const {launch} = require('puppeteer'); /** * The Browser class is responsible for instantiating and * returning a properly configured browser. */ class Browser { /** * This static method reads the config file and initializes * the browser options to be passed down to puppeteer. * @param {Object} config ...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/bin/index.js
bin/index.js
#!/usr/bin/env node const Crawler = require('../src/crawler/crawler.js'); const chalk = require('chalk'); const configModel = require('../src/models/configModel.js'); const fs = require('fs'); const path = require('path'); const yargs = require('yargs'); const {version} = require('../package.json'); const configFileP...
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
karthikuj/sasori
https://github.com/karthikuj/sasori/blob/89400f49f9918383f05dee52c6142c625ab78450/resources/uploadFiles/text/sasori.js
resources/uploadFiles/text/sasori.js
const name = 'Sasori'; console.log(name);
javascript
MIT
89400f49f9918383f05dee52c6142c625ab78450
2026-01-05T03:36:57.105270Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/main.js
main.js
'use strict'; const electron = require('electron'); const app = electron.app; // Module to control application life. const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. const storage = require('electron-json-storage'); var Menu = electron.Menu; var menu = new Menu(); var dialog =...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/scripts/notarize.js
scripts/notarize.js
require('dotenv').config(); const { notarize } = require('electron-notarize'); exports.default = async function notarizing(context) { const { electronPlatformName, appOutDir } = context; if (electronPlatformName !== 'darwin') { return; } const appName = context.packager.appInfo.productFilename...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/app/index.js
app/index.js
//included in the index.html //window code for opening and saving. var fs = require('fs'); var path = path || require('path'); var electron = require('electron'); const MidiWriter = require('midi-writer-js'); var flipShutdownFlag = electron.remote.getGlobal("flipShutdownFlag"); var app = electron.remote.app; var dialo...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Plugins/Sample_plugin.js
Cracked/Plugins/Sample_plugin.js
/** * Foo Gain * * //example plugin * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.gain=1] */ cracked.Foo = function (params) { var userParams = params || {}; var level = params.gain || 1; __().begin("Foo", userParams).gain(level).end("Foo"); return crac...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/mouse-movement.js
Cracked/Examples/misc/mouse-movement.js
//mouse movement //move the mouse to hear the change. __().sine().gain(1/32).out().play(); __().saw().gain(1/64).out().play(); //callback function is triggered by the mouse movement. __.mouse_movement(function(e){ //get the position with clientX & clientY __("sine").frequency(e.clientX); __("saw").freque...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/synth-polysynth.js
Cracked/Examples/misc/synth-polysynth.js
/** * polysynth * * Simple polyphonic synth * * @param {Object} [params] map of optional values expected format { lfo_type:"sawtooth", lfo_intensity:0, lfo_speed:5, osc_type:"sine", osc_frequency:440, osc_detune:0, lp_q:0, lp_frequency:440, adsr_...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/key-press.js
Cracked/Examples/misc/key-press.js
//key press //press keys on the keyboards plays random sounds __().sine().gain(1/32).adsr("short").out().play(); __().saw().gain(1/64).adsr("short").out().play(); __.key_press(function(e){ __("sine").frequency(__.random(100,1000)); __("saw").frequency(__.random(100,1000)); __("adsr").adsr("trigger"); })...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/input-output.js
Cracked/Examples/misc/input-output.js
/** * adc - system in — input with a master volume * @plugin * @category Miscellaneous * @param {Number} [params=1] system in gain * @function * @memberof cracked * @name cracked#adc * @public */ /** * dac - system out — destination with a master volume. Output is clipped if gain is 1 or less. * @plugin * ...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/multi-output.js
Cracked/Examples/misc/multi-output.js
/** * System multi_out - destination with a master volume w/ multi-channel support * @plugin * @category Miscellaneous * @param {Object} [userParams] map of optional values * @param {Number} [userParams.gain=1] * @param {Number} [userParams.channel=1] * @function * @memberof cracked * @name cracked#out * @pub...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/panner.js
Cracked/Examples/misc/panner.js
/** * Panner - simple stereo panner * * @plugin * @category Miscellaneous * @param {Object} [params] map of optional values * @function * @memberof cracked * @name cracked#panner * @public */ //pans left & right. arguments: 1=right, -1=left, 0=both. defaults to 0. __().saw(100).panner().dac(0.25).play(); s...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/misc/synth-monosynth.js
Cracked/Examples/misc/synth-monosynth.js
/** * monosynth - Simple monophonic synth * * @param {Object} [params] map of optional values { lfo_type:"sawtooth", lfo_intensity:0, lfo_speed:5, osc_type:"sine", osc_frequency:440, osc_detune:0, lp_q:0, lp_frequency:440, adsr_envelope:0.5, ga...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/bitcrusher-params.js
Cracked/Examples/distortion/bitcrusher-params.js
/** * Bitcrusher * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=0.1] * @param {Number} [params.bits=6] */ //decimate __(). sampler({ path:"../../Sounds/various/gun-cock.wav", loop:true }). bitcrusher({ bits:2, frequency:0.01 }). dac...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/bitcrusher-default.js
Cracked/Examples/distortion/bitcrusher-default.js
/** * Bitcrusher * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=0.1] * @param {Number} [params.bits=6] */ //create & connect a sampler to a bitcrusher (default settings) and then to dac (output volume 50%) __(). sampler({ path:"../../Sounds/various/gun-c...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/ring-modulator-default.js
Cracked/Examples/distortion/ring-modulator-default.js
/** * Ring Modulator * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.distortion=1] * @param {Number} [params.frequency=30] */ //ring modulator - default settings - frequency : 30, distortion : 1 __(). sampler({ path:"../../Sounds/various/gun-cock.wav", loop:tr...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/overdrive.js
Cracked/Examples/distortion/overdrive.js
/** * Overdrive, waveshaper with additional parameters * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.drive=0.5] * @param {Number} [params.color=800] * @param {Number} [params.postCut=3000] */ //crank the drive to 100 __(). sampler({ path:"../../Sounds/various/gu...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/waveshaper.js
Cracked/Examples/distortion/waveshaper.js
/** * Native Waveshaper * @param {Object} [userParams] map of optional values * @param {Number} [userParams.drive=50] */ //crank the drive to 100 __(). sampler({ path:"../../Sounds/various/gun-cock.wav", loop:true }). waveshaper(100). dac(0.25); __("sampler").start();
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/ring-modulator-params.js
Cracked/Examples/distortion/ring-modulator-params.js
/** * Ring Modulator * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.distortion=1] * @param {Number} [params.frequency=30] */ //create a sampler and connect to output //ring modulator - default settings - frequency : 30, distortion : 1 __(). sampler({ path:"../...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/distortion/overdrive-params.js
Cracked/Examples/distortion/overdrive-params.js
/** * Overdrive, waveshaper with additional parameters * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.drive=0.5] * @param {Number} [params.color=800] * @param {Number} [params.postCut=3000] */ //trebly overdrive __(). sampler({ path:"../../Sounds/various/gun-cock...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/modulation.js
Cracked/Examples/modulation/modulation.js
//the "modulates" parameter on the gain tells it to connect //to the frequency audio param of the 2nd sine. __().sine(0.1).gain({gain:100,modulates:"frequency"}).sine().dac(0.15); //same as the line above, but add a delay after the gain __().sine(0.1).gain(100).delay({modulates:"frequency",delay:1}).sine().connect("da...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/ramp-multiple.js
Cracked/Examples/modulation/ramp-multiple.js
/** * Public method to ramp a parameter on currently selected nodes * Target & timeToRamp parameters can be numbers or arrays of numbers * for multisegement ramps. Initial value param is optional, if * omitted, then the current value is used as the initial value. * If loop is running, then ramp start times are sna...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/ramp-array.js
Cracked/Examples/modulation/ramp-array.js
/** * Public method to ramp a parameter on currently selected nodes * Target & timeToRamp parameters can be numbers or arrays of numbers * for multisegement ramps. Initial value param is optional, if * omitted, then the current value is used as the initial value. * If loop is running, then ramp start times are sna...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/modulation-noise.js
Cracked/Examples/modulation/modulation-noise.js
//brown noise as a modulation source __().brown().gain({modulates:"frequency",gain:1000}).sine().dac(0.25); //lfo modulates the gain __().lfo({frequency:1/8,modulates:"gain",type:"sine"}).connect("gain"); //start it up __("sine,lfo,brown").start();
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/modulation-simple.js
Cracked/Examples/modulation/modulation-simple.js
//simple frequency modulation //the "modulates" parameter on the gain tells it to connect //to the frequency audio param of the 2nd sine. __().sine(0.1).gain({gain:100,modulates:"frequency"}).sine().dac(0.25); //start up the sines __("sine").start();
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/modulation/ramp.js
Cracked/Examples/modulation/ramp.js
/** * Public method to ramp a parameter on currently selected nodes * Target & timeToRamp parameters can be numbers or arrays of numbers * for multisegement ramps. Initial value param is optional, if * omitted, then the current value is used as the initial value. * If loop is running, then ramp start times are sna...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/midi/midi-check.js
Cracked/Examples/midi/midi-check.js
//print midi messages to the console //initialize midi __.midi_init(function(){ __.midi_noteon(function(data){ console.log(data); }); __.midi_noteoff(function(data){ console.log(data); }); __.midi_control(function(data){ console.log(data); }); });
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/midi/midi-polysynth.js
Cracked/Examples/midi/midi-polysynth.js
//create the synth __().polysynth().dac().play(); //initialize midi __.midi_init(function(){ __.midi_noteon(function(data){ __("polysynth").polysynth("noteOn",{pitch:data[1],velocity:data[2]}); }); __.midi_noteoff(function(data){ __("polysynth").polysynth("noteOff",{pitch:data[1],envelope:1}); }); ...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/midi/midi-monosynth.js
Cracked/Examples/midi/midi-monosynth.js
//create the synth __().monosynth().dac().play(); //initialize midi __.midi_init(function(){ //call noteon __.midi_noteon(function(data){ __("monosynth").monosynth("noteOn",{pitch:data[1],velocity:data[2]}); }); //call noteoff __.midi_noteoff(function(data){ __("monosynth").monosynth("noteOff",{pitch:d...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/adsr/adsr-param.js
Cracked/Examples/adsr/adsr-param.js
/** * Attack Decay Sustain Release envelope * * @plugin * @param {Array} [userParams] 5 values: attack,decay,sustain,hold,release * @param {Array} [userParams] 4 values: attack,decay,sustain,release * @param {Array} [userParams] 3 values: attack,decay,sustain (holds until released) * @param {String} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/adsr/adsr-array-param.js
Cracked/Examples/adsr/adsr-array-param.js
/** * Attack Decay Sustain Release envelope * * @plugin * @param {Array} [userParams] 5 values: attack,decay,sustain,hold,release * @param {Array} [userParams] 4 values: attack,decay,sustain,release * @param {Array} [userParams] 3 values: attack,decay,sustain (holds until released) * @param {String} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/adsr/adsr-shortcut-param.js
Cracked/Examples/adsr/adsr-shortcut-param.js
/** * Attack Decay Sustain Release envelope * * @plugin * @param {Array} [userParams] 5 values: attack,decay,sustain,hold,release * @param {Array} [userParams] 4 values: attack,decay,sustain,release * @param {Array} [userParams] 3 values: attack,decay,sustain (holds until released) * @param {String} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-peak.js
Cracked/Examples/filters/filter-peak.js
/** * Peaking Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q * @param {Number} [params.gain=0] gain */ //create & connect white noise and //peaking filter with a frequency of //1200 and q of 30 to a dac __...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-highshelf.js
Cracked/Examples/filters/filter-highshelf.js
/** * Highshelf Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q * @param {Number} [params.gain=0] gain */ //create & connect white noise and a highshelf filter //(with a frequency of 880, gain of 1 & Q of 1...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-lowshelf.js
Cracked/Examples/filters/filter-lowshelf.js
/** * Lowshelf Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q * @param {Number} [params.gain=0] gain */ //create & connect white noise and a lowshelf filter //(with a frequency of 440, gain of 1 & Q of 10) ...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-bandpass.js
Cracked/Examples/filters/filter-bandpass.js
/** * Bandpass Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q */ //create & connect white noise and //bandpass filter with a frequency of //1200 and q of 30 to a dac __(). white(). bandpass({ frequency:...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-lowpass.js
Cracked/Examples/filters/filter-lowpass.js
/** * Lowpass Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q */ //create & connect white noise and //lowpass filter with a frequency of //1200 and q of 30 to a dac __(). white(). lowpass({ frequency:120...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-allpass.js
Cracked/Examples/filters/filter-allpass.js
/** * Allpass Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q */ //create & connect white noise and //allpass filter with a frequency of //1200 and q of 30 to a dac __(). white(). allpass({ frequency:12...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-highpass.js
Cracked/Examples/filters/filter-highpass.js
/** * Highpass Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q */ //create & connect white noise and //allpass filter with a frequency of //1200 and q of 30 to a dac __(). white(). highpass({ frequency:1...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/filters/filter-notch.js
Cracked/Examples/filters/filter-notch.js
/** * Notch Filter * * @plugin * @param {Object} [params] map of optional values * @param {Number} [params.frequency=440] frequency * @param {Number} [params.q=0] Q */ //create & connect white noise and //notch filter with a frequency of //1200 and q of 30 to a dac __(). white(). notch({ frequency:1200, ...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/sampler/sampler-looping-endpoints.js
Cracked/Examples/sampler/sampler-looping-endpoints.js
/** * Sampler - sound file player * * @plugin * @param {Object} [userParams] map of optional values * @param {Number} [userParams.speed=1] * @param {Number} [userParams.start=1] * @param {Number} [userParams.end=1] * @param {String} [userParams.path=''] path to sound file to play * @param {Boolean} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/sampler/sampler-looping.js
Cracked/Examples/sampler/sampler-looping.js
/** * Sampler - sound file player * * @plugin * @param {Object} [userParams] map of optional values * @param {Number} [userParams.speed=1] * @param {Number} [userParams.start=1] * @param {Number} [userParams.end=1] * @param {String} [userParams.path=''] path to sound file to play * @param {Boolean} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/sampler/sampler-slow.js
Cracked/Examples/sampler/sampler-slow.js
/** * Sampler - sound file player * * @plugin * @param {Object} [userParams] map of optional values * @param {Number} [userParams.speed=1] * @param {Number} [userParams.start=1] * @param {Number} [userParams.end=1] * @param {String} [userParams.path=''] path to sound file to play * @param {Boolean} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/sampler/sampler-loop.js
Cracked/Examples/sampler/sampler-loop.js
__().sampler({path:"/Sounds/various/gun-cock.wav",speed:1/4,start:0.15}).dac(); //play the sample every 200ms __.loop(400,function(){ //need to stop before you can start __("sampler").stop().start(); }); //start loop __.loop("start");
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/sampler/sampler-default.js
Cracked/Examples/sampler/sampler-default.js
/** * Sampler - sound file player * * @plugin * @param {Object} [userParams] map of optional values * @param {Number} [userParams.speed=1] * @param {Number} [userParams.start=1] * @param {Number} [userParams.end=1] * @param {String} [userParams.path=''] path to sound file to play * @param {Boolean} [userParams...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/lfo/lfo-modulate-panner.js
Cracked/Examples/lfo/lfo-modulate-panner.js
/** * Low Frequency Oscillator * * @plugin * @param {Object} [userParams] map of optional values * @param {String} [userParams.modulates=frequency] * @param {String} [userParams.type=saw] * @param {Number} [userParams.frequency=6] * @param {Number} [userParams.gain=1000] */ //create saw->panner->dac __().saw()...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/lfo/lfo-modulate-delay.js
Cracked/Examples/lfo/lfo-modulate-delay.js
/** * Low Frequency Oscillator * * @plugin * @param {Object} [userParams] map of optional values * @param {String} [userParams.modulates=frequency] * @param {String} [userParams.type=saw] * @param {Number} [userParams.frequency=6] * @param {Number} [userParams.gain=1000] */ //set up a sine with a delay __().si...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/lfo/lfo-noise.js
Cracked/Examples/lfo/lfo-noise.js
/** * Low Frequency Oscillator * * @plugin * @param {Object} [userParams] map of optional values * @param {String} [userParams.modulates=frequency] * @param {String} [userParams.type=saw] * @param {Number} [userParams.frequency=6] * @param {Number} [userParams.gain=1000] */ //lfo with pink noise as its type. _...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false
billorcutt/Cracked
https://github.com/billorcutt/Cracked/blob/4974958c3c73bb416b1a67a51d68a10651b0338c/Cracked/Examples/lfo/lfo-slow.js
Cracked/Examples/lfo/lfo-slow.js
/** * Low Frequency Oscillator * * @plugin * @param {Object} [userParams] map of optional values * @param {String} [userParams.modulates=frequency] * @param {String} [userParams.type=saw] * @param {Number} [userParams.frequency=6] * @param {Number} [userParams.gain=1000] */ //create sine & gain nodes and conne...
javascript
MIT
4974958c3c73bb416b1a67a51d68a10651b0338c
2026-01-05T03:36:58.678685Z
false