{"id":13650839,"url":"https://github.com/pradel/stackspulse","last_synced_at":"2025-04-15T07:30:54.861Z","repository":{"id":228199056,"uuid":"773376465","full_name":"pradel/stackspulse","owner":"pradel","description":"Real-Time Gateway to Stacks DeFi.","archived":false,"fork":false,"pushed_at":"2024-10-29T09:26:18.000Z","size":2015,"stargazers_count":13,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T11:38:14.173Z","etag":null,"topics":["defi","indexer","stacks"],"latest_commit_sha":null,"homepage":"https://www.stackspulse.com","language":"TypeScript","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/pradel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2024-03-17T13:57:29.000Z","updated_at":"2024-10-28T16:05:41.000Z","dependencies_parsed_at":"2024-11-08T10:02:42.656Z","dependency_job_id":"5e82f0c6-e687-4c02-aae9-0fbfaded7734","html_url":"https://github.com/pradel/stackspulse","commit_stats":{"total_commits":225,"total_committers":7,"mean_commits":"32.142857142857146","dds":0.2577777777777778,"last_synced_commit":"63ed8655e61f1ac276d599ca15622646c0199cdc"},"previous_names":["pradel/stackspulse"],"tags_count":94,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fstackspulse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fstackspulse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fstackspulse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fstackspulse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradel","download_url":"https://codeload.github.com/pradel/stackspulse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026692,"owners_count":21200491,"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":["defi","indexer","stacks"],"created_at":"2024-08-02T02:00:41.517Z","updated_at":"2025-04-15T07:30:54.404Z","avatar_url":"https://github.com/pradel.png","language":"TypeScript","funding_links":[],"categories":["Apps"],"sub_categories":["DeFi"],"readme":"# stackspulse\n\nReal-Time Gateway to Stacks DeFi.\n\nThis project aims to provide a real-time view of Stacks DeFi ecosystem by aggregating public blockchain data and making it accessible through a easy to use interface.\n\n## Development\n\nFirst, install the dependencies:\n\n```bash\npnpm install\n```\n\nCreate and migrate the database:\n\n```bash\npnpm db:generate\npnpm db:migrate\n```\n\nThen, run the development server:\n\n```bash\npnpm dev\n```\n\nOnce the server is running you can run the predicates of your choice using chainhooks:\n\n```bash\nchainhook predicates scan /\u003cpath-to-stackspulse\u003e/chainhooks/arkadiko/arkadiko-swap-v2-1.swap-x-for-y.json --mainnet\n```\n\n## Deploy to production\n\nCreate a `.env.production.local` file with the following content:\n\n```bash\nCHAINHOOKS_API_TOKEN=your-prod-token\n```\n\nGenerate the chainhoooks predicates with the correct settings for the production environment.\n\n```bash\npnpm chainhooks:generate\n```\n\nThen, deploy the production server to fly (or any other provider of your choice):\n\n```bash\nfly deploy --remote-only\n```\n\nFinally upload the chainhooks predicates file `chainhooks.production.json` to the [Hiro platform](https://platform.hiro.so/) for your project.\n\n### Add new production environment variables\n\nTo add a new encrypted production environment variable (replace `MY_NAME` and `my-value` with your values) run the following command:\n\n```bash\npnpm dotenvx set MY_NAME \"my-value\" -f .env.production.local\n```\n\nIf you need to read the value of an encrypted environment variable run the following command:\n\n```bash\npnpm dotenvx get MY_NAME -f .env.production.local\n```\n\n### Download the production database locally\n\n```bash\nflyctl ssh issue --agent\nflyctl proxy 10022:22\nscp -r -P 10022 root@localhost:/data  /your/local/path/where/to/copy/data\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fstackspulse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradel%2Fstackspulse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fstackspulse/lists"}