{"id":26227601,"url":"https://github.com/sipamungkas/hono-starter","last_synced_at":"2026-05-07T06:33:38.730Z","repository":{"id":281977431,"uuid":"947073133","full_name":"sipamungkas/hono-starter","owner":"sipamungkas","description":"Bun with hono starter template for reusable purpose. Using drizzle as orm and postgres as database","archived":false,"fork":false,"pushed_at":"2025-03-12T05:40:00.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T06:27:16.424Z","etag":null,"topics":["bakckend","bun","drizzle-kit","drizzle-orm","hono","honojs","postgres","rest-api","restful-api"],"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/sipamungkas.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-03-12T05:34:01.000Z","updated_at":"2025-03-12T05:41:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3abce250-9e27-413e-bc5c-1ce43094a592","html_url":"https://github.com/sipamungkas/hono-starter","commit_stats":null,"previous_names":["sipamungkas/hono-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sipamungkas/hono-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipamungkas%2Fhono-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipamungkas%2Fhono-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipamungkas%2Fhono-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipamungkas%2Fhono-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sipamungkas","download_url":"https://codeload.github.com/sipamungkas/hono-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipamungkas%2Fhono-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259522458,"owners_count":22870469,"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":["bakckend","bun","drizzle-kit","drizzle-orm","hono","honojs","postgres","rest-api","restful-api"],"created_at":"2025-03-12T20:18:04.122Z","updated_at":"2026-05-07T06:33:33.703Z","avatar_url":"https://github.com/sipamungkas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bun with HONO starter template\n\nThis is a personal starter template for HONO with drizzle as orm. In this project I will use postgres for the database.\n\n## Project Structure\n\n```plaintext\nsrc/\n├── config/\n│   ├── database.ts        # Drizzle DB connection setup\n│   └── env.ts             # Environment variables with validation\n├── controllers/\n│   └── auth.controller.ts # Handles HTTP requests/responses\n├── models/\n│   └── user.model.ts      # Drizzle schema definitions\n├── repositories/\n│   └── user.repository.ts # Database access logic\n├── services/\n│   └── auth.service.ts    # Business logic\n├── middleware/\n│   ├── error.middleware.ts\n│   └── auth.middleware.ts # JWT verification etc.\n├── utils/\n│   ├── password.ts        # Password hashing\n│   └── token.ts           # JWT generation/validation\n├── types/\n│   └── index.ts           # TypeScript interfaces/types\n├── routes/\n│   └── auth.route.ts      # Route definitions\n└── index.ts               # Application entry point\n```\n\n## Packages\n\nHere’s a table describing each package listed in your `package.json`, along with their uses:\n\n| Package Name          | Description                                                                                                  | Use                                                                                          |\n| --------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |\n| `@hono/zod-validator` | A validation library that integrates Zod with Hono, allowing for schema-based validation of requests.        | Used to validate incoming request data against defined schemas, ensuring data integrity.     |\n| `bcryptjs`            | A library to help hash passwords using the bcrypt algorithm, providing security for user credentials.        | Used for securely hashing and comparing passwords during user authentication.                |\n| `drizzle-orm`         | An Object-Relational Mapping (ORM) library for TypeScript and JavaScript, simplifying database interactions. | Used to define models and interact with the PostgreSQL database in a type-safe manner.       |\n| `hono`                | A lightweight web framework for building APIs and web applications, designed for performance.                | Used as the main framework for handling HTTP requests and routing in the application.        |\n| `jose`                | A library for creating and verifying JSON Web Tokens (JWTs), providing secure token-based authentication.    | Used for generating and validating JWTs for user sessions and API security.                  |\n| `pg`                  | A PostgreSQL client for Node.js, allowing for database connections and queries.                              | Used to connect to and interact with the PostgreSQL database directly.                       |\n| `postgres`            | A modern PostgreSQL client for Node.js, providing a simple and efficient way to interact with PostgreSQL.    | Used as an alternative to the `pg` package for database operations, focusing on performance. |\n| `zod`                 | A TypeScript-first schema declaration and validation library, allowing for type-safe data validation.        | Used to define and validate data schemas, ensuring that data conforms to expected types.     |\n\nThis table summarizes the purpose and functionality of each package in your project.\n\n## Run Development\n\nTo install dependencies:\n\n```sh\nbun install\n```\n\nTo run:\n\n```sh\nbun run dev\n```\n\nopen http://localhost:3000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipamungkas%2Fhono-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsipamungkas%2Fhono-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipamungkas%2Fhono-starter/lists"}