{"id":28991261,"url":"https://github.com/ibero-data/duck-ui","last_synced_at":"2026-02-24T23:01:29.950Z","repository":{"id":275336778,"uuid":"917312697","full_name":"ibero-data/duck-ui","owner":"ibero-data","description":"Duck-UI is a web-based interface for interacting with DuckDB, a high-performance analytical database system. It features a SQL editor, data import/export, data explorer, query history, theme toggle, and keyboard shortcuts, all running seamlessly in the browser using DuckDB's WebAssembly (WASM) capabilities.","archived":false,"fork":false,"pushed_at":"2026-02-03T18:03:14.000Z","size":2561,"stargazers_count":523,"open_issues_count":7,"forks_count":33,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-04T07:36:23.463Z","etag":null,"topics":["data-science","data-visualization","dataanalysis","datanalytics","duckdb","local"],"latest_commit_sha":null,"homepage":"https://duckui.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibero-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-15T18:45:23.000Z","updated_at":"2026-02-03T18:04:03.000Z","dependencies_parsed_at":"2025-02-28T23:29:53.330Z","dependency_job_id":"eb2aa437-58bc-4502-85bf-51751ce5bfb9","html_url":"https://github.com/ibero-data/duck-ui","commit_stats":null,"previous_names":["caioricciuti/duck-ui","ibero-data/duck-ui"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/ibero-data/duck-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fduck-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fduck-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fduck-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fduck-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibero-data","download_url":"https://codeload.github.com/ibero-data/duck-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fduck-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29477304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","data-visualization","dataanalysis","datanalytics","duckdb","local"],"created_at":"2025-06-25T01:02:48.729Z","updated_at":"2026-02-24T23:01:29.944Z","avatar_url":"https://github.com/ibero-data.png","language":"TypeScript","readme":"# \u003cimg src=\"./public/logo.png\" alt=\"Duck-UI Logo\" title=\"Duck-UI Logo\" width=\"50\"\u003e Duck-UI\n\nDuck-UI is a web-based interface for interacting with DuckDB, a high-performance analytical database system. This project leverages DuckDB's WebAssembly (WASM) capabilities to provide a seamless and efficient user experience directly in the browser.\n\n# [Official Docs](https://duckui.com?utm_source=github\u0026utm_medium=readme) 🚀\n#  [Demo](https://demo.duckui.com?utm_source=github\u0026utm_medium=readme) 💻\n\n\n## Features\n\n- **SQL Editor**: Write and execute SQL queries with syntax highlighting and auto-completion.\n- **Data Import**: Import data from CSV, JSON, Parquet, and Arrow files.\n- **Data Explorer**: Browse and manage databases and tables.\n- **Query History**: View and manage your recent SQL queries.\n\n## Getting Started\n\n\n### Docker (Recommended)\n\n```bash\ndocker run -p 5522:5522 ghcr.io/ibero-data/duck-ui:latest\n```\n\nOpen your browser and navigate to `http://localhost:5522`.\n\n### Environment Variables\n\nYou can customize Duck-UI behavior using environment variables:\n\n```bash\n# For external DuckDB connections\ndocker run -p 5522:5522 \\\n  -e DUCK_UI_EXTERNAL_CONNECTION_NAME=\"My DuckDB Server\" \\\n  -e DUCK_UI_EXTERNAL_HOST=\"http://duckdb-server\" \\\n  -e DUCK_UI_EXTERNAL_PORT=\"8000\" \\\n  -e DUCK_UI_EXTERNAL_USER=\"username\" \\\n  -e DUCK_UI_EXTERNAL_PASS=\"password\" \\\n  -e DUCK_UI_EXTERNAL_DATABASE_NAME=\"my_database\" \\\n  -e DUCK_UI_ALLOW_UNSIGNED_EXTENSIONS=\"true\" \\\n  ghcr.io/ibero-data/duck-ui:latest\n```\n\n| Runtime Variable | Description | Default |\n|----------|-------------|---------|\n| `DUCK_UI_EXTERNAL_CONNECTION_NAME` | Name for the external connection | \"\" |\n| `DUCK_UI_EXTERNAL_HOST` | Host URL for external DuckDB | \"\" |\n| `DUCK_UI_EXTERNAL_PORT` | Port for external DuckDB | null |\n| `DUCK_UI_EXTERNAL_USER` | Username for external connection | \"\" |\n| `DUCK_UI_EXTERNAL_PASS` | Password for external connection | \"\" |\n| `DUCK_UI_EXTERNAL_DATABASE_NAME` | Database name for external connection | \"\" |\n| `DUCK_UI_ALLOW_UNSIGNED_EXTENSIONS` | Allow unsigned extensions in DuckDB | false |\n| `DUCK_UI_DUCKDB_WASM_USE_CDN` | Load DuckDB WASM from CDN (ignored when build-time `DUCK_UI_DUCKDB_WASM_CDN_ONLY=true`) | false |\n| `DUCK_UI_DUCKDB_WASM_BASE_URL` | Custom CDN base URL (used when `DUCK_UI_DUCKDB_WASM_USE_CDN=true`) | auto jsDelivr |\n\n| Build-time Variable | Description | Default |\n|----------|-------------|---------|\n| `DUCK_UI_DUCKDB_WASM_CDN_ONLY` | Build a CDN-only artifact (local DuckDB WASM assets are not bundled). | false |\n\nWhen `DUCK_UI_DUCKDB_WASM_CDN_ONLY=true`, runtime `DUCK_UI_DUCKDB_WASM_USE_CDN=false` cannot switch back to local WASM.\n\n\n\n### Prerequisites\n\n- Node.js \u003e= 20.x\n- npm \u003e= 10.x\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/ibero-data/duck-ui.git\n   cd duck-ui\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n### Running the Application\n\n1. Start the development server:\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n2. Open your browser and navigate to `http://localhost:5173`.\n\n### Building for Production\n\nTo create a production build, run:\n\n```bash\nnpm run build\n# or\nyarn build\n```\n\nThe output will be in the `dist` directory.\n\n### Running with Docker\n\n1. Build the Docker image:\n\n   ```bash\n   docker build -t duck-ui .\n   ```\n\n2. Run the Docker container:\n\n   ```bash\n   docker run -p 5522:5522 duck-ui\n   ```\n\n3. Open your browser and navigate to `http://localhost:5522`.\n\n## Usage\n\n### SQL Editor\n\n- Write your SQL queries in the editor.\n- Use `Cmd/Ctrl + Enter` to execute the query.\n- View the results in the results pane.\n\n### Data Import\n\n- Click on the \"Import Files\" button to upload CSV, JSON, Parquet, or Arrow files.\n- Configure the table name and import settings.\n- For CSV files, you can customize import options:\n  - Header row detection\n  - Auto-detection of column types\n  - Delimiter specification\n  - Error handling (ignore errors, null padding for missing columns)\n- View the imported data in the Data Explorer.\n\n### Data Explorer\n\n- Browse through the databases and tables.\n- Preview table data and view table schemas.\n- Delete tables if needed.\n\n### Query History\n\n- Access your recent queries from the Query History section.\n- Copy queries to the clipboard or re-execute them.\n\n### Theme Toggle\n\n- Switch between light and dark themes using the theme toggle button.\n\n### Keyboard Shortcuts\n\n- `Cmd/Ctrl + B`: Expand/Shrink Sidebar\n- `Cmd/Ctrl + K`: Open Search Bar\n- `Cmd/Ctrl + Enter`: Run Query\n- `Cmd/Ctrl + Shift + Enter`: Run highlighted query\n\n## Contributing\n\nContributions are welcome! Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.\n\n## Acknowledgements\n\n- [DuckDB](https://duckdb.org/)\n- [React](https://reactjs.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [Zustand](https://github.com/pmndrs/zustand)\n- [Lucide Icons](https://lucide.dev/)\n\n## Contact\n\nFor any inquiries or support, please contact [Caio Ricciuti](https://github.com/caioricciuti).\n\n## Sponsors\n\nThis project is sponsored by:\n\n### [Ibero Data](https://iberodata.es/) \n\u003cimg src=\"https://iberodata.es/logo.png\" alt=\"Ibero Data Logo\" title=\"Ibero Data Logo\" width=\"100\"\u003e\n\n### [qxip](https://qxip.net/?utm_source=duck-ui\u0026utm_medium=sponsorship) \n\n\u003cimg src=\"https://qxip.net/images/qxip.png\" alt=\"qxip\" title=\"qxip Logo\" width=\"150\"\u003e\n\n\n\n\u003cbr/\u003e\n\nWant to be a sponsor? [Contact us](mailto:caio.ricciuti+sponsorship@outlook.com).\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibero-data%2Fduck-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibero-data%2Fduck-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibero-data%2Fduck-ui/lists"}