{"id":37115260,"url":"https://github.com/chufretalas/pantsbase","last_synced_at":"2026-01-14T13:32:05.325Z","repository":{"id":206612943,"uuid":"687747548","full_name":"Chufretalas/pantsbase","owner":"Chufretalas","description":"A worse pocketbase, but it's my version and that's what matters :)","archived":false,"fork":false,"pushed_at":"2024-07-06T14:56:19.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T10:50:49.957Z","etag":null,"topics":["database","go","pocketbase","sqlite","standard-library"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Chufretalas.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}},"created_at":"2023-09-05T23:39:30.000Z","updated_at":"2024-07-06T14:56:22.000Z","dependencies_parsed_at":"2024-01-27T04:24:18.798Z","dependency_job_id":"e30dc9c7-1ee6-4c57-8c3b-6eeffe1f9a01","html_url":"https://github.com/Chufretalas/pantsbase","commit_stats":null,"previous_names":["chufretalas/pantsbase"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Chufretalas/pantsbase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chufretalas%2Fpantsbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chufretalas%2Fpantsbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chufretalas%2Fpantsbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chufretalas%2Fpantsbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chufretalas","download_url":"https://codeload.github.com/Chufretalas/pantsbase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chufretalas%2Fpantsbase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"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":["database","go","pocketbase","sqlite","standard-library"],"created_at":"2026-01-14T13:32:04.677Z","updated_at":"2026-01-14T13:32:05.314Z","avatar_url":"https://github.com/Chufretalas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pantsbase 👖\n\n    \"It's fine, I guess\" \n      ~ No one\n\nThink of pocketbase, you know? That awesome piece of software? Ok, so pantsbase is like that, but worse.\n\nWhat I wanted to do by making this project was test how far I can take the standart library and my own go knowledge. I can say it's been a great learning exercise.\n\nAs of v1.x.x, pantsbase can **CREATE, VIEW and DELETE tables** and **a full CRUD for table rows** both from the GUI and from the API. It still cannot do relations and does not have a way to protect the API through any type of auth (but this is a priority for the next update).\n\n# API reference\n\n**Any receiving or sending of data is done with json**  \n**All table coulmns are nullable**\n\n## Table endpoints\n\n- `GET /api/tables` returns the all existing tables and their schemas\n  - **URL parameters:**\n  - `?names_only` returns just the names of the tables, without the schemas\n\n- `POST /api/new_table/{table_name}` creates a new table. The schema should be the body of the request where the keys of the json are the column names and the values are the data types (data types com only be \"TEXT\", \"INTEGER\" or \"REAL\").\n  - **Example body:** `{\"col1\": \"REAL\", \"col 2\": \"INTEGER\", \"col_3\": \"TEXT\"}`\n\n- `DELETE /api/delete_table/{table_name}` deletes the specified table\n\n## Rows endpoints\n\n- `GET /api/tables/{table_name}` queries for data in a table\n  - **URL parameters:**\n  - `?limit={int}` limits the amount of data that is queried\n  - `?order_by={column_name}` chooses a column to use for ordering the results\n  - `?order_direction={DESC|ASC}` only has an effect if order_by if present and valid, the only accepted values are *DESC* and *ASC* (the default if *DESC*)\n\n- `GET /api/tables/{table_name}/{id}` queries for one row that matches the *id*\n\n- `POST /api/tables/{table_name}` creates on or more new rows in the *table*\n  - **Example body 1:** `{\"col1\": 1.2, \"col 2\": 10, \"col_3\": \"some text\"}`\n  - **Example body 2:** `[{\"col1\": null, \"col 2\": -22, \"col_3\": \"something\"}, {\"col1\": 9328432.4324, \"col 2\": null, \"col_3\": null}]`\n\n- `PUT /api/tables/{table_name}/{id}` or `PATCH /api/tables/{table_name}/{id}` updates a row that matches the id, the body should contain only the columns you wnat to udpate\n  - **Example body:** `{\"col_3\": \"new updated text\"}`\n\n- `DELETE /api/tables/{table_name}/{id}` deletes the row that matches te *id* from the *table*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchufretalas%2Fpantsbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchufretalas%2Fpantsbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchufretalas%2Fpantsbase/lists"}