{"id":28859627,"url":"https://github.com/danielkhakbaz/code-snippets","last_synced_at":"2026-04-11T10:33:30.207Z","repository":{"id":295594075,"uuid":"990566894","full_name":"Danielkhakbaz/Code-Snippets","owner":"Danielkhakbaz","description":"Write and share your code snippets","archived":false,"fork":false,"pushed_at":"2025-05-26T10:39:47.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-20T04:01:50.077Z","etag":null,"topics":["eslint","framer-motion","git","husky","nextjs","prettier","shadcn-ui","tailwindcss"],"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/Danielkhakbaz.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-05-26T10:03:02.000Z","updated_at":"2025-05-26T10:41:17.000Z","dependencies_parsed_at":"2025-05-26T16:32:01.352Z","dependency_job_id":null,"html_url":"https://github.com/Danielkhakbaz/Code-Snippets","commit_stats":null,"previous_names":["danielkhakbaz/code-snippets"],"tags_count":0,"template":false,"template_full_name":"Danielkhakbaz/Nextjs-Template","purl":"pkg:github/Danielkhakbaz/Code-Snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielkhakbaz%2FCode-Snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielkhakbaz%2FCode-Snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielkhakbaz%2FCode-Snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielkhakbaz%2FCode-Snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danielkhakbaz","download_url":"https://codeload.github.com/Danielkhakbaz/Code-Snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielkhakbaz%2FCode-Snippets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260878244,"owners_count":23075956,"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":["eslint","framer-motion","git","husky","nextjs","prettier","shadcn-ui","tailwindcss"],"created_at":"2025-06-20T04:01:28.333Z","updated_at":"2025-12-30T20:06:45.788Z","avatar_url":"https://github.com/Danielkhakbaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Snippets\n\nA modern code snippets collection built with [Next.js](https://nextjs.org/) and TypeScript, designed to help developers quickly find and implement common code patterns and solutions. This project serves as a practical resource for front-end development patterns and best practices.\n\n## Project Overview\n\nThis code snippets project provides a curated collection of reusable code examples, components, and patterns that can be easily integrated into various web development projects. It's built with performance and developer experience in mind, featuring a clean interface for browsing and implementing code snippets.\n\n## Table of Contents\n\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Installation](#installation)\n- [Development Scripts](#development-scripts)\n- [Folder Structure](#folder-structure)\n\n## Features\n\n- **Code Organization**: Well-structured collection of code snippets by category and technology.\n- **Syntax Highlighting**: Beautiful code presentation with proper syntax highlighting.\n- **Responsive Design**: Fully responsive layout for all screen sizes.\n- **Dark/Light Mode**: Theme support for comfortable viewing in any environment.\n\n## Technologies Used\n\n- **[Next.js](https://nextjs.org/)** - React framework for server-side rendering and static website generation.\n- **[React](https://reactjs.org/)** - JavaScript library for building user interfaces.\n- **[TypeScript](https://www.typescriptlang.org/)** - JavaScript with static typing.\n- **[Tailwind CSS](https://tailwindcss.com/)** - Utility-first CSS framework for rapid UI development.\n- **[Prism.js](https://prismjs.com/)** - Lightweight syntax highlighting library.\n- **[React Syntax Highlighter](https://github.com/react-syntax-highlighter/react-syntax-highlighter)** - Syntax highlighting component for React.\n\n## Folder Structure\n\n```plaintext\ncode-snippets/\n├── app/                       # Source files for app pages\n│   ├── snippets/              # Snippets section (page for code snippets)\n│   ├── categories/            # Categories section (page for snippet categories)\n│   ├── search/                # Search section (page for searching snippets)\n│   ├── layout.tsx             # Root layout component\n│   └── page.tsx               # Main landing page\n│\n├── components/                # Reusable components\n│   ├── ui/                    # UI(shadCN) components\n│   ├── snippets/              # Snippet-related components\n│   └── layout/                # Layout components\n│\n├── lib/                       # Utility functions and configurations\n│   ├── snippets/              # Snippet data and utilities\n│   ├── utils/                 # Helper functions\n│   └── types/                 # TypeScript type definitions\n│\n├── styles/                    # Global styles and Tailwind configuration\n├── public/                    # Static assets\n└── content/                   # Snippet content and metadata\n```\n\n## Installation\n\nTo set up this project locally, follow these steps:\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/Danielkhakbaz/Code-Snippets\n   cd code-snippets\n   ```\n\n2. **Install dependencies**:\n\n   ```bash\n   yarn\n   ```\n\n3. **Run the development server**:\n\n   ```bash\n   yarn dev\n   ```\n\n4. **Open** [http://localhost:3000](http://localhost:3000) **in your browser to see the project**.\n\n## Development Scripts\n\nHere are some helpful scripts to assist in the development and maintenance of this project:\n\n- `dev`: Runs the app in development mode.\n- `build`: Compiles the app for production.\n- `start`: Starts the production server.\n- `lint`: Lints and fixes files using ESLint.\n- `fix`: Formats files using Prettier.\n- `knip`: Analyzes the project structure and provides suggestions for improvement.\n- `check-prettier`: Checks the code format without making changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkhakbaz%2Fcode-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielkhakbaz%2Fcode-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkhakbaz%2Fcode-snippets/lists"}