The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio 🚀
Go to file
2016-07-23 13:25:13 +03:00
config Set the default hostname to "0.0.0.0" from "127.0.0.1" - as golang's net.Listener does by default 2016-07-21 00:03:36 +03:00
context 🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md 2016-07-15 20:50:36 +03:00
iris Iris run: (rizla) disable the banner on each reload, fix two-times reload on windows 2016-07-21 03:20:08 +03:00
utils 💡 Happy Sunday: Introducing rizla 2016-06-26 16:26:44 +03:00
.gitignore Add some tests as we are going to v3 final - to be continued 2016-07-01 21:28:24 +03:00
.travis.yml Remove all tests from here and transfer them to iris-contrib/tests 2016-07-02 19:38:04 +02:00
context_test.go 🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md 2016-07-15 20:50:36 +03:00
context.go Try #https://github.com/kataras/iris/issues/275 2016-07-21 20:33:00 +03:00
CONTRIBUTING.md Rocket chat is on, Add Port() to the HTTPServer, disable subdomain persistence on subdomains when 127.0.0.1/0.0.0.0 2016-07-03 16:21:57 +02:00
DONATIONS.md Version 3.0.0-beta cleaned 2016-05-30 17:08:09 +03:00
glide.lock Update glide.lock for fasthttp - cookies are not url encoded anymore 2016-07-19 09:00:37 +03:00
glide.yaml Update glide.lock for fasthttp - cookies are not url encoded anymore 2016-07-19 09:00:37 +03:00
HISTORY.md Show the updated benchmarks (July 19). Don't forget, book is updated: https://www.gitbook.com/book/kataras/iris/details 2016-07-20 07:04:27 +03:00
http_test.go Fix https://github.com/kataras/iris/issues/293 2016-07-21 23:08:42 +03:00
http.go Set the default hostname to "0.0.0.0" from "127.0.0.1" - as golang's net.Listener does by default 2016-07-21 00:03:36 +03:00
iris_test.go Ok finish the important staff, the other are already tested hundreds of times 2016-07-07 01:36:38 +02:00
iris.go Fix https://github.com/kataras/iris/issues/293 2016-07-21 23:08:42 +03:00
LICENSE Add a Test framework to make it easier to test Iris app 2016-07-03 16:26:53 +02:00
plugin_test.go Update to 3.0.0-pre.release, Read HISTORY.md for new features and changes 2016-07-07 02:36:48 +02:00
plugin.go Update to v4.0.0-alpha.1 2016-07-13 06:28:09 +03:00
README.md Set one of the community's logos as banner, this will be here for 10 days and maybe more if users like it 2016-07-23 13:25:13 +03:00
response.go Add option for Gzip again, I removed it after v3 but seems users wants it back 2016-07-19 06:50:49 +03:00
sessions.go Fix https://github.com/iris-contrib/sessiondb/issues/1 2016-07-20 20:23:54 +03:00
template.go Fix https://github.com/kataras/iris/issues/303 2016-07-19 08:48:57 +03:00
websocket.go Update to 4.0.0-alpha.3 - Response Engines, 'inject' the context.JSON/JSONP/Text/Data/Markdown/Render, Read HISTORY.md 2016-07-18 17:40:42 +03:00

Iris Logo

Travis Widget Release Widget Report Widget License Widget Chat Widget Documentation Widget Examples Widget

The fastest web framework for Go.

Alt: Benchmark Wizzard July 21, 2016- Processing Time Horizontal Graph

$ cat render_json.go
package main
import "github.com/kataras/iris"

func main() {
	iris.Get("/hi_json", func(c *iris.Context) {
		c.JSON(iris.StatusOK, iris.Map{
			"Name":  "Iris",
			"Born":  "13 March 2016",
			"Stars": 4420,
		})
	})
	iris.Listen(":8080")
}

Learn more about render

Installation

The only requirement is the Go Programming Language, at least v1.6

$ go get -u github.com/kataras/iris/iris

If you have installation issues or you are connected to the Internet through China please, click here.

FAQ

Explore these questions or navigate to the community chat.

