{"id":15681517,"url":"https://github.com/gabriel-pinheiro/bigodon","last_synced_at":"2026-04-02T18:35:10.197Z","repository":{"id":38003923,"uuid":"406340892","full_name":"gabriel-pinheiro/bigodon","owner":"gabriel-pinheiro","description":"Secure Handlebars/Mustache templating for user-provided templates with async helpers support and human-friendly parsing errors","archived":false,"fork":false,"pushed_at":"2026-03-29T19:41:25.000Z","size":410,"stargazers_count":12,"open_issues_count":9,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T21:22:42.566Z","etag":null,"topics":["async","gotemplate","hacktoberfest","handlebars","javascript","mustache","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabriel-pinheiro.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":"2021-09-14T11:34:21.000Z","updated_at":"2026-03-29T19:41:27.000Z","dependencies_parsed_at":"2023-02-07T00:16:30.429Z","dependency_job_id":null,"html_url":"https://github.com/gabriel-pinheiro/bigodon","commit_stats":null,"previous_names":["gabriel-pinheiro/superstache"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/gabriel-pinheiro/bigodon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-pinheiro%2Fbigodon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-pinheiro%2Fbigodon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-pinheiro%2Fbigodon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-pinheiro%2Fbigodon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabriel-pinheiro","download_url":"https://codeload.github.com/gabriel-pinheiro/bigodon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-pinheiro%2Fbigodon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["async","gotemplate","hacktoberfest","handlebars","javascript","mustache","nodejs","typescript"],"created_at":"2024-10-03T16:55:45.823Z","updated_at":"2026-04-02T18:35:10.159Z","avatar_url":"https://github.com/gabriel-pinheiro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bigodon\nSecure Handlebars/Mustache templating for user-provided templates with async helpers support and human-friendly parsing errors.\n\n\n## Features\n\nAs well as most Handlebars features like:\n- Handlebars dot notation inside mustaches (`{{foo.bar}}`)\n- Handlebars literal values (`{{add 5 6}}`)\n- Comments (`{{! ... }}`)\n- Nested expressions (`{{capitalize (append data.firstName data.secondName)}}`)\n- Blocks (`{{#name}}...{{/name}}`)\n- Inverted blocks (`{{^name}}...{{/name}}`)\n- Else blocks (`{{#name}}...{{else}}...{{/name}}`)\n- Parent and current context (`{{#list}}{{$parent.name}} {{$this}}{{/list}}`)\n\nBigodon also supports:\n- Async helpers, you can await for requests, database access, file access and so on.\n- Safely evaluate user-provided templates. (Templates aren't transpiled to JavaScript, they're interpreted by Bigodon)\n- Much better performance.\n- Better error reporting.\n- Better native helpers.\n\nBigodon is used in production by [Mocko](https://mocko.dev/).\n\n## Installation\n\nAdd the `bigodon` dependency to your project. Types included:\n```shell\nnpm install bigodon\n```\n\n## Usage\n\n```javascript\nconst { compile } = require('bigodon');\n\nasync function main() {\n    const source = 'Hello, {{name}}!';\n    const template = compile(source);\n\n    const result = await template({\n        name: 'George'\n    });\n\n    console.log(result); // Hello, George!\n}\n\nmain().catch(console.error);\n```\n\nOr, if you want to split parsing from execution between services or cache the parsed AST:\n```javascript\nconst { parse, run } = require('bigodon');\n\nconst source = 'Hello, {{name}}!';\nconst ast = parse(source); // This will return a JSON object that can be persisted for later usage\n\n\n// In another process or later:\nasync function main() {\n    const result = await run(ast, {\n        name: 'George'\n    });\n\n    console.log(result); // Hello, George!\n}\nmain().catch(console.error);\n```\n\n## Check how to use the lib [here](LIB.md)\n## Check how to use the language [here](LANGUAGE.md)\n\n## Check the available helpers [here](HELPERS.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-pinheiro%2Fbigodon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabriel-pinheiro%2Fbigodon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-pinheiro%2Fbigodon/lists"}