{"id":47301325,"url":"https://github.com/Olanetsoft/compact-by-example","last_synced_at":"2026-03-31T07:00:44.590Z","repository":{"id":321327954,"uuid":"1085349085","full_name":"Olanetsoft/compact-by-example","owner":"Olanetsoft","description":"Learn Midnight's Compact language through practical examples.","archived":false,"fork":false,"pushed_at":"2026-03-04T14:14:07.000Z","size":10955,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-04T21:33:28.569Z","etag":null,"topics":["compact","midnightntwrk","privacy","smart-contracts"],"latest_commit_sha":null,"homepage":"https://compact-by-example.org","language":"MDX","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/Olanetsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":null,"dco":null,"cla":null}},"created_at":"2025-10-28T23:19:32.000Z","updated_at":"2026-03-04T14:14:12.000Z","dependencies_parsed_at":"2025-10-29T04:23:55.332Z","dependency_job_id":"ce72caab-46f7-4ba0-ab7c-ccdeb2099aa3","html_url":"https://github.com/Olanetsoft/compact-by-example","commit_stats":null,"previous_names":["olanetsoft/compact-by-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Olanetsoft/compact-by-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-by-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-by-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-by-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-by-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olanetsoft","download_url":"https://codeload.github.com/Olanetsoft/compact-by-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-by-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31224248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T04:08:55.938Z","status":"ssl_error","status_checked_at":"2026-03-31T04:08:47.883Z","response_time":111,"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":["compact","midnightntwrk","privacy","smart-contracts"],"created_at":"2026-03-17T03:00:22.711Z","updated_at":"2026-03-31T07:00:44.583Z","avatar_url":"https://github.com/Olanetsoft.png","language":"MDX","funding_links":[],"categories":["Dormant Projects"],"sub_categories":["Community Created Tutorials"],"readme":"# Compact by Example\n\nLearn Midnight's Compact language through practical examples. This project is built on the Midnight Network.\n\nVisit [https://compact-by-example.org](https://compact-by-example.org). Inspired by [Solidity by Example](https://solidity-by-example.org/).\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)\n[![Made for Midnight](https://img.shields.io/badge/Made%20for-Midnight%20Network-0066FF.svg)](https://midnight.network)\n[![Documentation](https://img.shields.io/badge/docs-compact--by--example.org-3385FF.svg)](https://compact-by-example.org)\n[![Community](https://img.shields.io/badge/Discord-Join%20Us-7289DA.svg?logo=discord\u0026logoColor=white)](https://discord.com/invite/midnightnetwork)\n[![GitHub Stars](https://img.shields.io/github/stars/Olanetsoft/compact-by-example?style=social)](https://github.com/Olanetsoft/compact-by-example)\n\n## What is This?\n\nA community-driven collection of Compact smart contract examples for building privacy-preserving applications on Midnight Network. Each example is complete, tested, and ready to run.\n\n## Quick Start\n\n**Prerequisites:**\n\n- Node.js v18 or higher\n- npm or yarn\n\n**Installation:**\n\n```bash\n# Clone the repository\ngit clone https://github.com/Olanetsoft/compact-by-example.git\ncd compact-by-example\n\n# Install dependencies\nnpm install\n\n# Start the development server\nnpm run dev\n```\n\nVisit `http://localhost:3000` to view the documentation locally.\n\n## Project Structure\n\n```\ncompact-by-example/\n├── basics/              # Fundamentals\n│   ├── hello-world.mdx\n│   ├── first-app.mdx\n│   └── primitive-types.mdx\n├── .github/             # Issue templates, PR templates, CI/CD\n├── images/              # Assets and graphics\n├── logo/                # Brand assets\n├── docs.json            # Mintlify configuration\n└── index.mdx            # Homepage\n```\n\n## Content Categories\n\nHelp us build these sections:\n\n- **Privacy \u0026 ZK Proofs** - Zero-knowledge circuits and private state\n- **Smart Contracts** - Tokens, NFTs, and DAOs\n- **DeFi** - Decentralized finance protocols\n- **Advanced Patterns** - Complex contract architectures\n- **Security** - Best practices and common vulnerabilities\n\n## Contributing\n\nWe welcome contributions! Whether you're fixing a typo, improving documentation, or adding a new example.\n\n**How to contribute:**\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/your-example`)\n3. Make your changes (follow our [style guide](./CONTRIBUTING.md))\n4. Test your code (`npm run dev`)\n5. Commit with clear messages (`git commit -m 'Add: your feature'`)\n6. Push to your branch (`git push origin feature/your-example`)\n7. Open a Pull Request\n\nRead our [Contributing Guide](./CONTRIBUTING.md) for detailed instructions.\n\n## Community\n\n- [Discord](https://discord.com/invite/midnightnetwork) - Ask questions, share projects\n- [Twitter](https://twitter.com/MidnightNtwrk) - Latest updates\n- [YouTube](https://www.youtube.com/@MidnightNetwork) - Video tutorials\n\n## Resources\n\n- [Midnight Documentation](https://docs.midnight.network) - Official docs\n\n## License\n\nMIT - see [LICENSE](./LICENSE) file for details.\n\n---\n\nBuilt by the Midnight community • [Report Bug](https://github.com/Olanetsoft/compact-by-example/issues/new?template=bug_report.md) • [Request Feature](https://github.com/Olanetsoft/compact-by-example/issues/new?template=feature_request.md) • [Submit Example](https://github.com/Olanetsoft/compact-by-example/issues/new?template=new_example.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlanetsoft%2Fcompact-by-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOlanetsoft%2Fcompact-by-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlanetsoft%2Fcompact-by-example/lists"}