{"id":51225920,"url":"https://github.com/trystan2k/favoritable-old","last_synced_at":"2026-06-28T11:30:41.832Z","repository":{"id":279098225,"uuid":"935728242","full_name":"trystan2k/favoritable-old","owner":"trystan2k","description":"A simple and efficient system for storing, organizing, and accessing personal bookmarks anytime, anywhere.","archived":false,"fork":false,"pushed_at":"2026-06-04T13:27:00.000Z","size":2247,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-06T08:12:33.380Z","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/trystan2k.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-02-19T23:21:42.000Z","updated_at":"2026-06-04T14:27:56.000Z","dependencies_parsed_at":"2025-02-23T19:24:36.339Z","dependency_job_id":"b61b8768-f60d-494b-b8ea-5a19367e3dbd","html_url":"https://github.com/trystan2k/favoritable-old","commit_stats":null,"previous_names":["trystan2k/favoritable"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trystan2k/favoritable-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Ffavoritable-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Ffavoritable-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Ffavoritable-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Ffavoritable-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trystan2k","download_url":"https://codeload.github.com/trystan2k/favoritable-old/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Ffavoritable-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34887328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":"2026-06-28T11:30:40.793Z","updated_at":"2026-06-28T11:30:41.821Z","avatar_url":"https://github.com/trystan2k.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Favoritable\n\nA modern bookmark management application built with TypeScript, featuring a Fastify API backend and React frontend, powered by OAuth authentication and comprehensive bookmark organization tools.\n\n## Architecture\n\nThis monorepo contains:\n\n### Apps and Packages\n\n- `apps/api`: Fastify backend API with Drizzle ORM, Better Auth, and comprehensive testing\n- `apps/frontend`: React frontend with TanStack Router and Rsbuild\n- `packages/development/test-config`: Vitest configuration for testing\n- `packages/development/typescript-config`: TypeScript configurations\n\n## Features\n\n### Authentication\n\n- **OAuth Integration**: Support for 5 OAuth providers (GitHub, Google, Facebook, Twitter/X, Apple)\n- **Email/Password**: Traditional authentication with secure session management\n- **JWT Support**: Apple OAuth with JWT client secret generation\n- **PKCE Security**: Enhanced OAuth security with Proof Key for Code Exchange\n\n### Bookmark Management\n\n- Create, read, update, and delete bookmarks\n- Label-based organization system\n- URL metadata extraction and validation\n- Advanced search and filtering capabilities\n\n### Technology Stack\n\n- **Backend**: Fastify, Drizzle ORM, Better Auth, Zod validation\n- **Frontend**: React, TanStack Router, Rsbuild\n- **Database**: SQLite with libSQL (Turso) support\n- **Testing**: Vitest with comprehensive test coverage\n- **Quality Tools**: Oxlint for linting, Oxfmt for formatting, Knip for unused code detection\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+\n- pnpm 8+\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone \u003crepository-url\u003e\ncd favoritable\n\n# Install dependencies\npnpm install\n\n# Set up environment variables\ncp apps/api/.env.example apps/api/.env\n# Configure your OAuth providers and database settings\n\n# Push database schema\npnpm --filter @favoritable/api db:push\n\n# Start development servers\npnpm dev\n```\n\n### OAuth Provider Setup\n\nThe application supports five OAuth providers. See `apps/api/README.md` for detailed setup instructions:\n\n- **GitHub**: Developer Settings → OAuth Apps\n- **Google**: Cloud Console → OAuth 2.0 Client IDs\n- **Facebook**: Meta for Developers → Facebook Login\n- **Twitter/X**: Developer Portal → OAuth 2.0 App\n- **Apple**: Developer Portal → Sign in with Apple (requires JWT configuration)\n\nEach provider requires registration and callback URL configuration pointing to your API endpoints.\n\n## Development\n\n### Available Scripts\n\n```bash\n# Development\npnpm dev              # Start all development servers\npnpm dev:api          # Start API server only\npnpm dev:frontend     # Start frontend server only\n\n# Building\npnpm build            # Build all packages\npnpm build:api        # Build API only\npnpm build:frontend   # Build frontend only\n\n# Quality Assurance\npnpm typecheck        # Type checking across all packages\npnpm lint             # Lint all packages with Oxlint\npnpm format           # Format code with Oxfmt\npnpm format:check     # Check formatting without writing changes\npnpm knip             # Detect unused code\npnpm test             # Run all tests\npnpm test:coverage    # Run tests with coverage reports\npnpm complete-check   # Run all QA checks (typecheck + lint + knip + test + build)\n\n# Database\npnpm --filter @favoritable/api db:push     # Push schema to database\npnpm --filter @favoritable/api db:generate # Generate migration files\npnpm --filter @favoritable/api db:health   # Test database connection\n```\n\n### API Endpoints\n\n#### Authentication\n\n- `POST /api/auth/sign-up` - Create new user account\n- `POST /api/auth/sign-in` - Email/password authentication\n- `GET /api/auth/session` - Get current user session\n- `POST /api/auth/sign-out` - Sign out current user\n- `GET /api/auth/{provider}` - Initiate OAuth flow (github, google, facebook, twitter, apple)\n- `GET /api/auth/callback/{provider}` - OAuth callback endpoints\n\n#### Bookmarks\n\n- `GET /api/bookmarks` - List user bookmarks with filtering\n- `POST /api/bookmarks` - Create new bookmark\n- `GET /api/bookmarks/:id` - Get bookmark details\n- `PUT /api/bookmarks/:id` - Update bookmark\n- `DELETE /api/bookmarks/:id` - Delete bookmark\n\n#### Labels\n\n- `GET /api/labels` - List user labels\n- `POST /api/labels` - Create new label\n- `PUT /api/labels/:id` - Update label\n- `DELETE /api/labels/:id` - Delete label\n\n### Testing\n\nThe project includes comprehensive test coverage:\n\n- **Unit Tests**: Core business logic and utilities\n- **Integration Tests**: Database operations and API endpoints\n- **Error Handling Tests**: Authentication and validation errors\n- **OAuth Configuration Tests**: Provider setup verification\n\nRun tests with detailed coverage reports:\n\n```bash\npnpm test:coverage\n```\n\n### Code Quality\n\nAutomated code quality enforcement using:\n\n- **Oxlint**: Fast linting for JavaScript and TypeScript\n- **Oxfmt**: Fast formatting with automatic import sorting\n- **TypeScript**: Strict type checking across all packages\n- **Knip**: Dead code elimination and unused dependency detection\n- **Vitest**: Fast testing with comprehensive coverage reporting\n\nPre-commit hooks ensure all code meets quality standards before commits.\n\n## Deployment\n\n### Environment Configuration\n\nRequired environment variables (see `.env.example`):\n\n```bash\n# Database\nDATABASE_TYPE=local|turso\nLOCAL_DATABASE_URL=file:./dev.db\nTURSO_DATABASE_URL=libsql://your-database.turso.io\nTURSO_AUTH_TOKEN=your-auth-token\n\n# OAuth Providers (configure as needed)\nGITHUB_CLIENT_ID=your-github-client-id\nGITHUB_CLIENT_SECRET=your-github-client-secret\nGOOGLE_CLIENT_ID=your-google-client-id\nGOOGLE_CLIENT_SECRET=your-google-client-secret\n# ... (see .env.example for all providers)\n\n# Security\nBETTER_AUTH_SECRET=your-secret-key\nBETTER_AUTH_URL=https://your-domain.com\n```\n\n### Production Deployment\n\n1. **Database**: Set up Turso database and configure connection\n2. **OAuth Apps**: Register applications with each OAuth provider\n3. **Environment**: Configure all required environment variables\n4. **Build**: Run `pnpm build` to create production builds\n5. **Deploy**: Deploy API and frontend to your hosting platform\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes following the established code style\n4. Run quality checks (`pnpm complete-check`)\n5. Commit your changes (`git commit -m 'Add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrystan2k%2Ffavoritable-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrystan2k%2Ffavoritable-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrystan2k%2Ffavoritable-old/lists"}