{"id":18584266,"url":"https://github.com/brob/madlibs","last_synced_at":"2025-04-10T12:30:31.815Z","repository":{"id":49158178,"uuid":"356652617","full_name":"brob/madlibs","owner":"brob","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T02:49:38.000Z","size":371,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T21:21:54.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brob.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}},"created_at":"2021-04-10T17:35:52.000Z","updated_at":"2024-01-28T20:08:06.000Z","dependencies_parsed_at":"2022-09-21T00:52:12.849Z","dependency_job_id":null,"html_url":"https://github.com/brob/madlibs","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/brob%2Fmadlibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fmadlibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fmadlibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fmadlibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/madlibs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217123,"owners_count":21066633,"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-07T00:26:55.989Z","updated_at":"2025-04-10T12:30:31.366Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Madlib generator with Sanity, Netlify, and 11ty Serverless\n\nThis repository is a demo for this Smashing Magazine article.\n\n🎉 [Try the Demo here](https://brob.dev/madlibs).\n\n\nIt creates a madlib generator that stores madlib templates and user-generated madlibs in a Sanity content lake. It builds static and server-rendered pages with 11ty, and uses Netlify On-Demand builders and serverless functions to add interactivity.\n\n## Installation\n\n### Configuring the studio\n\n```bash\ncd studio\nnpm install -g @sanity/cli\nsanity install\nsanity init\n```\n\nThe Sanity CLI will prompt to reconfigure the studio. You _do_ want to do this. Attach it to a Sanity project you own with a blank dataset.\n\n### Running the site locally\n\nThe site requires the Netlify CLI tool to manage serverless functions and environment variables. If you don't have that installed globally run `npm install -g netlify-cli`.\n\n```bash\ncd site\nnpm install\nnetlify dev\n```\n\nTo pull data from YOUR Sanity project, you need to change the project ID from `/site/utils/sanityClient.js`. You'll also need to create an Editor token from your [Sanity dashboard](https://sanity.io/manage) and create a new environment variable in your [Netlify](https://netlify.com) project. \n\n## Deployment\nThis repository contains two separate sites: the 11ty `site` and Sanity `studio`. It's not currently set up as a monorepo. The `site` directory is set to deploy to Netlify. The `studio` directory currently does not have deployment set up, but can be run locally or deployed to Sanity's hosted service with `sanity deploy`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fmadlibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Fmadlibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fmadlibs/lists"}