{"id":15908054,"url":"https://github.com/desolid/desolid","last_synced_at":"2025-07-08T15:04:19.082Z","repository":{"id":57156884,"uuid":"238368037","full_name":"desolid/desolid","owner":"desolid","description":"🤖 Desolid: Single file, self hosted, backend as a service","archived":false,"fork":false,"pushed_at":"2023-02-12T05:18:33.000Z","size":5942,"stargazers_count":19,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-07-08T15:03:59.091Z","etag":null,"topics":["baas","graphql","headless","headless-cms","minimalistic"],"latest_commit_sha":null,"homepage":"https://desolid.netlify.app/","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/desolid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-02-05T04:31:29.000Z","updated_at":"2025-07-03T11:01:35.000Z","dependencies_parsed_at":"2023-07-25T01:53:58.695Z","dependency_job_id":null,"html_url":"https://github.com/desolid/desolid","commit_stats":{"total_commits":208,"total_committers":2,"mean_commits":104.0,"dds":0.004807692307692291,"last_synced_commit":"d24e3f59e70e18499b34c200875d960ba2026f12"},"previous_names":["prisma-x/prismax"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/desolid/desolid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desolid%2Fdesolid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desolid%2Fdesolid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desolid%2Fdesolid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desolid%2Fdesolid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/desolid","download_url":"https://codeload.github.com/desolid/desolid/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desolid%2Fdesolid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264292907,"owners_count":23586059,"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":["baas","graphql","headless","headless-cms","minimalistic"],"created_at":"2024-10-06T14:09:11.155Z","updated_at":"2025-07-08T15:04:19.051Z","avatar_url":"https://github.com/desolid.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# 🤖 Desolid: Single file BaaS\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://npmcharts.com/compare/desolid?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/desolid.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/desolid\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/desolid.svg\" alt=\"Version\"\u003e\u003c/a\u003e  \n  \u003ca href=\"https://github.com/desolid/desolid/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/desolid.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://app.netlify.com/sites/desolid/deploys\"\u003e\u003cimg src=\"https://api.netlify.com/api/v1/badges/e07ea82e-df51-4658-9897-64b95719bafd/deploy-status\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nOpen source, single file, self hosted, Backend as a service.\n\nDocumentation: [https://desolid.netlify.app/](https://desolid.netlify.app/)\n\nBlog: [https://dev.to/desolid](https://dev.to/desolid)\n\n## Features\n\n-   GraphQL API: CRUDs\n-   Authentication \u0026 Authorization: inline definition\n-   File storage: Local and S3 support\n-   Database agnostic: SQLite, MariaDB, PostgreSQL, MS SQL Server\n\n## Quick start\n\nLet's create an api for a blog service:\n\n1. Install NodeJS\n2. Create a desolid schema file: `schema.graphql`\n\n    ```graphql\n    extend enum UserGroup {\n        Editor\n        Author\n    }\n\n    extend type User\n        @model\n        @authorization(\n            CREATE: [Admin, Editor]\n            READ: [Admin, \"$user.id == {{id}}\"]\n            UPDATE: [Admin, \"$user.id == {{id}}\"]\n            DELETE: [Admin] #\n        ) {\n        avatar: File @upload(accept: [\"image/jpeg\"], size: { max: \"5\", min: \"0.1\" })\n    }\n\n    \"\"\"\n    This is a description of a Post\n    \"\"\"\n    type Post\n        @model\n        @authorization(\n            READ: [Admin, Editor, \"{{published}} || $user.id == {{author.id}}\"]\n            CREATE: [Admin, Editor, \"$user.group == 'Author' \u0026\u0026 !$input.published\"]\n            UPDATE: [Admin, Editor, \"$user.id == {{author.id}} \u0026\u0026 !$input.published\"]\n            DELETE: [Admin, Editor, \"!{{published}} \u0026\u0026 $user.id == {{author.id}}\"] #\n        ) {\n        id: ID!\n        createdAt: DateTime!\n        updatedAt: DateTime!\n        author: User!\n        title: String!\n        content: String!\n        published: Boolean!\n        categories: [Category]\n    }\n\n    \"\"\"\n    This is a description of a Category\n    \"\"\"\n    type Category\n        @model\n        @authorization(\n            CREATE: [Admin, Editor]\n            UPDATE: [Admin, Editor]\n            DELETE: [Admin, Editor] #\n        ) {\n        id: ID!\n        createdAt: DateTime!\n        updatedAt: DateTime!\n        name: String!\n        posts: [Post]\n    }\n    ```\n\n3. Run this command on your terminal\n\n    ```bash\n    npx desolid\n    ```\n\n    - Compiles the schema and creates CRUDs\n    - Creates and uses by default a SQLite database on the root `./database.sqlite`\n    - Stores files under `./upload` directory\n    - Logs errors and warnings on `./desolid.log` file\n    - Must output something like this:\n\n```bash\n____                         _   _       _\n|  _ \\    ___   ___    ___   | | (_)   __| |\n| | | |  / _ \\ / __|  / _ \\  | | | |  / _` |\n| |_| | |  __/ \\__ \\ | (_) | | | | | | (_| |\n|____/   \\___| |___/  \\___/  |_| |_|  \\__,_|\n\n🤖 Desolid: Single file self hosted backend as a service\n🔥 v0.2.11 running in \"win32\" on \"./home/user/app\"\n\n[2020-05-20 10:38:57]  INFO  Compiling Schema ...\n[2020-05-20 10:38:57]  WARN  Authentication Secret value didn't set into configuration file. the genrated JWT tokens will expire on every restart.\n[2020-05-20 10:38:57]  INFO  Connecting to database ...\n[2020-05-20 10:38:57]  INFO  Connected to \"sqlite://./databse.sqlite\"\n[2020-05-20 10:38:57]  INFO  Starting server ...\n[2020-05-20 10:38:57]  INFO  Server is running on http://localhost:3000\n[2020-05-20 10:38:57]  INFO  🚀 in 488ms\n```\n\n4. Open [http://localhost:3000/](http://localhost:3000/) on your browser.\n\n## Acknowledgement\n\nThis project is based On these cool stuffs:\n\n-   TypeScript: [https://github.com/Microsoft/TypeScript](https://github.com/Microsoft/TypeScript)\n-   Sequlize: [https://github.com/sequelize/sequelize](https://github.com/sequelize/sequelize)\n-   Nexus Schema: [https://github.com/graphql-nexus/schema](https://github.com/graphql-nexus/schema)\n-   GraphQL Yoga: [https://github.com/prisma-labs/graphql-yoga](https://github.com/prisma-labs/graphql-yoga)\n-   FlyDrive: [https://github.com/Slynova-Org/flydrive](https://github.com/Slynova-Org/flydrive)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesolid%2Fdesolid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesolid%2Fdesolid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesolid%2Fdesolid/lists"}