{"id":30602266,"url":"https://github.com/vesal-j/pglite-note","last_synced_at":"2026-03-09T13:43:49.892Z","repository":{"id":309931790,"uuid":"1037940958","full_name":"Vesal-J/pglite-note","owner":"Vesal-J","description":"A modern note-taking app with rich text editing, built on Next.js and PGLite for seamless local data persistence","archived":false,"fork":false,"pushed_at":"2025-08-14T15:38:32.000Z","size":604,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-30T00:46:32.465Z","etag":null,"topics":["database","frontend","indexeddb","notebook","notes","pglite","postgresql","typescript"],"latest_commit_sha":null,"homepage":"https://pglite-note.vercel.app/","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/Vesal-J.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-08-14T11:10:04.000Z","updated_at":"2025-08-27T08:23:00.000Z","dependencies_parsed_at":"2025-08-14T17:31:02.374Z","dependency_job_id":"c4069891-fa2c-4fe4-9417-42228341fc06","html_url":"https://github.com/Vesal-J/pglite-note","commit_stats":null,"previous_names":["vesal-j/pglite-note"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Vesal-J/pglite-note","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vesal-J%2Fpglite-note","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vesal-J%2Fpglite-note/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vesal-J%2Fpglite-note/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vesal-J%2Fpglite-note/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vesal-J","download_url":"https://codeload.github.com/Vesal-J/pglite-note/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vesal-J%2Fpglite-note/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"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":["database","frontend","indexeddb","notebook","notes","pglite","postgresql","typescript"],"created_at":"2025-08-30T00:31:21.662Z","updated_at":"2026-03-09T13:43:49.856Z","avatar_url":"https://github.com/Vesal-J.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PGLite Note 📝\n\nA modern, feature-rich note-taking application built with Next.js, [PGLite](https://pglite.dev/) (in-browser PostgreSQL), and the Yoopta rich text editor. Store your notes locally in the browser with full database capabilities and a powerful editing experience.\n\n![PGLite Note App Screenshot](docs/image.png)\n\n## ✨ Features\n\n- **Rich Text Editor**: Powered by Yoopta editor with support for:\n  - Headings, paragraphs, and text formatting\n  - Lists (bulleted, numbered, and todo)\n  - Blockquotes and callouts\n  - Code blocks with syntax highlighting\n  - Tables and dividers\n  - Images, videos, and file attachments\n  - Links and embeds\n  - Accordion collapsible sections\n  - Bold, italic, underline, strikethrough, and highlight text\n\n- **Local Database**: Uses PGLite for in-browser PostgreSQL database\n  - No server required - everything runs locally\n  - Persistent storage across browser sessions\n  - Full SQL capabilities\n\n- **Modern UI**: Clean, responsive interface built with:\n  - Next.js 15 with React 19\n  - Tailwind CSS for styling\n  - TypeScript for type safety\n  - Responsive design for all devices\n\n- **Note Management**:\n  - Create, edit, and delete notes\n  - Inline title editing\n  - Auto-save functionality\n  - Sidebar navigation\n  - Loading states and error handling\n\n## 🛠️ Tech Stack\n\n- **Frontend Framework**: Next.js 15 with React 19\n- **Database**: [PGLite](https://github.com/ept/pglite) (in-browser PostgreSQL)\n- **Rich Text Editor**: Yoopta Editor with Slate.js\n- **Styling**: Tailwind CSS 4\n- **Language**: TypeScript\n- **Package Manager**: Bun (recommended), npm, or pnpm\n- **Build Tool**: Next.js with Turbopack\n\n## 📁 Project Structure\n\n```\npglite-note/\n├── src/\n│   ├── components/          # React components\n│   │   ├── FullSetupEditor.tsx  # Rich text editor setup\n│   │   └── Sidebar.tsx          # Note navigation sidebar\n│   ├── config/              # Configuration files\n│   │   ├── initValue.ts     # Editor initial values\n│   │   └── plugins.ts       # Yoopta editor plugins\n│   ├── pages/               # Next.js pages\n│   │   ├── _app.tsx         # App wrapper\n│   │   ├── _document.tsx    # Document wrapper\n│   │   └── index.tsx        # Main editor page\n│   ├── services/            # Service layer\n│   ├── styles/              # Global styles\n│   ├── types/               # TypeScript type definitions\n│   │   ├── db.ts            # Database types\n│   │   └── note.ts          # Note interface\n│   └── utils/               # Utility functions\n│       ├── database.ts      # Database operations\n│       └── editor.ts        # Editor utilities\n├── public/                  # Static assets\n├── package.json             # Dependencies and scripts\n└── README.md               # This file\n```\n\n## 🗄️ Database Schema\n\nThe application uses [PGLite](https://github.com/ept/pglite) with a simple but effective database schema:\n\n```sql\nCREATE TABLE notes (\n  id SERIAL PRIMARY KEY,\n  title TEXT NOT NULL,\n  content TEXT,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n## 🔧 Configuration\n\n### Editor Plugins\n\nThe Yoopta editor is configured with a comprehensive set of plugins in `src/config/plugins.ts`:\n\n- **Text Elements**: Paragraphs, headings, blockquotes\n- **Lists**: Bulleted, numbered, and todo lists\n- **Media**: Images, videos, file attachments\n- **Interactive**: Tables, accordions, callouts\n- **Formatting**: Bold, italic, underline, code, links\n\n### Database Configuration\n\n[PGLite](https://github.com/ept/pglite) is configured to use IndexedDB for persistent storage:\n\n```typescript\nexport const db = new PGlite(\"idb://my-pgdata\");\n```\n\nPGLite provides a full PostgreSQL-compatible database that runs entirely in the browser, offering:\n- Full SQL support with PostgreSQL syntax\n- ACID transactions\n- Persistent storage using IndexedDB\n- No server setup required\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvesal-j%2Fpglite-note","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvesal-j%2Fpglite-note","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvesal-j%2Fpglite-note/lists"}