{"id":23249526,"url":"https://github.com/wizardone/parser","last_synced_at":"2026-05-25T23:39:04.367Z","repository":{"id":68987408,"uuid":"77031123","full_name":"wizardone/parser","owner":"wizardone","description":"Parsing urls against a set of rules.","archived":false,"fork":false,"pushed_at":"2017-09-28T14:00:46.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T06:47:00.292Z","etag":null,"topics":["elixir","mix","parsing","rules"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/wizardone.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}},"created_at":"2016-12-21T08:03:58.000Z","updated_at":"2018-06-01T04:29:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6b518a6-28c4-4321-a9fd-fc536e001e41","html_url":"https://github.com/wizardone/parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Fparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Fparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Fparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Fparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wizardone","download_url":"https://codeload.github.com/wizardone/parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247422022,"owners_count":20936401,"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":["elixir","mix","parsing","rules"],"created_at":"2024-12-19T08:19:49.227Z","updated_at":"2025-12-11T23:31:35.687Z","avatar_url":"https://github.com/wizardone.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UrlParser\n[![Build Status](https://travis-ci.org/wizardone/parser.svg?branch=master)](https://travis-ci.org/wizardone/parser)\n\nA small service that parses the whole request body (currently it is working only with the query params), it is meant to run the\nwhole request against a set of rules (as anonymous functions) and determine where to redirect the\nrequest body.\nThis is my first ever elixir project, so I intent to extend it more and make it more usable.\n\n## Usage\n\n```elixir\n# Start the process, that will hold the rules\nUrlParser.Rule.start_agent\n\n# Add some rules\nfunction = fn(request) -\u003e String.match?(request, ~r/query/) end\nUrlParser.Rule.add(:query, function)\n\nuri = \"http://test.com/?query=omg\"\n# If the url satisfies the rule\nUrlParser.parse(uri)\n=\u003e [ok: :query]\n\n# If the url does not satisfy the rule.\nUrlParser.parse(uri)\n=\u003e [{:not_ok, \"Rules do not match\"}]\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `url_parser` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:url_parser, \"~\u003e 0.1.0\"}]\n    end\n    ```\n\n  2. Ensure `url_parser` is started before your application:\n\n    ```elixir\n    def application do\n      [applications: [:url_parser]]\n    end\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Fparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwizardone%2Fparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Fparser/lists"}