{"id":18729258,"url":"https://github.com/postgresml/example-expressjs","last_synced_at":"2025-10-17T06:30:14.184Z","repository":{"id":228454658,"uuid":"773865843","full_name":"postgresml/example-expressjs","owner":"postgresml","description":"Example PostgresML application using Express JS","archived":false,"fork":false,"pushed_at":"2024-03-27T15:10:29.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T21:07:50.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/postgresml.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-03-18T14:35:38.000Z","updated_at":"2024-05-21T20:03:55.000Z","dependencies_parsed_at":"2024-11-07T14:40:39.761Z","dependency_job_id":null,"html_url":"https://github.com/postgresml/example-expressjs","commit_stats":null,"previous_names":["postgresml/example-expressjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/postgresml/example-expressjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgresml%2Fexample-expressjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgresml%2Fexample-expressjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgresml%2Fexample-expressjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgresml%2Fexample-expressjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postgresml","download_url":"https://codeload.github.com/postgresml/example-expressjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgresml%2Fexample-expressjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279294653,"owners_count":26141992,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07T14:26:20.378Z","updated_at":"2025-10-17T06:30:14.125Z","avatar_url":"https://github.com/postgresml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express JS PostgresML example\n\n## Overview\nThe purpose of this repository is to demonstrates how to quickly get up and running with machine learning in an Express application. \n\nThis application is a simple note taking application.  It analyzes all the notes taken in a day and performs summarization and sentiment analysis on them. \n\nAll our ML occurs in the database where the notes are stored.  This means just by connecting to the database we are able to train and deploy ML/AI models and have a production ready pipeline. \n\n## Setup\nThis example application requires a PostgreSQL database with the pgml and pgvector extension installed. The easiest way to do this is with a free database at [postgresml.org](https://postgresml.org/).\n\nClone this repository.  Once you have your PostgresML database, or local PostgreSQL with the extensions installed, create a .env file and add `DATABASE_URL=\u003cyour_db_url\u003e` replacing your_db_url. \n\nNext install all required node packages with `node install`.\n\n## Running the app\nStart the express server by running the following \n\n```bash\nnpm run devStart\n```\n\nThis will launch the application at [localhost:3000](http://localhost:3000/)\n\n## Usage\nIn a browser, navigate to localhost:3000.  Recored a note in the text area on the left and click submit.  Do this a couple times.  On the right click Analyze Day,  this will  produce a sentiment analysis score and a summarization of your day.  \n\n\u003cimg width=\"1327\" alt=\"Screenshot 2024-03-18 at 3 20 33 PM\" src=\"https://github.com/postgresml/example-expressjs/assets/39170265/8599e052-63b7-41f0-82de-7e743b48fa7c\"\u003e\n\n\n## Code\nWe can augment this code to perform all types of ML.  Checkout the [postgresML docs](https://postgresml.org/docs/api/sql-extension/) for a full list.\n\nIf you are unhappy with the quality of the results, rest assured, higher quality models are available. \n\nIn this example we directly interacted with the extension using PostgreSQL.  If you would prefer JS, see our [JS SDK](https://postgresml.org/docs/api/client-sdk/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgresml%2Fexample-expressjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostgresml%2Fexample-expressjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgresml%2Fexample-expressjs/lists"}