{"id":30078747,"url":"https://github.com/allan-alb/nlwagents-server","last_synced_at":"2026-04-13T20:32:03.145Z","repository":{"id":304834715,"uuid":"1017021990","full_name":"allan-alb/nlwagents-server","owner":"allan-alb","description":"A Node.js Fastify-based API for an AI-powered audio Q\u0026A project that transcribes audios, stores vector data in PostgreSQL (Drizzle ORM), and extracts answers to user questions.","archived":false,"fork":false,"pushed_at":"2025-08-07T03:02:18.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T05:17:37.302Z","etag":null,"topics":["ai","audio-transcription","drizzle-orm","fastify","llm-integration","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allan-alb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-07-09T22:49:29.000Z","updated_at":"2025-08-07T03:02:21.000Z","dependencies_parsed_at":"2025-07-16T09:14:02.451Z","dependency_job_id":"b29d702b-de7f-4989-939c-2488b794d0ea","html_url":"https://github.com/allan-alb/nlwagents-server","commit_stats":null,"previous_names":["allan-alb/nlwagents-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allan-alb/nlwagents-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allan-alb%2Fnlwagents-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allan-alb%2Fnlwagents-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allan-alb%2Fnlwagents-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allan-alb%2Fnlwagents-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allan-alb","download_url":"https://codeload.github.com/allan-alb/nlwagents-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allan-alb%2Fnlwagents-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["ai","audio-transcription","drizzle-orm","fastify","llm-integration","nodejs"],"created_at":"2025-08-08T18:01:05.021Z","updated_at":"2026-04-13T20:32:03.130Z","avatar_url":"https://github.com/allan-alb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLW Agents — AI-powered Audio Q\u0026A Application\n\nNLW Agents is an innovative Q\u0026A backend application that allows users to send audio messages, which are automatically transcribed, stored in a vector database, and later used to generate answers for user questions. This enables users to build a knowledge base from their own voice notes and retrieve information through natural language queries.\n\n## What Does the Application Do?\n\n- **Audio Upload \u0026 Transcription:** Users can upload audio files. The application transcribes the audio into text using advanced speech-to-text technology.\n- **Vector Database Storage:** Transcriptions are embedded and stored in a vector database, enabling efficient semantic search and retrieval.\n- **Question Answering:** Users can ask questions at any time. The system searches the vector database for relevant information and generates answers using state-of-the-art language models.\n\nThis workflow makes it easy to capture, organize, and query knowledge using just your voice.\n\n## Tech Stack\n\n- **Node.js** + **TypeScript**\n- **Fastify** — API server\n- **Drizzle ORM** — Database ORM\n- **PostgreSQL** — Relational database\n- **Zod** — Schema validation\n- **Biome** — Code formatting/linting\n- **Vector Database** — For semantic search (PostgreSQL)\n- **Speech-to-Text Service** — For audio transcription (Gemini)\n- **LLM Integration** — For answer generation (Gemini)\n\n## Project Structure\n\n- `src/server.ts` — Main server entry point\n- `src/http/routes/` — API route handlers (audio upload, question creation, etc.)\n- `src/db/schema/` — Database schema definitions\n- `src/db/migrations/` — Database migrations\n- `src/db/seed.ts` — Database seeding script\n- `drizzle.config.ts` — Drizzle ORM configuration\n\n## Setup Instructions\n\n\u003e **Note**: Make sure you have **Node.js v22.16.0 or higher** installed.\n\n1. **Clone the repository**\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n3. **Configure environment variables:**\n   - Copy `.env.example` to `.env` and fill in the required values (e.g., `PORT`, `DATABASE_URL`, vector DB/API keys, transcription/LLM API keys).\n4. **Run database migrations:**\n   ```bash\n   npx drizzle-kit migrate:push\n   ```\n5. **(Optional) Seed the database:**\n   ```bash\n   npm run db:seed\n   ```\n6. **Start the development server:**\n   ```bash\n   npm run dev\n   ```\n\n## Scripts\n\n- `npm run dev` — Start server in development mode\n- `npm start` — Start server in production mode\n- `npm run db:seed` — Seed the database\n\n## Configuration\n\n- **Database:** Set `DATABASE_URL` in your `.env` file for PostgreSQL connection.\n- **Vector DB \u0026 APIs:** Provide credentials for your vector database and any external APIs (speech-to-text, LLM) in `.env`.\n- **Port:** Set the `PORT` variable in `.env` to specify the server port.\n\n## Front end\n\n- [allan-alb/nlwagents-web](https://github.com/allan-alb/nlwagents-web)\n\n---\n\nDeveloped during a Rocketseat event 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallan-alb%2Fnlwagents-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallan-alb%2Fnlwagents-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallan-alb%2Fnlwagents-server/lists"}