{"id":30094526,"url":"https://github.com/1998code/mapshot","last_synced_at":"2025-08-09T10:56:11.344Z","repository":{"id":306811940,"uuid":"599691599","full_name":"1998code/MapShot","owner":"1998code","description":"Apple MapKit Screenshot","archived":false,"fork":false,"pushed_at":"2025-07-10T05:53:00.000Z","size":579,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T04:40:44.712Z","etag":null,"topics":["api","apple","map","mapkit"],"latest_commit_sha":null,"homepage":"https://map-shot.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1998code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"1998code"}},"created_at":"2023-02-09T17:19:05.000Z","updated_at":"2025-07-10T10:05:22.000Z","dependencies_parsed_at":"2025-07-27T20:01:17.490Z","dependency_job_id":"08537adb-8872-43dd-ac76-eb2fa34c81cc","html_url":"https://github.com/1998code/MapShot","commit_stats":null,"previous_names":["1998code/mapshot"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/1998code/MapShot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FMapShot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FMapShot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FMapShot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FMapShot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1998code","download_url":"https://codeload.github.com/1998code/MapShot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FMapShot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269567006,"owners_count":24439225,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","apple","map","mapkit"],"created_at":"2025-08-09T10:56:07.669Z","updated_at":"2025-08-09T10:56:11.327Z","avatar_url":"https://github.com/1998code.png","language":"JavaScript","funding_links":["https://github.com/sponsors/1998code"],"categories":[],"sub_categories":[],"readme":"# MapShot 🗺️\n\nMapShot is an AI-powered map generation tool that creates beautiful Apple Maps snapshots using natural language descriptions. Simply describe the location and view you want, and MapShot will generate a high-quality map image for you.\n\n![MapShot Screenshot](public/hero.jpg)\n\n## ✨ Features\n\n- **Natural Language Input**: Describe any location in plain English\n- **AI-Powered**: Uses Perplexity's Sonar models to understand your requests\n- **Apple Maps Integration**: Generates high-quality map snapshots using Apple MapKit\n- **Multiple View Types**: Standard, satellite, hybrid, and muted standard views\n- **Customizable Options**: Control zoom levels, colors, and points of interest\n- **Responsive Design**: Works seamlessly on desktop and mobile devices\n- **Download \u0026 Share**: Save maps or copy URLs to share\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Node.js 16+ or Bun\n- Apple Developer Account (for MapKit access)\n- Perplexity API key\n\n### Environment Variables\n\nCreate a `.env.local` file in the root directory:\n\n```env\nPERPLEXITY_API_KEY=your_perplexity_api_key\nAPPLE_MAP_PK=your_apple_mapkit_private_key\nAPPLE_TEAM_ID=your_apple_team_id\nAPPLE_KEY_ID=your_apple_key_id\n```\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/MapShot.git\ncd MapShot\n\n# Install dependencies\nnpm install\n# or\nbun install\n\n# Run the development server\nnpm run dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) to view the application.\n\n## 🎯 Usage\n\n### Basic Examples\n\n- \"Show me Golden Gate Bridge\"\n- \"Apple Park, Night Mode\"\n- \"Times Square, standard view\"\n- \"Central Park hybrid view\"\n- \"Tokyo Tower night mode\"\n\n### Advanced Options\n\nYou can specify detailed parameters for precise control:\n\n- **Zoom levels**: 3-20 (e.g., \"zoom 15\")\n- **Map types**: standard, hybrid, satellite, mutedStandard\n- **Color schemes**: light, dark\n- **Points of Interest**: enabled/disabled (e.g., \"poi disabled\")\n\n#### Example Advanced Query\n```\n\"Manhattan, muted standard, zoom 10, poi disabled\"\n```\n\n## 🛠️ Technical Stack\n\n- **Frontend**: Next.js 13, React 18, Tailwind CSS\n- **Backend**: Next.js API Routes\n- **AI**: Perplexity Sonar API (multiple models available)\n- **Maps**: Apple MapKit Snapshot API\n- **Styling**: Tailwind CSS with custom components\n- **Icons**: Font Awesome\n\n## 📂 Project Structure\n\n```\nMapShot/\n├── pages/\n│   ├── api/\n│   │   ├── ai.js          # Perplexity AI integration\n│   │   └── map.js         # Apple Maps snapshot API\n│   ├── _app.js            # Next.js app configuration\n│   ├── _document.js       # HTML document structure\n│   └── index.js           # Main application page\n├── public/\n│   └── hero.jpg           # Default background image\n├── styles/\n│   └── globals.css        # Global styles\n├── package.json\n├── next.config.js\n├── tailwind.config.js\n└── README.md\n```\n\n## 🔧 API Reference\n\n### AI Endpoint (`/api/ai`)\n\nProcesses natural language input and generates Apple Maps URL parameters.\n\n**Method**: `POST`\n\n**Body**:\n```json\n{\n  \"input\": \"Golden Gate Bridge satellite view\",\n  \"model\": \"sonar-pro\",\n  \"user\": \"MapShot\"\n}\n```\n\n**Response**:\n```json\n{\n  \"query\": \"Golden Gate Bridge satellite view\",\n  \"response\": \"size=640x640\u0026scale=3\u0026t=satellite\u0026center=Golden%20Gate%20Bridge\u0026z=15\"\n}\n```\n\n### Map Endpoint (`/api/map`)\n\nGenerates and returns Apple Maps snapshot images.\n\n**Method**: `GET`\n\n**Query Parameters**: Apple MapKit snapshot parameters\n\n**Response**: PNG image data\n\n## 🎨 Customization\n\n### Adding New AI Models\n\nEdit the `aiModels` array in `pages/index.js`:\n\n```javascript\nconst aiModels = [\n  { id: 'sonar-pro', name: 'Sonar Pro', context: '200k' },\n  { id: 'sonar', name: 'Sonar', context: '128k' },\n  // Add your model here\n]\n```\n\n### Styling\n\nThe app uses Tailwind CSS for styling. Modify classes in the JSX or extend the configuration in `tailwind.config.js`.\n\n### Map Specifications\n\n- **Zoom Levels**: 3 (continent) to 20 (building detail)\n- **Image Size**: 640x640px at 3x scale\n- **Supported Languages**: Multi-language support via `lang` parameter\n\n## 🔐 Security \u0026 Authentication\n\n### Apple MapKit Setup\n\n1. Create an Apple Developer Account\n2. Generate a MapKit JS private key\n3. Note your Team ID and Key ID\n4. Add these to your environment variables\n\n### Perplexity API Setup\n\n1. Sign up for Perplexity API access\n2. Generate an API key\n3. Add to your environment variables\n\n## 🚀 Deployment\n\n### Vercel (Recommended)\n\n1. Push your code to GitHub\n2. Connect your repository to Vercel\n3. Add environment variables in Vercel dashboard\n4. Deploy automatically\n\n### Other Platforms\n\nThe app can be deployed on any platform that supports Next.js:\n- Netlify\n- Railway\n- Digital Ocean App Platform\n- AWS Amplify\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- [Apple MapKit](https://developer.apple.com/maps/) for beautiful map rendering\n- [Perplexity AI](https://www.perplexity.ai/) for intelligent natural language processing\n- [Next.js](https://nextjs.org/) for the amazing React framework\n- [Tailwind CSS](https://tailwindcss.com/) for utility-first styling\n\n## 📞 Support\n\nIf you encounter any issues or have questions:\n\n1. Check the [Issues](https://github.com/1998code/MapShot/issues) page\n2. Create a new issue with detailed information\n3. Join our discussions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Fmapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1998code%2Fmapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Fmapshot/lists"}