Features

  • Focus on high performance
  • Robust routing supports static and wildcard subdomains
  • View system supporting 6+ template engines
  • Add custom renders/responses or customize & replace the defaults (context.JSON/JSONP/XML/Markdown/Text/Binary(...))
  • Highly scalable Websocket API with custom events
  • Sessions support with GC, memory & redis providers
  • Middlewares & Plugins were never be easier
  • Full REST API
  • Custom HTTP Errors
  • Typescript compiler + Browser-based editor
  • Content negotiation & streaming
  • Transport Layer Security
  • Reload on source code changes
  • OAuth, OAuth2 supporting 27+ API providers
  • JSON Web Tokens
  • and more
Name Description Usage
JSON JSON Response Engine (Default) example 1,example 2, book section
JSONP JSONP Response Engine (Default) example 1,example 2, book section
XML XML Response Engine (Default) example 1,example 2, book section
Markdown Markdown Response Engine (Default) example 1,example 2, book section
Text Text Response Engine (Default) example 1, book section
Binary Data Binary Data Response Engine (Default) example 1, book section
HTML/Default Engine HTML Template Engine (Default) example , book section
Django Engine Django Template Engine example , book section
Pug/Jade Engine Pug Template Engine example , book section
Handlebars Engine Handlebars Template Engine example , book section
Amber Engine Amber Template Engine example , book section
Markdown Engine Markdown Template Engine example , book section
Basicauth Middleware HTTP Basic authentication example 1, example 2, book section
JWT Middleware JSON Web Tokens example , book section
Cors Middleware Cross Origin Resource Sharing W3 specification how to use
Secure Middleware Facilitates some quick security wins example
I18n Middleware Simple internationalization example, book section
Recovery Middleware Safety recover the station from panic example
Logger Middleware Logs every request example, book section
Editor Plugin Alm-tools, a typescript online IDE/Editor book section
Typescript Plugin Auto-compile client-side typescript files book section
OAuth,OAuth2 Plugin User Authentication was never be easier, supports >27 providers example, book section
Iris control Plugin Basic (browser-based) control over your Iris station example, book section

Docs & Community

If you'd like to discuss this package, or ask questions about it, feel free to

Open debates

Philosophy

The Iris philosophy is to provide robust tooling for HTTP, making it a great solution for single page applications, web sites, hybrids, or public HTTP APIs.

Iris does not force you to use any specific ORM or template engine. With support for the most used template engines, you can quickly craft the perfect application.

Benchmarks

This Benchmark suite aims to compare the whole HTTP request processing between Go web frameworks.

New results just came out:

Benchmark Wizzard July 21, 2016- Processing Time Horizontal Graph

The results have been updated on July 21, 2016

Please click here to view all detailed benchmarks.

Testing

Community should write third-party or iris base tests to the iris-contrib/tests repository. I recommend writing your API tests using this new library, httpexpect which supports Iris and fasthttp now, after my request here.

Versioning

Current: v4.0.0-alpha.4

Iris is an active project

Todo

for 'v4'

  • Refactor & extend view engine, separate the engines from the main code base, easier for the community to create new view engines*
  • Refactor & extend sessions, split the different databases functionality to the iris-contrib*
  • Refactor & extends the rest render engine in order to be able to developer to use their own implemention for rendering restful types, like, for example a custom JSON implementation using no-standard go package for encode/decode*
  • Move the iris/websocket package's source code inside iris/websocket.go one file, to be easier to use by users without import a new package*
  • configs package should be removed after all these, we will not need big configurations because of different packages splitted & moved to the iris-contrib, we will keep interfaces and all required things inside kataras/iris.go.
  • Implement all opened community's feature requests
  • Extend i18n middleware for easier and better internalization support
  • Create a router as optional plugin, for optional path parts. Its name, 'ryan', taken from the community-member and donator who requested this feature
  • Extend the iris control plugin
  • Remove deprecated functions
  • Will think more :)

If you're willing to donate click here!

People

The big thanks goes to all people who help building this framework with feature-requests & bug reports!

The author of Iris is @kataras.

Contributing

If you are interested in contributing to the Iris project, please see the document CONTRIBUTING.

License

This project is licensed under the MIT License.

License can be found here.