{"id":19528898,"url":"https://github.com/adonisjs/presets","last_synced_at":"2026-02-25T08:45:48.749Z","repository":{"id":213052842,"uuid":"732849762","full_name":"adonisjs/presets","owner":"adonisjs","description":"A collection of presets to configure AdonisJS packages","archived":false,"fork":false,"pushed_at":"2026-01-14T17:10:08.000Z","size":97,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"3.x","last_synced_at":"2026-01-14T21:13:37.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/adonisjs.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},"funding":{"github":"thetutlage"}},"created_at":"2023-12-18T02:02:44.000Z","updated_at":"2026-01-14T17:11:18.000Z","dependencies_parsed_at":"2024-01-19T04:30:59.648Z","dependency_job_id":"cac3224a-0104-4cbb-9d90-0f8db45d858a","html_url":"https://github.com/adonisjs/presets","commit_stats":null,"previous_names":["adonisjs/presets"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/adonisjs/presets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonisjs%2Fpresets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonisjs%2Fpresets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonisjs%2Fpresets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonisjs%2Fpresets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adonisjs","download_url":"https://codeload.github.com/adonisjs/presets/tar.gz/refs/heads/3.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonisjs%2Fpresets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2024-11-11T01:20:39.183Z","updated_at":"2026-01-16T12:14:47.181Z","avatar_url":"https://github.com/adonisjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/thetutlage"],"categories":[],"sub_categories":[],"readme":"# AdonisJS presets\n\nThese presets are a collection of functions you can execute to configure an AdonisJS package. This repo contains presets only for those packages that can be configured from multiple user interactions.\n\nFor example: When you create a new AdonisJS application, you can configure Lucid and also you can create a new app without Lucid and configure it later.\n\nSo, instead of duplicating the code in multiple places, we create re-usable presets and use them with individual packages and the [create-adonisjs](https://npm.im/create-adonisjs) initializer.\n\n\u003e [!NOTE]\n\u003e Presets do not trigger any prompts and exposes a coding interface.\n\n## Auth preset\n\nThe `auth` presets configures the `@adonisjs/auth` package. The package must be installed to run this preset.\n\n```ts\nimport { Kernel } from '@adonisjs/core/ace'\nimport { Application } from '@adonisjs/core/app'\nimport { presetAuth } from '@adonisjs/presets/auth'\nimport { Codemods } from '@adonisjs/core/ace/codemods'\n\n/**\n * Create application instance. Inside an Ace command, you\n * get access to it using `this.app` property.\n */\nconst app = new Application(baseURL, {\n  importer: () =\u003e {},\n})\n\n/**\n * Create Ace kernel instance to get CLI logger reference.\n * Inside an Ace command you can access it using this.logger\n * property.\n */\nconst cliLogger = new Kernel(app).ui.logger\n\n/**\n * Create codemods instance. Codemods are needed to modify\n * source files.\n */\nconst codemods = new Codemods(app, cliLogger)\n\n/**\n * Apply preset\n */\nawait presetAuth(codemods, app, {\n  guard: 'session',\n  userProvider: 'lucid',\n})\n```\n\n## Lucid preset\n\nThe `auth` presets configures the `@adonisjs/lucid` package. The package must be installed to run this preset.\n\n```ts\nimport { Kernel } from '@adonisjs/core/ace'\nimport { Application } from '@adonisjs/core/app'\nimport { presetLucid } from '@adonisjs/presets/lucid'\nimport { Codemods } from '@adonisjs/core/ace/codemods'\n\n/**\n * Create application instance. Inside an Ace command, you\n * get access to it using `this.app` property.\n */\nconst app = new Application(baseURL, {\n  importer: () =\u003e {},\n})\n\n/**\n * Create Ace kernel instance to get CLI logger reference.\n * Inside an Ace command you can access it using this.logger\n * property.\n */\nconst cliLogger = new Kernel(app).ui.logger\n\n/**\n * Create codemods instance. Codemods are needed to modify\n * source files.\n */\nconst codemods = new Codemods(app, cliLogger)\n\n/**\n * Apply preset\n */\nawait presetLucid(codemods, app, {\n  dialect: 'sqlite',\n  installPackages: true,\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonisjs%2Fpresets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadonisjs%2Fpresets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonisjs%2Fpresets/lists"}