{"id":19142320,"url":"https://github.com/eldoy/furu","last_synced_at":"2026-02-26T04:16:39.855Z","repository":{"id":65651475,"uuid":"479588486","full_name":"eldoy/furu","owner":"eldoy","description":"Extraordinary Web Server","archived":false,"fork":false,"pushed_at":"2024-12-02T22:17:26.000Z","size":95,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T16:11:37.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/eldoy.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":"2022-04-09T01:44:18.000Z","updated_at":"2024-12-02T22:16:34.000Z","dependencies_parsed_at":"2024-01-27T23:19:15.729Z","dependency_job_id":"b3850246-b7f7-4505-9d63-f6cd00fe86f1","html_url":"https://github.com/eldoy/furu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffuru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffuru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffuru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffuru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/furu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788404,"owners_count":21804280,"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":[],"created_at":"2024-11-09T07:26:49.103Z","updated_at":"2026-02-26T04:16:34.835Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Furu Web Server\n\nExtraordinary Javascript Web Server.\n\nAdds what's missing from the built in web server of NodeJS:\n\n* Body parameters and file uploads\n* Cookies\n* Cors\n* Middleware\n* Language\n* Redirects\n* Mime types\n* Request store\n* Routes\n* Static files\n* Extra properties:\n  - IP address\n  - pathname\n  - protocol\n* And more!\n\nThe server is extremely fast and minimal.\n\nCheck out the [Furu example app here.](https://github.com/eldoy/furu-test)\n\n### Install\n```\nnpm i furu\n```\n\n### Usage\n\nMinimal usage example:\n```js\nasync function handleRequest(req, res) {\n  if (req.pathname == '/hello') {\n    return { hello: 'world' }\n  }\n}\n\n// The server object is a vanilla NodeJS HTTP server\nvar server = furu({ port: 9000 }, handleRequest)\n```\n\nMore advanced example with pages, layouts and assets:\n```js\nvar furu = require('furu')\nvar layout = require('./app/layouts/main.js')\nvar homePage = require('./app/pages/home.js')\nvar aboutPage = require('./app/pages/about.js')\n\nvar routes = {\n  'get#/': homePage,\n  'get#/about': aboutPage\n}\n\nasync function handleRequest(req, res) {\n  if (req.route) {\n    var html = await req.route(req, res)\n    return layout(html)\n  }\n}\n\nvar options = { port: 9095, dir: 'app/assets', routes }\n\nfuru(options, handleRequest)\n```\n\nISC Licensed. Enjoy!\n\nCreated by [Eldøy Projects](https://eldoy.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Ffuru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Ffuru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Ffuru/lists"}