railscope 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +227 -0
  5. data/Rakefile +12 -0
  6. data/app/assets/stylesheets/railscope/application.css +504 -0
  7. data/app/controllers/railscope/api/entries_controller.rb +103 -0
  8. data/app/controllers/railscope/application_controller.rb +12 -0
  9. data/app/controllers/railscope/dashboard_controller.rb +33 -0
  10. data/app/controllers/railscope/entries_controller.rb +29 -0
  11. data/app/helpers/railscope/dashboard_helper.rb +157 -0
  12. data/app/jobs/railscope/application_job.rb +6 -0
  13. data/app/jobs/railscope/purge_job.rb +15 -0
  14. data/app/models/railscope/application_record.rb +12 -0
  15. data/app/models/railscope/entry.rb +51 -0
  16. data/app/views/layouts/railscope/application.html.erb +14 -0
  17. data/app/views/railscope/application/index.html.erb +1 -0
  18. data/app/views/railscope/dashboard/index.html.erb +70 -0
  19. data/app/views/railscope/entries/show.html.erb +93 -0
  20. data/client/.gitignore +1 -0
  21. data/client/index.html +12 -0
  22. data/client/package-lock.json +2735 -0
  23. data/client/package.json +28 -0
  24. data/client/postcss.config.js +6 -0
  25. data/client/src/App.tsx +60 -0
  26. data/client/src/api/client.ts +25 -0
  27. data/client/src/api/entries.ts +36 -0
  28. data/client/src/components/Layout.tsx +17 -0
  29. data/client/src/components/PlaceholderPage.tsx +32 -0
  30. data/client/src/components/Sidebar.tsx +198 -0
  31. data/client/src/components/ui/Badge.tsx +67 -0
  32. data/client/src/components/ui/Card.tsx +38 -0
  33. data/client/src/components/ui/JsonViewer.tsx +80 -0
  34. data/client/src/components/ui/Pagination.tsx +45 -0
  35. data/client/src/components/ui/SearchInput.tsx +70 -0
  36. data/client/src/components/ui/Table.tsx +68 -0
  37. data/client/src/index.css +28 -0
  38. data/client/src/lib/hooks.ts +37 -0
  39. data/client/src/lib/types.ts +61 -0
  40. data/client/src/lib/utils.ts +38 -0
  41. data/client/src/main.tsx +13 -0
  42. data/client/src/screens/cache/Index.tsx +15 -0
  43. data/client/src/screens/client-requests/Index.tsx +15 -0
  44. data/client/src/screens/commands/Index.tsx +133 -0
  45. data/client/src/screens/commands/Show.tsx +395 -0
  46. data/client/src/screens/dumps/Index.tsx +15 -0
  47. data/client/src/screens/events/Index.tsx +15 -0
  48. data/client/src/screens/exceptions/Index.tsx +155 -0
  49. data/client/src/screens/exceptions/Show.tsx +480 -0
  50. data/client/src/screens/gates/Index.tsx +15 -0
  51. data/client/src/screens/jobs/Index.tsx +153 -0
  52. data/client/src/screens/jobs/Show.tsx +529 -0
  53. data/client/src/screens/logs/Index.tsx +15 -0
  54. data/client/src/screens/mail/Index.tsx +15 -0
  55. data/client/src/screens/models/Index.tsx +15 -0
  56. data/client/src/screens/notifications/Index.tsx +15 -0
  57. data/client/src/screens/queries/Index.tsx +159 -0
  58. data/client/src/screens/queries/Show.tsx +346 -0
  59. data/client/src/screens/redis/Index.tsx +15 -0
  60. data/client/src/screens/requests/Index.tsx +123 -0
  61. data/client/src/screens/requests/Show.tsx +395 -0
  62. data/client/src/screens/schedule/Index.tsx +15 -0
  63. data/client/src/screens/views/Index.tsx +141 -0
  64. data/client/src/screens/views/Show.tsx +337 -0
  65. data/client/tailwind.config.js +22 -0
  66. data/client/tsconfig.json +25 -0
  67. data/client/tsconfig.node.json +10 -0
  68. data/client/vite.config.ts +37 -0
  69. data/config/routes.rb +17 -0
  70. data/db/migrate/20260131023242_create_railscope_entries.rb +41 -0
  71. data/lib/generators/railscope/install_generator.rb +33 -0
  72. data/lib/generators/railscope/templates/initializer.rb +34 -0
  73. data/lib/railscope/context.rb +91 -0
  74. data/lib/railscope/engine.rb +85 -0
  75. data/lib/railscope/entry_data.rb +112 -0
  76. data/lib/railscope/filter.rb +113 -0
  77. data/lib/railscope/middleware.rb +162 -0
  78. data/lib/railscope/storage/base.rb +90 -0
  79. data/lib/railscope/storage/database.rb +83 -0
  80. data/lib/railscope/storage/redis_storage.rb +314 -0
  81. data/lib/railscope/subscribers/base_subscriber.rb +52 -0
  82. data/lib/railscope/subscribers/command_subscriber.rb +237 -0
  83. data/lib/railscope/subscribers/exception_subscriber.rb +113 -0
  84. data/lib/railscope/subscribers/job_subscriber.rb +249 -0
  85. data/lib/railscope/subscribers/query_subscriber.rb +130 -0
  86. data/lib/railscope/subscribers/request_subscriber.rb +121 -0
  87. data/lib/railscope/subscribers/view_subscriber.rb +201 -0
  88. data/lib/railscope/version.rb +5 -0
  89. data/lib/railscope.rb +145 -0
  90. data/lib/tasks/railscope_sample.rake +30 -0
  91. data/public/railscope/assets/app.css +1 -0
  92. data/public/railscope/assets/app.js +70 -0
  93. data/public/railscope/assets/index.html +13 -0
  94. data/sig/railscope.rbs +4 -0
  95. metadata +157 -0
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Railscope</title>
7
+ <script type="module" crossorigin src="/railscope/assets/app.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/railscope/assets/app.css">
9
+ </head>
10
+ <body class="bg-dark-bg text-dark-text">
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
data/sig/railscope.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Railscope
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,157 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: railscope
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Phelipe Tussolini
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '7.0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '7.0'
26
+ description: 'Railscope provides deep insight into requests, exceptions, database
27
+ queries, background jobs, view rendering, and Rake tasks in your Rails application.
28
+ It features a React-based dark-themed dashboard, automatic sensitive data filtering,
29
+ flexible storage backends (PostgreSQL and Redis), batch correlation of related events,
30
+ and zero external gem dependencies beyond Rails itself.
31
+
32
+ '
33
+ email:
34
+ - phelipe@taller.net.br
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - CHANGELOG.md
40
+ - LICENSE.txt
41
+ - README.md
42
+ - Rakefile
43
+ - app/assets/stylesheets/railscope/application.css
44
+ - app/controllers/railscope/api/entries_controller.rb
45
+ - app/controllers/railscope/application_controller.rb
46
+ - app/controllers/railscope/dashboard_controller.rb
47
+ - app/controllers/railscope/entries_controller.rb
48
+ - app/helpers/railscope/dashboard_helper.rb
49
+ - app/jobs/railscope/application_job.rb
50
+ - app/jobs/railscope/purge_job.rb
51
+ - app/models/railscope/application_record.rb
52
+ - app/models/railscope/entry.rb
53
+ - app/views/layouts/railscope/application.html.erb
54
+ - app/views/railscope/application/index.html.erb
55
+ - app/views/railscope/dashboard/index.html.erb
56
+ - app/views/railscope/entries/show.html.erb
57
+ - client/.gitignore
58
+ - client/index.html
59
+ - client/package-lock.json
60
+ - client/package.json
61
+ - client/postcss.config.js
62
+ - client/src/App.tsx
63
+ - client/src/api/client.ts
64
+ - client/src/api/entries.ts
65
+ - client/src/components/Layout.tsx
66
+ - client/src/components/PlaceholderPage.tsx
67
+ - client/src/components/Sidebar.tsx
68
+ - client/src/components/ui/Badge.tsx
69
+ - client/src/components/ui/Card.tsx
70
+ - client/src/components/ui/JsonViewer.tsx
71
+ - client/src/components/ui/Pagination.tsx
72
+ - client/src/components/ui/SearchInput.tsx
73
+ - client/src/components/ui/Table.tsx
74
+ - client/src/index.css
75
+ - client/src/lib/hooks.ts
76
+ - client/src/lib/types.ts
77
+ - client/src/lib/utils.ts
78
+ - client/src/main.tsx
79
+ - client/src/screens/cache/Index.tsx
80
+ - client/src/screens/client-requests/Index.tsx
81
+ - client/src/screens/commands/Index.tsx
82
+ - client/src/screens/commands/Show.tsx
83
+ - client/src/screens/dumps/Index.tsx
84
+ - client/src/screens/events/Index.tsx
85
+ - client/src/screens/exceptions/Index.tsx
86
+ - client/src/screens/exceptions/Show.tsx
87
+ - client/src/screens/gates/Index.tsx
88
+ - client/src/screens/jobs/Index.tsx
89
+ - client/src/screens/jobs/Show.tsx
90
+ - client/src/screens/logs/Index.tsx
91
+ - client/src/screens/mail/Index.tsx
92
+ - client/src/screens/models/Index.tsx
93
+ - client/src/screens/notifications/Index.tsx
94
+ - client/src/screens/queries/Index.tsx
95
+ - client/src/screens/queries/Show.tsx
96
+ - client/src/screens/redis/Index.tsx
97
+ - client/src/screens/requests/Index.tsx
98
+ - client/src/screens/requests/Show.tsx
99
+ - client/src/screens/schedule/Index.tsx
100
+ - client/src/screens/views/Index.tsx
101
+ - client/src/screens/views/Show.tsx
102
+ - client/tailwind.config.js
103
+ - client/tsconfig.json
104
+ - client/tsconfig.node.json
105
+ - client/vite.config.ts
106
+ - config/routes.rb
107
+ - db/migrate/20260131023242_create_railscope_entries.rb
108
+ - lib/generators/railscope/install_generator.rb
109
+ - lib/generators/railscope/templates/initializer.rb
110
+ - lib/railscope.rb
111
+ - lib/railscope/context.rb
112
+ - lib/railscope/engine.rb
113
+ - lib/railscope/entry_data.rb
114
+ - lib/railscope/filter.rb
115
+ - lib/railscope/middleware.rb
116
+ - lib/railscope/storage/base.rb
117
+ - lib/railscope/storage/database.rb
118
+ - lib/railscope/storage/redis_storage.rb
119
+ - lib/railscope/subscribers/base_subscriber.rb
120
+ - lib/railscope/subscribers/command_subscriber.rb
121
+ - lib/railscope/subscribers/exception_subscriber.rb
122
+ - lib/railscope/subscribers/job_subscriber.rb
123
+ - lib/railscope/subscribers/query_subscriber.rb
124
+ - lib/railscope/subscribers/request_subscriber.rb
125
+ - lib/railscope/subscribers/view_subscriber.rb
126
+ - lib/railscope/version.rb
127
+ - lib/tasks/railscope_sample.rake
128
+ - public/railscope/assets/app.css
129
+ - public/railscope/assets/app.js
130
+ - public/railscope/assets/index.html
131
+ - sig/railscope.rbs
132
+ homepage: https://github.com/wptussolini/rails-telescope
133
+ licenses:
134
+ - MIT
135
+ metadata:
136
+ allowed_push_host: https://rubygems.org
137
+ homepage_uri: https://github.com/wptussolini/rails-telescope
138
+ source_code_uri: https://github.com/wptussolini/rails-telescope
139
+ changelog_uri: https://github.com/wptussolini/rails-telescope/blob/main/railscope/CHANGELOG.md
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 3.2.0
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubygems_version: 3.6.9
155
+ specification_version: 4
156
+ summary: A debug assistant for Rails applications inspired by Laravel Telescope
157
+ test_files: []