{"id":24545014,"url":"https://github.com/mohiwalla/dtquick","last_synced_at":"2026-03-06T15:31:02.619Z","repository":{"id":157153568,"uuid":"605432399","full_name":"mohiwalla/dtquick","owner":"mohiwalla","description":"dtquick is an efficient and swift JavaScript library that streamlines the task of presenting data from databases.","archived":false,"fork":false,"pushed_at":"2023-10-14T02:34:31.000Z","size":149,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"mohiwalla","last_synced_at":"2025-09-23T23:35:55.408Z","etag":null,"topics":["datatables","hacktoberfest","javascript","javascript-library","mysql","php"],"latest_commit_sha":null,"homepage":"https://mohiwalla.000webhostapp.com/dtquick/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohiwalla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-02-23T06:18:16.000Z","updated_at":"2025-03-08T04:48:56.000Z","dependencies_parsed_at":"2023-10-15T04:13:45.337Z","dependency_job_id":null,"html_url":"https://github.com/mohiwalla/dtquick","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/mohiwalla/dtquick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohiwalla%2Fdtquick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohiwalla%2Fdtquick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohiwalla%2Fdtquick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohiwalla%2Fdtquick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohiwalla","download_url":"https://codeload.github.com/mohiwalla/dtquick/tar.gz/refs/heads/mohiwalla","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohiwalla%2Fdtquick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30183416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["datatables","hacktoberfest","javascript","javascript-library","mysql","php"],"created_at":"2025-01-22T21:17:29.824Z","updated_at":"2026-03-06T15:31:02.592Z","avatar_url":"https://github.com/mohiwalla.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dtquick\n\n**_dtquick_** is a lightweight and fast JavaScript library that simplifies the process of displaying data from databases. With minimal code, **_dtquick_** generates queries automatically and saves time. Check out the [Live Demo](https://mohiwalla.000webhostapp.com/dtquick/) to see it in action!\n\n## Usage\n\nThere are several ways to use **_dtquick_**:\n\n- ### Using CDN\n\nInclude the following script tag in the `\u003chead\u003e` section of your HTML document to use **_dtquick_** via CDN:\n\n```HTML\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/mohiwalla/dtquick@mohiwalla/index.js\" defer\u003e\u003c/script\u003e\n```\n\n- ### Cloning the Repository\n\nIf you have Git installed on your machine, you can clone the repository using the following command:\n\n```console\ngit clone https://github.com/mohiwalla/dtquick.git\n```\n\n- ### Installing via npm\n\nIf you have Node.js installed on your machine, you can use the following command to install the module:\n\n```console\nnpm install dtquick\n```\n\n- ### Downloading the Script\n\nYou can also download the [index.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/index.js) file and include it in your HTML document using the following script tag:\n\n```HTML\n\u003cscript src=\"path/to/index.js\" defer\u003e\u003c/script\u003e\n```\n\nAlternatively, you can copy the code from [index.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/index.js) and paste it into a `\u003cscript\u003e` tag in your HTML document.\n\n## Initialization\n\nTo initialize **_dtquick_**, add a `\u003cdiv\u003e` element with `id=\"dtquick\"`.\n\n### Attributes\n\nThe following attributes must be added to the `\u003cdiv\u003e` element:\n\n- #### db-table\n\nSpecifies the name of the table to be used in the MySQL query to fetch data from the database.\n\n- #### cols\n\nSpecifies the names of the columns to be displayed in the table as a comma-separated list. Each column name should contain two parts: one for the client-side to display in the table's `\u003cth\u003e` and another for the server-side (which is the name used to create the column in the database). For example:\n\n```CSS\ncols=\"S. no. = S, name = Name, E-mail = Email, Pass = Password\"\n```\n\n- #### file-name\n\nSpecifies the name of the server-side file to which **_dtquick_** will send an AJAX request for data.\n\n## Example\n\n```HTML\n\u003cdiv id=\"dtquick\" db-table=\"dtquick\" file-name=\"fetch.php\" cols=\"User_name = name,......\"\u003e\u003c/div\u003e\n\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/mohiwalla/dtquick@mohiwalla/index.js\" defer\u003e\u003c/script\u003e\n```\n\n## Server-Side File\n\nThe server-side file should fetch the query, the total number of rows available in the table, and the total found results as per the query. You can use any server-side language with it as per your comfort. Code samples for server-side scripts have been provided for reference in the following languages:\n\n- [PHP](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.php)\n- [ColdFusion](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.cfm)\n- [Node.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.js)\n- [Python](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.py)\n\n## Note\n\nBefore using **_dtquick_** in production, please note that this library sends a query from the client-side to the server-side, which is not traditional. Therefore, anyone from the client-side can modify the query to fetch data from your table, which is a potential risk to your data. If you want to prioritize safety, consider using [DataTables](https://datatables.net/) as it creates queries at the server end and reduces the risk. The purpose of creating queries at the client-end was to keep the structure of both client and server-side files simple and easy to use for newbies. If you find any bugs in the code or any possible improvements without compromising the simplicity of usage, you can send a pull request or modified code to hindustanjindabad5911@gmail.com. The existing code will be replaced by the code provided by you as soon as the examination is finished, and your name will be in the list of [Contributors](#contributors) as well. So, don't hesitate to give it a try. Lastly, if you appreciate the effort, consider giving a star to this repository.\n\n## Inspired by\n\n[DataTables](https://datatables.net/)\n\n## License\n\ndtquick is distributed under the [MIT License](https://github.com/mohiwalla/dtquick/blob/mohiwalla/LICENSE).\n\n\u003cp align=\"center\"\u003eMade with ❤️ by \u003ca href=\"https://github.com/mohiwalla\"\u003emohiwalla\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohiwalla%2Fdtquick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohiwalla%2Fdtquick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohiwalla%2Fdtquick/lists"}