MCPcopy
hub / github.com/HVF/franchise

github.com/HVF/franchise @v1.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.1.0 ↗
301 symbols 633 edges 38 files 8 documented · 3%
README

Franchise

a sql notebook

Franchise is a lightweight but powerful SQL tool with a notebook interface. You can use it online at franchise.cloud.

Franchise is pretty cool

  • There's no sign up and no install
    • For editing CSVs, JSON, XLSX files, we've integrated js-xlsx, and sql.js so you can query data entirely locally in your browser
    • For connecting to PostgreSQL, MySQL, or BigQuery, just run a single command in your terminal to open a bridge that allows Franchise to directly connect to your database. Your data never touches a third party server.
  • Chart with a single click
  • Compare queries side by side

Running Locally (Development Mode)

There's an online version of franchise right here. There are also instructions for building franchise to static files here.

Otherwise, here's how to run franchise in development mode:

  1. If you don't have npm or yarn, install yarn.

  2. Open up a terminal and run

    bash git clone --depth 1 https://github.com/HVF/franchise.git

  3. cd into the project directory bash cd franchise

  4. Install the project dependencies bash yarn install

    (you can also run npm install)

  5. Start the dev server bash yarn start

    (you can also run npm start)

  6. Open up a browser and go to http://localhost:3000

  7. Edit some files in franchise/src.

    When you save your edits, and the browser will automatically reload.

  8. (optional) Add a bunch of great functionality and send a PR!


Running in Docker 🐳

Application will be available here: http://localhost:3000

Using Docker Hub image

docker run \
    --name franchise \
    -p 3000:80 \
    -p 14645:14645 \
    -d binakot/franchise

Build your own image

  1. Build a docker image:
docker build -t franchise .
  1. Run a container with image:
docker run \
    --name franchise \
    -p 3000:80 \
    -p 14645:14645 \
    -d franchise

Build electron app

Linux:

yarn build:electron:linux

macOS:

yarn build:electron:mac

Windows:

yarn build:electron:windows

After build check out dist folder.

Core symbols most depended-on inside this repo

set
called by 51
src/cell/sql-mode.js
_classCallCheck
called by 26
src/db/graphql/graphql-docs.js
_possibleConstructorReturn
called by 20
src/db/graphql/graphql-docs.js
_inherits
called by 20
src/db/graphql/graphql-docs.js
edit
called by 19
src/db/graphql/graphql-docs.js
defineProperties
called by 18
src/db/graphql/graphql-docs.js
escape
called by 15
src/db/graphql/graphql-docs.js
merge
called by 12
src/db/graphql/graphql-docs.js

Shape

Function 212
Class 46
Method 43

Languages

TypeScript100%

Modules by API surface

src/db/graphql/graphql-docs.js70 symbols
src/state/update.js23 symbols
src/db/generic.js19 symbols
src/cell/carto.js18 symbols
src/cell/bar_fixed.js18 symbols
src/cell/index.js16 symbols
src/cell/sql-hint.js15 symbols
src/state/index.js12 symbols
src/cell/chart.js12 symbols
src/cell/sql-mode.js10 symbols
src/app.js10 symbols
src/cell/visualizer.js9 symbols

Dependencies from manifests, versioned

@blueprintjs/core1.22.0 · 1×
@blueprintjs/labs0.5.0 · 1×
@blueprintjs/table1.19.0 · 1×
@skidding/react-codemirror1.0.2 · 1×
babel6.23.0 · 1×
babel-preset-env1.6.0 · 1×
breadloaf1.3.9 · 1×
chart.js2.8.0 · 1×
classnames2.2.6 · 1×
codemirror5.48.0 · 1×
codemirror-graphql0.6.11 · 1×
css-loader3.0.0 · 1×

For agents

$ claude mcp add franchise \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact