{"id":19905180,"url":"https://github.com/ossphilippines/idea","last_synced_at":"2025-05-03T01:33:43.485Z","repository":{"id":233110908,"uuid":"785987563","full_name":"OSSPhilippines/idea","owner":"OSSPhilippines","description":"It all starts with an idea...","archived":false,"fork":false,"pushed_at":"2024-06-10T15:22:38.000Z","size":379,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-08T02:03:20.721Z","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/OSSPhilippines.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":"2024-04-13T04:55:41.000Z","updated_at":"2024-09-24T08:27:52.000Z","dependencies_parsed_at":"2024-04-14T00:25:25.521Z","dependency_job_id":"98b905fc-0093-4cde-b308-03a894a350c7","html_url":"https://github.com/OSSPhilippines/idea","commit_stats":null,"previous_names":["ossphilippines/idea"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSPhilippines%2Fidea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSPhilippines%2Fidea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSPhilippines%2Fidea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSPhilippines%2Fidea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSSPhilippines","download_url":"https://codeload.github.com/OSSPhilippines/idea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224346428,"owners_count":17296214,"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":[],"created_at":"2024-11-12T20:31:53.841Z","updated_at":"2024-11-12T20:32:40.486Z","avatar_url":"https://github.com/OSSPhilippines.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e💡 Idea\u003c/h1\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@ossph/idea\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@ossph/idea.svg?style=flat\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/commits/main/\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/OSSPhilippines/idea\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/OSSPhilippines/idea/test.yml\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/blob/main/docs/contribute.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/blob/main/docs/schema.md\"\u003eForm an Idea\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/blob/main/docs/transform.md\"\u003eTransform an Idea\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=ossph.idea-langugage\"\u003eCode Extension\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/OSSPhilippines/idea/blob/main/docs/plugins.md\"\u003ePlugins\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003chr /\u003e\n\u003c/div\u003e\n\n\u003e A meta language to express and transform your ideas to reality. \n\nThe purpose of this language is to streamline and automate parts of \nsoftware development that follow a common pattern and therefore can be \nrendered. Some example code that can be generated using `.idea` files \nincluding the following.\n\n - Database calls with any ORM\n - API, REST, or GraphQL endpoints\n - React components\n - TypeScript type safety\n - Admin pages\n - more than 70% of the code you produce\n\n\u003e It all starts with an idea...\n\n## Install\n\n```bash\n$ npm i -D @ossph/idea\n```\n\n## How It Works\n\n 1. Describe your idea in a flexible schema format `my.idea`.\n 2. Install plugins to transform your idea to code `make-database`.\n 3. Generate your platform using the Idea commandline `$ idea`.\n\n## Benefits\n\nThis tool is particularly useful for startups and companies looking \nto build scalable and flexible software solutions quickly. \n\n - **Speed and Efficiency**: Dramatically speeds up development time. \n   What might normally take weeks can be done in minutes, reducing the \n   cost and time to market.\n - **Customization and Flexibility**: Ideas can be highly customized. \n   This means it can be adapted for a wide range of applications, from \n   simple to complex data structures.\n - **Scalability**: As your needs grow, the system is designed to \n   scale seamlessly. You can add more ideas or adjust existing ones \n   with minimal effort.\n - **Error Reduction**: By automating the code generation, we reduce \n   the chance of human error, ensuring more reliable and stable \n   software.\n - **Modular**: Use ideas from any vendor or source out your own ideas.\n - **Pluggable**: Reduce development time significantly by using \n   existing plugins or publish your own. \n - **Closer to AI**: Idea files are perfect training data for AI \n   projects.\n\n## Usage\n\nThis is an example idea schema.\n\n```js\n//my.idea\nmodel Product @label(\"Product\" \"Products\") @suggested(\"[name]\") @icon(\"gift\") {\n  name        String   @label(\"Name\") \n                       @field.text\n                       @is.required(\"Name is required\")\n                       @list.detail @view.text\n\n  image       String   @label(\"Image\") \n                       @field.image\n                       @list.image({ width 20 height 20 }) \n                       @view.image({ width 100 height 100 })\n\n  description String   @label(\"Description\") \n                       @field.textarea\n                       @list.none @view.text\n  \n  currency    String   @label(\"Currency\")\n                       @filterable @default(\"USD\")\n                       @field.currency\n                       @is.ceq(3 \"Should be valid currency prefix\")\n                       @list.text @view.text\n  \n  srp         Float?   @label(\"SRP\")\n                       @min(0.00) @step(0.01)\n                       @field.number({ min 0.00 step 0.01 })\n                       @list.price @view.price\n  \n  price       Float?   @label(\"Offer Price\")\n                       @min(0.00) @step(0.01)\n                       @field.number({ min 0.00 step 0.01 })\n                       @list.price @view.price\n}\n```\n\n\u003e \"Ideas are worthless without execution\" - Many People\n\nTo transform an idea, you need to plugin a transformer like the \nfollowing example.\n\n```js\n//my.idea\nplugin \"idea-ts\" {\n  ts true\n  output \"./modules/[name]/types\"\n}\n// ... your idea ...\n// model Product ...\n```\n\nYou can use other ideas, just import them like the following example.\n\n```js\n//my.idea\nuse \"./another.idea\"\n// ... your idea ...\n// model Product ...\n```\n\nTo execute an idea, you just need to run the following command.\n\n```bash\n$ npx idea -i my.idea\n```\n\nLearn more:\n\n - [Form an Idea](//github.com/OSSPhilippines/idea/blob/main/docs/schema.md)\n - [Transform an Idea](//github.com/OSSPhilippines/idea/blob/main/docs/transform.md)\n - [Plugins](//github.com/OSSPhilippines/idea/blob/main/docs/plugins.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossphilippines%2Fidea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossphilippines%2Fidea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossphilippines%2Fidea/lists"}