[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10294":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":37,"discoverSource":38},10294,"kemal","kemalcr\u002Fkemal","kemalcr","Fast, Effective, Simple Web Framework","https:\u002F\u002Fkemalcr.com",null,"Crystal",3881,196,72,1,0,2,9,60.78,"MIT License",false,"master",true,[25,26,27,28,29,5,30,31,32,33],"api","crystal","efficient","fast","json","rest","simple","web-framework","websocket","2026-06-12 04:00:49","[![Kemal](https:\u002F\u002Favatars3.githubusercontent.com\u002Fu\u002F15321198?v=3&s=200)](http:\u002F\u002Fkemalcr.com)\n\n# Kemal\n\nKemal is the Fast, Effective, Simple Web Framework for Crystal. It's perfect for building Web Applications and APIs with minimal code.\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fkemalcr\u002Fkemal\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fkemalcr\u002Fkemal\u002Factions\u002Fworkflows\u002Fci.yml)\n\n## Why Kemal?\n\n- 🚀 **Lightning Fast**: Built on Crystal, known for C-like performance\n- 💡 **Super Simple**: Minimal code needed to get started\n- 🛠 **Feature Rich**: Everything you need for modern web development\n- 🔧 **Flexible**: Easy to extend with middleware support\n\n## Quick Start\n\n1. First, make sure you have [Crystal installed](https:\u002F\u002Fcrystal-lang.org\u002Finstall\u002F).\n\n2. Create a new Crystal application and step into it:\n\n```bash\ncrystal init app my-kemal-app\ncd my-kemal-app\n```\n\n3. Add Kemal to your app's `shard.yml`:\n\n```yaml\ndependencies:\n  kemal:\n    github: kemalcr\u002Fkemal\n```\n\n4. Replace the contents of `src\u002Fmy_kemal_app.cr` with your first Kemal app:\n\n```crystal\nrequire \"kemal\"\n\n# Basic route - responds to GET \"http:\u002F\u002Flocalhost:3000\u002F\"\nget \"\u002F\" do\n  \"Hello World!\"\nend\n\n# JSON API example\nget \"\u002Fapi\u002Fstatus\" do |env|\n  env.response.content_type = \"application\u002Fjson\"\n  {\"status\": \"ok\"}.to_json\nend\n\n# WebSocket support\nws \"\u002Fchat\" do |socket|\n  socket.send \"Hello from Kemal WebSocket!\"\nend\n\nKemal.run\n```\n\n5. Install dependencies and run your application:\n\n```bash\nshards install\ncrystal run src\u002Fmy_kemal_app.cr\n```\n\n6. Visit [http:\u002F\u002Flocalhost:3000](http:\u002F\u002Flocalhost:3000) - That's it! 🎉\n\n## Key Features\n\n- 🚀 **High-performance by default**: Built on Crystal with a thin abstraction layer so you can serve a large number of requests with low latency and low memory footprint.\n- 🌐 **Full REST & HTTP support**: Handle all HTTP verbs (GET, POST, PUT, PATCH, DELETE, etc.) with a straightforward routing DSL.\n- 🔌 **WebSocket & real-time**: First-class WebSocket support for building chats, dashboards and other real-time experiences.\n- 📦 **JSON-first APIs**: Native JSON handling makes building JSON APIs and microservices feel natural.\n- 🗄️ **Static assets made easy**: Serve static files (assets, uploads, SPA bundles) efficiently from the same application.\n- 📝 **Template engine included**: Built-in ECR template engine for server‑rendered HTML when you need it.\n- 🔒 **Composable middleware**: Flexible middleware system to add logging, auth, rate limiting, metrics and more.\n- 🎯 **Ergonomic request\u002Fresponse API**: Simple access to params, headers, cookies and bodies via a clear context object.\n- 🍪 **Session management**: Easy session handling with [kemal-session](https:\u002F\u002Fgithub.com\u002Fkemalcr\u002Fkemal-session), suitable for production apps.\n\n## Philosophy\n\nKemal aims to be a simple, fast and reliable foundation for building production-grade web applications and APIs in Crystal.\n\n- **Simple core, powerful building blocks**: The core is intentionally simple and easy to reason about. Most power comes from Crystal itself and from middleware, not from hidden magic.\n- **Performance as a baseline, not a feature**: Crystal's native speed means high performance is the default. Kemal keeps abstractions thin so you stay close to the metal when you need to.\n- **Minimal assumptions, maximum flexibility**: Kemal does not force a specific ORM, template engine, or project layout. You are free to choose the tools that fit your application and your team.\n- **Batteries within reason**: Kemal ships with the essentials (routing, middleware, templates, static files, request\u002Fresponse helpers) while keeping advanced concerns in separate shards you can opt into as your app grows.\n\nKemal is designed to feel familiar if you come from popular web frameworks, while embracing Crystal's strengths and keeping your application code straightforward, maintainable, and ready for production.\n\n## Learning Resources\n\n- 📚 [Official Documentation](http:\u002F\u002Fkemalcr.com)\n- 💻 [Example Applications](https:\u002F\u002Fgithub.com\u002Fkemalcr\u002Fkemal\u002Ftree\u002Fmaster\u002Fexamples)\n- 🚀 [Kemal Guide](http:\u002F\u002Fkemalcr.com\u002Fguide\u002F)\n- 💻 [Kemal By Example](https:\u002F\u002Fgithub.com\u002Fsdogruyol\u002Fkemal-by-example)\n- 💬 [Community Chat](https:\u002F\u002Fdiscord.gg\u002FprSVAZJEpz)\n\n\n## Contributing\n\nWe love contributions! Please read our [Contributing Guide](CONTRIBUTING.md) to get started.\n\n## Acknowledgments\n\nSpecial thanks to Manas for their work on [Frank](https:\u002F\u002Fgithub.com\u002Fmanastech\u002Ffrank).\n\n## License\n\nKemal is released under the MIT License.\n","Kemal 是一个快速、高效且简单的 Crystal 语言 Web 框架，适用于构建 Web 应用程序和 API。其核心功能包括支持全 REST 和 HTTP 动词处理、WebSocket 实时通信、JSON 处理以及静态资源管理等。Kemal 基于高性能的 Crystal 语言开发，提供低延迟和小内存占用的服务能力，同时通过灵活的中间件系统支持日志记录、身份验证等功能扩展。适合需要高效率和简洁代码实现的现代 Web 开发场景，如构建聊天应用、仪表板和其他实时交互体验项目。","2026-06-11 03:27:38","top_topic"]