{"id":22489839,"url":"https://github.com/easybase/easybasejs","last_synced_at":"2025-08-02T22:31:27.491Z","repository":{"id":49574183,"uuid":"279958409","full_name":"easybase/easybasejs","owner":"easybase","description":"Browser and Node.js compatible library for Easybase — used  in easybase-react.","archived":false,"fork":false,"pushed_at":"2021-09-19T23:25:27.000Z","size":6056,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T13:46:38.724Z","etag":null,"topics":["easybase"],"latest_commit_sha":null,"homepage":"https://easybase.io","language":"TypeScript","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/easybase.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}},"created_at":"2020-07-15T19:26:08.000Z","updated_at":"2023-09-23T16:02:06.000Z","dependencies_parsed_at":"2022-08-28T23:30:09.222Z","dependency_job_id":null,"html_url":"https://github.com/easybase/easybasejs","commit_stats":null,"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybase%2Feasybasejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybase%2Feasybasejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybase%2Feasybasejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easybase%2Feasybasejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easybase","download_url":"https://codeload.github.com/easybase/easybasejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500523,"owners_count":17930081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["easybase"],"created_at":"2024-12-06T17:20:55.104Z","updated_at":"2024-12-06T17:23:18.846Z","avatar_url":"https://github.com/easybase.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\u003c!-- [![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url] --\u003e\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://easybase.io\"\u003e\n    \u003cimg src=\"https://easybase.io/assets/images/logo_black.png\" alt=\"Logo\" width=\"80\" height=\"80\" href=\"easybase logo black\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dw/easybasejs\"\u003e\n  \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/easybase/easybasejs\"\u003e\n  \u003cimg alt=\"npm bundle size\" src=\"https://img.shields.io/bundlephobia/min/easybasejs\"\u003e\n  \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/easybasejs\"\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n## Table of Contents\n\n* [About the Project](#about-the-project)\n  * [Built With](#built-with)\n* [Getting Started](#getting-started)\n  * [Prerequisites](#prerequisites)\n  * [Installation](#installation)\n* [Usage](#usage)\n* [Documentation](#documentation)\n* [Roadmap](#roadmap)\n* [Contributing](#contributing)\n* [License](#license)\n* [Contact](#contact)\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n\n### Built With\n\n* [microbundle](https://github.com/developit/microbundle)\n* [webpack](https://webpack.js.org/)\n* [cross-fetch](https://github.com/lquixada/cross-fetch)\n* [Easybase.io](https://easybase.io)\n* [object-observer](https://github.com/gullerya/object-observer)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\nBrowser and Node.js compatible library for Easybase **Projects** and **Node Integrations**. This project also serves as the core for [_easybase-react_](https://github.com/easybase/easybase-react).\n\n### Prerequisites\n\n* npm for node projects\n* *There are no prerequisites for usage in browser*\n\n### Installation\n* Node:\n```sh\nnpm install easybasejs\n```\n* Browser:\n```html\n\u003chead\u003e\n    ...\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/easybasejs/dist/bundle.js\"\u003e\u003c/script\u003e\n    ...\n\u003c/head\u003e\n\n```\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\nThe node framework integration uses a query builder, [_EasyQB_](https://easybase.github.io/EasyQB/), to execute CRUD operations.\n\nThe `db()` function will point to your database. Execute queries with `.all` and `.one`. [Read the documentation for `.db` here](https://easybase.github.io/EasyQB/).\n\n```javascript\nimport Easybase from \"easybasejs\";\nimport ebconfig from \"./ebconfig\"; // Download from Easybase.io\n\n// Initialize\nconst table = Easybase.EasybaseProvider({ ebconfig }).db();\nconst { e } = table; // Expressions\n\n// Delete 1 record where 'app name' equals 'MyAppRecord'\nawait table.delete.where(e.eq('app name', 'MyAppRecord')).one();\n\n// Basic select example 'rating' is greater than 15, limited to 10 records.\nconst records = await table.return().where(e.gt('rating', 15)).limit(10).all();\nconsole.log(records);\n```\n\nA detailed walkthrough of [using serverless database is available here](https://easybase.io/react/).\n\n\u003cbr /\u003e\n\n### **Cloud Functions**\n\nThe *EasybaseProvider* pattern is not necessary for invoking cloud functions, only *callFunction* is needed.\n```jsx\nimport { callFunction } from 'easybase-react';\n\nfunction App() {\n    async function handleButtonClick() {\n        const response = await callFunction(\"123456-YOUR-ROUTE\", {\n            hello: \"world\",\n            message: \"Find me in event.body\"\n        });\n\n        console.log(\"Cloud function: \" + response);\n    }\n\n    //...\n}\n```\n\nLearn more about [deploying cloud functions here](https://easybase.io/react/2021/03/09/The-Easiest-Way-To-Deploy-Cloud-Functions-for-your-React-Projects/).\n\n\u003c!-- DOCUMENTATION EXAMPLES --\u003e\n## Documentation\n\nDocumentation for this library included in the `easybase-react` library [available here](https://easybase.io/docs/easybase-react/).\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/easybase/easybasejs/issues) for a list of proposed features (and known issues).\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/EasybaseFeature`)\n3. Commit your Changes (`git commit -m 'feature'`)\n4. Push to the Branch (`git push origin feature/EasybaseFeature`)\n5. Open a Pull Request\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nYour Name - [@easybase_io](https://twitter.com/easybase_io) - hello@easybase.io\n\nProject Link: [https://github.com/easybase/easybasejs](https://github.com/easybase/easybasejs)\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\u003c!-- [contributors-shield]: https://img.shields.io/github/contributors/easybase/repo.svg?style=flat-square\n[contributors-url]: https://github.com/easybase/repo/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/easybase/repo.svg?style=flat-square\n[forks-url]: https://github.com/easybase/repo/network/members\n[stars-shield]: https://img.shields.io/github/stars/easybase/repo.svg?style=flat-square\n[stars-url]: https://github.com/easybase/repo/stargazers\n[issues-shield]: https://img.shields.io/github/issues/easybase/repo.svg?style=flat-square\n[issues-url]: https://github.com/easybase/repo/issues\n[license-shield]: https://img.shields.io/github/license/easybase/repo.svg?style=flat-square\n[license-url]: https://github.com/easybase/repo/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://linkedin.com/in/easybase\n[product-screenshot]: images/screenshot.png --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasybase%2Feasybasejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasybase%2Feasybasejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasybase%2Feasybasejs/lists"}